/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #1abc9c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --sidebar-width: 250px;
    --content-padding: clamp(14px, 2.2vw, 30px);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: url("../shop%20image.png") center center / cover no-repeat fixed;
    background-color: #0f1115;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 30px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.login-form {
    padding: 40px;
}

.login-form h2 {
    margin-bottom: 25px;
    color: var(--primary);
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group label i {
    margin-right: 10px;
    color: var(--secondary);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 12px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: #f8f9fa;
    color: var(--dark);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
    width: auto;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.login-info {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

.login-info h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.login-info ul {
    list-style: none;
    padding-left: 0;
}

.login-info li {
    margin-bottom: 5px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.login-footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    color: #777;
    font-size: 14px;
}

/* Lamp Login Theme */
.login-page {
    font-family: 'Manrope', sans-serif;
    background: radial-gradient(circle at top left, #141414 0%, #0b0c10 55%, #07080b 100%);
    color: #f6f1ea;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 196, 120, 0.08), transparent 55%);
    pointer-events: none;
}

.lamp-login {
    position: relative;
    z-index: 2;
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 420px);
    gap: 60px;
    align-items: center;
}

.lamp-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 360px;
}

.lamp {
    position: relative;
    width: 200px;
    text-align: center;
}

.lamp-shade {
    width: 200px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1e1e1e, #0f0f0f);
    border-radius: 0 0 80px 80px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

.lamp-light {
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 230px;
    height: 170px;
    background: radial-gradient(ellipse at top, rgba(255, 216, 150, 0.95) 0%, rgba(255, 216, 150, 0.4) 40%, rgba(255, 216, 150, 0) 70%);
    opacity: 0;
    filter: blur(3px);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lamp-pole {
    width: 12px;
    height: 130px;
    margin: 0 auto;
    background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 8px;
}

.lamp-base {
    width: 120px;
    height: 18px;
    margin: 10px auto 0;
    background: #151515;
    border-radius: 50%;
    box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.05);
}

.lamp-switch {
    position: absolute;
    right: -40px;
    top: 10px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: inherit;
}

.lamp-switch:focus-visible {
    outline: 2px dashed #f7d1a1;
    outline-offset: 6px;
}

.lamp-cord {
    width: 4px;
    height: 140px;
    background: linear-gradient(180deg, #666, #333);
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.lamp-dot {
    width: 18px;
    height: 18px;
    background: #d6c1a0;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 170, 0.6);
    transition: transform 0.2s ease;
}

.lamp-switch:hover .lamp-dot,
.lamp-switch:active .lamp-dot {
    transform: translateY(4px);
}

.lamp-switch:hover .lamp-cord,
.lamp-switch:active .lamp-cord {
    transform: translateY(4px);
}

.login-card {
    background: rgba(15, 17, 21, 0.78);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
}

.login-card-header {
    padding: 32px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.login-card-header .logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
}

.login-page .logo i {
    color: #f2c27f;
}

.login-form {
    padding: 32px 36px 40px;
}

.login-form h2 {
    color: #f7e7d2;
    margin-bottom: 20px;
}

.login-page .form-group label {
    color: rgba(255, 255, 255, 0.75);
}

.login-page .form-group input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fdf9f4;
    caret-color: #fdf9f4;
}

.login-page .form-group input::placeholder,
.login-page .form-group textarea::placeholder {
    color: rgba(253, 249, 244, 0.62);
}

.login-page .form-group textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fdf9f4;
    caret-color: #fdf9f4;
}

.login-page .form-group input:focus {
    border-color: rgba(255, 199, 132, 0.8);
    box-shadow: 0 0 0 2px rgba(255, 199, 132, 0.2);
}

.login-page .btn-primary {
    background: linear-gradient(135deg, #f3b36c, #d46f37);
    color: #2a1b0f;
}

.login-page .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fdf5ea;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-page .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.login-page .login-footer {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
}

/* Forgot password uses a light card; override dark lamp controls for readability */
.forgot-password-page .login-container .form-group input {
    background: #ffffff;
    border: 1px solid #cfd8e3;
    color: #1f2937;
    caret-color: #1f2937;
}

.forgot-password-page .login-container .form-group input::placeholder {
    color: #6b7280;
}

.forgot-password-page .login-container .btn-secondary {
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid #cfd8e3;
}

.forgot-password-page .login-container .btn-secondary:hover {
    background: #e5e7eb;
}

.forgot-password-page .login-container .form-group input:disabled {
    background: #f3f4f6;
    color: #6b7280;
    opacity: 1;
    cursor: not-allowed;
}

.login-page .alert-error {
    background: rgba(255, 180, 180, 0.2);
    border: 1px solid rgba(255, 180, 180, 0.35);
    color: #ffd7d7;
}

.login-page.lamp-on {
    background: radial-gradient(circle at top left, #fff6ea 0%, #f8e1c6 40%, #241b13 100%);
    color: #2d2218;
}

.login-page.lamp-on::before {
    background: radial-gradient(circle at 30% 20%, rgba(255, 216, 150, 0.45), transparent 60%);
}

.login-page.lamp-on .lamp-light {
    opacity: 1;
}

.login-page.lamp-on .login-card {
    background: rgba(255, 250, 244, 0.9);
    border-color: rgba(255, 200, 150, 0.4);
    color: #2b211a;
}

.login-page.lamp-on .login-card-header {
    background: rgba(255, 255, 255, 0.8);
}

.login-page.lamp-on .login-form h2 {
    color: #2c2217;
}

.login-page.lamp-on .form-group label {
    color: #3c3127;
}

.login-page.lamp-on .form-group input {
    background: #ffffff;
    border-color: rgba(211, 185, 160, 0.7);
    color: #2b211a;
}

.login-page.lamp-on .btn-secondary {
    background: #fff5e9;
    color: #2a1b0f;
    border-color: rgba(211, 185, 160, 0.8);
}

.login-page.lamp-on .login-footer {
    color: rgba(60, 49, 39, 0.7);
}

@media (max-width: 900px) {
    .lamp-login {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .lamp-stage {
        order: 2;
        min-height: 260px;
    }
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary);
    color: white;
    position: fixed;
    height: 100vh;
    max-width: 100vw;
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar-header {
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .logo {
    color: white;
}

.user-info {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: var(--secondary);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.user-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-role {
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.menu-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--secondary);
}

.menu-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--secondary);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.sidebar.collapsed {
    width: 84px;
}

.main-content.collapsed {
    margin-left: 84px;
    width: calc(100% - 84px);
}

.sidebar.collapsed .menu-text,
.sidebar.collapsed .menu-badge,
.sidebar.collapsed .section-title .section-title-text span:last-child,
.sidebar.collapsed .section-caret {
    display: none !important;
}

.sidebar.collapsed .menu-item {
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
}

.sidebar.collapsed .menu-item i,
.sidebar.collapsed .menu-icon {
    margin-right: 0;
}

.sidebar.collapsed .section-title {
    justify-content: center;
}

.sidebar.collapsed .section-links {
    max-height: 0 !important;
    overflow: hidden !important;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    background: #f5f7fa;
    min-width: 0;
    width: calc(100% - var(--sidebar-width));
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* Top Navbar */
.top-navbar {
    background: white;
    padding: 15px clamp(14px, 2.4vw, 30px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    display: none;
}

.search-box {
    flex: 1;
    max-width: 500px;
    min-width: 180px;
    margin: 0 14px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.notification {
    position: relative;
    cursor: pointer;
}

.notification i {
    font-size: 1.3rem;
    color: var(--primary);
}

.notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Content Area */
.content-wrapper {
    padding: var(--content-padding);
    width: 100%;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    color: var(--primary);
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    color: #777;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--secondary);
    text-decoration: none;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.stat-icon.sales {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-icon.customers {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-icon.products {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.stat-icon.revenue {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.stat-content h3 {
    font-size: clamp(1rem, 1.6vw, 1.6rem);
    color: var(--primary);
    margin-bottom: 5px;
    line-height: 1.2;
    word-break: break-all;
    max-width: 100%;
}

.stat-content p {
    color: #777;
    font-size: 0.9rem;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    margin-top: 5px;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

/* Tables */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow-x: auto;
    margin-bottom: 30px;
}

.table-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    color: var(--primary);
}

.table-actions {
    display: flex;
    gap: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f8f9fa;
}

th {
    padding: 15px 25px;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid #eee;
    word-break: normal;
    white-space: nowrap;
}

td {
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    word-break: normal;
}

/* Global table readability on narrow screens */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-container table {
    min-width: 720px;
}

/* Box headers/content should wrap naturally, not split letters */
.table-header,
.admin-table-header {
    flex-wrap: wrap;
    gap: 10px;
}

.table-header h3,
.admin-table-header h3 {
    word-break: normal;
    overflow-wrap: break-word;
}

/* Admin dashboard table readability on narrow screens */
.admin-table-card .admin-table-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table-card .table {
    min-width: 640px;
}

.admin-table-card .table th {
    white-space: nowrap;
    word-break: normal;
}

.admin-table-card .table td {
    word-break: normal;
}

tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-delinquent {
    background: #f8d7da;
    color: #721c24;
}

/* Forms */
.form-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

/* Responsive */
@media (max-width: 1280px) {
    .content-wrapper {
        padding: clamp(14px, 2vw, 24px);
    }

    .table-header,
    th,
    td {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 1024px) {
    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 950;
    }

    .sidebar {
        width: min(82vw, 320px);
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .main-content.collapsed {
        margin-left: 0;
        width: 100%;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .top-navbar {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 768px) {
    .top-navbar {
        flex-wrap: wrap;
        align-items: stretch;
        gap: 10px;
    }

    .search-box {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin: 0;
    }

    .navbar-actions {
        margin-left: auto;
        gap: 10px;
    }

    .logout-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .content-wrapper {
        padding: 14px;
    }

    .page-header {
        margin-bottom: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .table-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .form-container {
        padding: 18px;
    }

    .modal-content {
        width: calc(100% - 20px);
    }
}

@media (max-width: 576px) {
    .top-navbar {
        padding: 10px 12px;
    }

    .table-container table {
        min-width: 560px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 14px;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .breadcrumb {
        flex-wrap: wrap;
        row-gap: 6px;
    }
}

/* Charts */
.chart-container {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    color: var(--primary);
}

.chart-actions {
    display: flex;
    gap: 10px;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .sidebar,
    .top-navbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .content-wrapper {
        padding: 0 !important;
    }
}
