/* =====================================================
   BikePharma Inventory - Professional Dark Theme
   Colors: Dark Grey + Bright Yellow (#facc15)
   Final Client-Ready Version
===================================================== */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-yellow: #facc15;
    --yellow-hover: #fbbf24;
    --yellow-dark: #eab308;
    --bg-main: #050505;
    --bg-card: #141414;
    --bg-sidebar: #0f0f0f;
    --border-color: #262626;
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    animation: fadeIn 0.15s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== LOGIN PAGE ========== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 24px;
}

.login-card {
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

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

.login-logo img {
    max-width: 140px;
    height: auto;
    margin-bottom: 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.brand-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-yellow);
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(250, 204, 21, 0.3);
}

.brand-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.error-message {
    background: #dc2626;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--yellow-hover) 100%);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(250, 204, 21, 0.4);
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--yellow-hover) 0%, var(--yellow-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.6);
}

.btn-login:active {
    transform: translateY(0);
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid #1a1a1a;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-yellow);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #1a1a1a;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-yellow);
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(250, 204, 21, 0.3);
}

.logo-tagline {
    font-size: 10px;
    color: #6b7280;
    letter-spacing: 2px;
    margin-top: 2px;
    text-transform: uppercase;
}

.user-info {
    padding: 20px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--primary-yellow);
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 12px;
    color: #6b7280;
    text-transform: capitalize;
}

.sidebar-nav {
    padding: 12px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
}

.nav-item:hover {
    background: #1a1a1a;
    color: var(--primary-yellow);
}

.nav-item.active {
    background: var(--primary-yellow);
    color: #000;
    border-left-color: var(--yellow-dark);
    font-weight: 700;
    transition: none !important;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
}

.nav-icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

/* ========== MOBILE MENU TOGGLE ========== */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--primary-yellow);
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: #000;
    display: block;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
    max-width: calc(100vw - 260px);
    box-sizing: border-box;
    background: var(--bg-main);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-yellow);
    text-shadow: 0 2px 10px rgba(250, 204, 21, 0.3);
}

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(250, 204, 21, 0.2);
    border-color: var(--primary-yellow);
    background: #1a1a1a;
}

.stat-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 204, 21, 0.15);
    border-radius: 12px;
}

.stat-details {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-yellow);
}

/* ========== CHARTS ========== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    min-height: 400px;
    transform: translateZ(0);
}

.chart-card h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.chart-card canvas {
    background: transparent !important;
    width: 100% !important;
    height: 300px !important;
}

/* ========== TABLES ========== */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.table-header h3 {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.data-table thead tr {
    background: #0a0a0a;
    border-bottom: 2px solid var(--border-color);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #1a1a1a;
    font-size: 14px;
    color: var(--text-primary);
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: #1a1a1a;
}

.data-table tfoot {
    background: #0a0a0a;
    font-weight: 600;
}

.data-table tfoot td {
    padding: 16px;
    border-top: 2px solid var(--border-color);
}

.inventory-table {
    font-size: 13px;
}

.inventory-table th,
.inventory-table td {
    padding: 12px 10px;
}

/* ========== STATUS BADGES ========== */
.status-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-paid {
    background: #10b981;
    color: #000;
}

.status-pending {
    background: var(--primary-yellow);
    color: #000;
    box-shadow: 0 2px 6px rgba(250, 204, 21, 0.2);
}

.status-cancelled {
    background: #dc2626;
    color: #fff;
}

.badge {
    padding: 6px 14px;
    background: var(--primary-yellow);
    color: #000;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(250, 204, 21, 0.2);
}

/* ========== BUTTONS ========== */
.btn-primary, 
.btn-secondary, 
.btn-warning, 
.btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--yellow-hover) 100%);
    color: #000;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(250, 204, 21, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--yellow-hover) 0%, var(--yellow-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(250, 204, 21, 0.5);
}

.btn-secondary {
    background: #404040;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #525252;
}

.btn-warning {
    background: var(--primary-yellow);
    color: #000;
    font-weight: 700;
}

.btn-warning:hover {
    background: var(--yellow-hover);
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 15px;
}

/* ========== FORMS ========== */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

/* ========== SEARCH BAR ========== */
.search-bar {
    margin-bottom: 24px;
}

.search-bar form {
    display: flex;
    gap: 12px;
}

.search-bar input {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}

