/* Custom CSS for Alpha Traders */

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.navbar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar-logo {
    padding: 20px;
    text-align: center;
    background: rgba(0, 123, 255, 0.1);
    margin-bottom: 10px;
}

.sidebar-logo h1 {
    color: #2a5298;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #495057;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    margin: 4px 0;
}

.sidebar .nav-link.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    border-left: 4px solid #007bff;
}

.sidebar .nav-link:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
    border-left: 4px solid rgba(0, 123, 255, 0.5);
}

.sidebar .nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Main content area */
main {
    padding-top: 1.5rem;
}

/* Login page styles */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo h1 {
    font-size: 24px;
    margin-top: 10px;
}

/* Card styles */
.card-dashboard {
    border-left: 4px solid #007bff;
    transition: transform 0.3s;
}

.card-dashboard:hover {
    transform: translateY(-5px);
}

.card-dashboard .card-body {
    padding: 1.25rem;
}

.card-dashboard .card-title {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #6c757d;
}

.card-dashboard .card-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.card-dashboard .card-icon {
    font-size: 2rem;
    color: rgba(0, 123, 255, 0.5);
}

/* Table styles */
.table-container {
    overflow-x: auto;
}

.table-action-btn {
    margin-right: 5px;
}

/* Form styles */
.required-field::after {
    content: " *";
    color: red;
}

/* Invoice styles */
.invoice-header {
    margin-bottom: 20px;
}

.invoice-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.invoice-details {
    margin-bottom: 20px;
}

.invoice-details-row {
    margin-bottom: 5px;
}

.invoice-table th {
    background-color: #f8f9fa;
}

.invoice-summary {
    margin-top: 20px;
    text-align: right;
}

.invoice-summary-row {
    margin-bottom: 5px;
}

.invoice-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
}

/* Print styles */
@media print {
    /* Hide navigation elements */
    .sidebar, .navbar, .no-print {
        display: none !important;
    }
    
    /* Reset body styles */
    body {
        margin: 0;
        padding: 20px;
        background-color: #fff;
    }
    
    /* Container adjustments */
    .container, .container-fluid {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* Invoice container styles */
    .invoice-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 20px;
    }
    
    /* Shop header styles */
    .invoice-header {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .invoice-header h2 {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    /* Customer and invoice details */
    .invoice-details {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
    }
    
    .customer-details, .invoice-info {
        flex: 1;
    }
    
    /* Table styles */
    .table {
        width: 100%;
        margin-bottom: 20px;
        border-collapse: collapse;
    }
    
    .table th, .table td {
        padding: 8px;
        border: 1px solid #ddd;
    }
    
    .table th {
        background-color: #f8f9fa;
    }
    
    /* Payment details section */
    .payment-details {
        margin-top: 20px;
        border-top: 1px solid #ddd;
        padding-top: 20px;
    }
    
    /* Remove card styling */
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Page break control */
    .page-break {
        page-break-after: always;
    }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }
    
    main {
        margin-left: 0 !important;
    }
}