.btn-search {
    padding: 14px 28px;
    background: var(--primary-yellow);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search:hover {
    background: var(--yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

/* ========== INVOICE SPECIFIC ========== */
.invoice-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-grid div {
    font-size: 14px;
    color: var(--text-secondary);
}

.info-grid strong {
    color: var(--text-primary);
    font-weight: 600;
}

.scanner-card {
    background: var(--bg-card);
    border: 2px solid var(--primary-yellow);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.15);
}

.scanner-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scanner-input-group label {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-yellow);
}

.payment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    margin-top: 24px;
}

.payment-card h3 {
    margin-bottom: 20px;
    color: var(--primary-yellow);
    font-size: 20px;
    font-weight: 600;
}

.total-display {
    background: #0a0a0a;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
    border: 1px solid var(--border-color);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 16px;
    color: var(--text-primary);
}

.total-row.final-total {
    border-top: 2px solid var(--primary-yellow);
    margin-top: 12px;
    padding-top: 16px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-yellow);
}

.invoice-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.invoice-header h2 {
    color: var(--primary-yellow);
    font-size: 24px;
    margin-bottom: 8px;
}

.customer-details {
    background: #0a0a0a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.customer-details h3 {
    color: var(--primary-yellow);
    margin-bottom: 12px;
    font-size: 16px;
}

.customer-details p {
    margin: 6px 0;
    color: var(--text-primary);
}

/* ========== FOOTER ========== */
.main-footer {
    margin-left: 260px;
    padding: 24px 32px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    border-top: 1px solid #1a1a1a;
    background: var(--bg-main);
}

/* ========== ALERTS ========== */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: #dc2626;
    color: white;
    border-left: 4px solid #b91c1c;
}

.alert-success {
    background: #10b981;
    color: white;
    border-left: 4px solid #059669;
}

/* ========== DASHBOARD SPECIFIC STYLES ========== */
.brand-cards-horizontal {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 10px;
}

.brand-mini-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-left: 4px solid var(--primary-yellow);
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    white-space: nowrap;
    transition: all 0.2s;
    min-width: 190px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.brand-mini-card:hover {
    background: #262626;
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(250, 204, 21, 0.3);
}

.brand-name-yellow {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(250, 204, 21, 0.3);
}

.brand-price-green {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
    margin-left: auto;
}

.section-title {
    margin: 20px 0 12px 0;
}

.section-title h2 {
    font-size: 18px;
    color: var(--primary-yellow);
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(250, 204, 21, 0.3);
}

.chart-card-full {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chart-card-full h3 {
    font-size: 22px;
    color: var(--primary-yellow);
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 6px rgba(250, 204, 21, 0.3);
}

.chart-card-full p {
    color: var(--text-secondary);
    font-size: 14px;
}

.month-btn {
    padding: 12px 18px;
    background: #262626;
    color: var(--text-primary);
    border: 1px solid #404040;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.month-btn:hover {
    background: var(--primary-yellow);
    color: #000;
    border-color: var(--primary-yellow);
    font-weight: 700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

.graph-legend {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    padding: 12px;
    background: #0a0a0a;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
}

.legend-color {
    width: 24px;
    height: 16px;
    border-radius: 4px;
}

.legend-green { background: #10b981; }
.legend-red { background: #ef4444; }

/* ========== SCROLLBAR STYLING ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-yellow);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 999;
    }
    
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100vw;
        padding: 80px 20px 20px 20px;
    }
    
    .main-footer {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .search-bar form {
        flex-direction: column;
    }
    
    .btn-search {
        width: 100%;
    }
    
    .scanner-card {
        padding: 16px;
    }
    
    .invoice-header {
        flex-direction: column;
        gap: 16px;
    }

    .brand-cards-horizontal {
        overflow-x: scroll;
    }
}

/* ========== UTILITY CLASSES ========== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

/* ========== PRINT STYLES ========== */
@media print {
    .sidebar,
    .mobile-menu-toggle,
    .page-header,
    .btn-primary,
    .btn-secondary,
    .form-actions {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100%;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .table-card,
    .invoice-card {
        border: 1px solid #000;
        background: white;
    }
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
.sidebar, .main-content {
    will-change: opacity;
}

.sidebar-header, .user-info, .sidebar-nav {
    opacity: 1;
    transition: none;
}

.nav-item.active {
    transition: none !important;
}

.sidebar,
.nav-item,
.stat-card,
.chart-card,
.table-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}