:root {
    /* Base Themes: Dark (Default) */
    --bg-main: #0b1224;
    --bg-sidebar: #141d38;
    --bg-card: #16203a;
    --bg-surface: rgba(255, 255, 255, 0.04);
    --bg-input: #111827;
    --text-main: #f8fafc;
    --text-muted: #a3b4cc;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.06);
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.18);
    
    /* Semantic Colors */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #10b981;
    --danger: #ef4444;
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-main: #f5f7fb;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-surface: #f8fafc;
    --bg-input: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: rgba(15, 23, 42, 0.10);
    --glass: rgba(0, 0, 0, 0.03);
    --shadow-soft: 0 18px 44px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    min-height: 100%;
    height: 100%;
    overflow-x: hidden;
}
 
body {
    background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.12), transparent 28%),
                radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.08), transparent 30%),
                var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(20, 29, 56, 0.96));
    border-right: 1px solid var(--border);
    padding: 1.5rem 1.25rem;
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
 
.sidebar-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
 
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
 
.nav-footer {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.5;
}

.nav-links {
    list-style: none;
    flex: none;
    min-height: 0;
    overflow: visible;
    padding-right: 0.5rem;
    margin-bottom: 1rem;
}
 
.sidebar-action-link {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
 
.sidebar-action-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.85rem 0;
    width: 100%;
}
 
.sidebar-action-link a:hover {
    color: white;
}
 
.nav-links li {
    margin-bottom: 0.5rem;
}
 
.nav-links a {
    background-color: transparent;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}
 
.nav-links a:hover {
    background-color: rgba(99, 102, 241, 0.12);
    color: white;
    transform: translateX(2px);
}
 
.nav-links a.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(16, 185, 129, 0.12));
    color: white;
    border-left: 4px solid var(--secondary);
    padding-left: 0.85rem;
}
 
.nav-links .nav-section {
    display: block;
    margin: 1.25rem 0 0.5rem;
    padding: 0.65rem 0.95rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links .nav-group {
    margin-bottom: 0.25rem;
}

.nav-group-details > .nav-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.nav-group-details > .nav-section::-webkit-details-marker {
    display: none;
}

.nav-group-details > .nav-section::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-size: 0.7rem;
    font-weight: 900;
    transition: transform 0.2s ease;
}

.nav-group-details[open] > .nav-section::after {
    transform: rotate(180deg);
}

.nav-group-details > .nav-section:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 0.35rem;
}

.nav-sub-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-sub-links li {
    margin-bottom: 0.25rem;
}

.nav-sub-links a {
    font-size: 0.88rem;
}
 
/* Main Content */
.main-content {
    margin-left: 260px;
    flex-grow: 1;
    padding: 2rem;
    width: calc(100% - 260px);
    min-height: 100vh;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    transition: padding 0.3s ease, margin-left 0.3s ease;
}
 
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

h1 {
    font-size: 1.75rem;
    font-weight: 600;
}

/* Theme & Menu Toggles */
.icon-btn {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
}
 
.sidebar-toggle {
    display: flex;
}
 
.breadcrumb {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
 
.page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}
 
.page-title-row h2 {
    margin: 0;
    font-size: 1.6rem;
}
 
.panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    min-width: 0;
}

.stat-card.profit .value { color: var(--secondary); }
.stat-card.stock .value { color: var(--primary); }

/* Table Container */
.content-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    overflow-x: auto; /* Responsive tables */
}

.latest-sale-row {
    background: rgba(245, 158, 11, 0.08);
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.latest-sale-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.5rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #22c55e;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* DataTables themed */
.dataTables_wrapper { color: var(--text-main); }
.dataTables_length select { background: var(--bg-input); color: var(--text-main); border: 1px solid var(--border); border-radius: 0.25rem; }

table.dataTable {
    margin: 1rem 0 !important;
    font-size: 0.8125rem;
}

table.dataTable thead th {
    background-color: var(--glass);
    color: var(--text-muted);
    border-bottom: 1px solid var(--border) !important;
    padding: 0.75rem !important;
}

table.dataTable tbody td {
    padding: 0.75rem !important;
    border-bottom: 1px solid var(--border) !important;
    color: var(--text-main);
}

.dataTables_filter input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-main);
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 14px 30px rgba(99, 102, 241, 0.18);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
}
.btn-secondary {
    background: var(--glass);
    color: var(--text-main);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    border: 1px solid var(--border);
    max-height: 90vh;
    overflow-y: auto;
}

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-main);
    outline: none;
}

.form-control:focus { border-color: var(--primary); }

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .header-top {
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        padding: 1rem;
    }

    .header-actions {
        margin-left: auto;
        gap: .5rem;
    }

    .page-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-info {
        gap: 0.5rem;
    }

    .modal-content {
        width: min(92%, 720px);
        padding: 1.25rem;
    }
}

@media (min-width: 769px) {
    body.nav-sidebar-hidden .sidebar {
        transform: translateX(-100%);
        visibility: hidden;
    }

    body.nav-sidebar-hidden .main-content {
        width: 100%;
        margin-left: 0;
    }
}

/* Tablets keep the persistent navigation, but give the working area more
   room for filters and data tables. */
@media (min-width: 769px) and (max-width: 1100px) {
    .sidebar { width: 220px; padding-left: 1rem; padding-right: 1rem; }
    .main-content { margin-left: 220px; width: calc(100% - 220px); padding: 1.25rem; }
    .header-top { padding: 1rem; }
    .nav-links a { padding-left: .75rem; padding-right: .75rem; }
    .content-card { padding: 1.15rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .content-card { padding: 1rem; }
    .main-content { padding: 0.75rem; }
    .header-top { padding: 0.85rem 0.95rem; }
    .form-control {
        font-size: 16px;
    }
}

/* Shared responsive primitives. Keep tables readable by scrolling rather than
   hiding their headings (DataTables rows are populated asynchronously). */
@media (max-width: 767px) {
    .main-content { padding: .75rem; }
    .header-top > div:first-child { min-width: 0; }
    .header-top h1 { overflow-wrap: anywhere; }
    .content-card { max-width: 100%; }
    .content-card > .dataTables_wrapper,
    .content-card > table,
    .table-wrapper,
    .mobile-scroll,
    .ticket-dashboard-table-wrap {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .content-card > table,
    .content-card > .dataTables_wrapper > table { min-width: 680px; }
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none;
        width: 100%;
        text-align: left;
    }
    .dataTables_wrapper .dataTables_filter input { width: 100%; margin-left: 0; }
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate { float: none; text-align: left; margin-top: .5rem; }
    .dataTables_wrapper .dataTables_paginate { white-space: normal; }
    .dataTables_wrapper table.dataTable { margin-top: .75rem !important; }
    .btn { min-height: 44px; }
    .icon-btn, .sidebar-toggle { width: 44px; min-width: 44px; padding: 0; margin: 0; }
    .header-actions .btn, .header-actions button { width: auto; margin: 0; }
    .modal { align-items: flex-start; padding: .75rem 0; overflow-y: auto; }
    .modal-content { width: calc(100% - 1.5rem); max-height: calc(100vh - 1.5rem); }
    .modal-content form > div[style*="grid-template-columns"],
    .content-card form > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    img, video, canvas { max-width: 100%; height: auto; }
    body.sidebar-is-open { overflow: hidden; }
}

@media (max-height: 820px) {
    .sidebar {
        padding: 1.15rem 1rem;
    }
    .logo {
        margin-bottom: 1.25rem;
    }
    .nav-links a {
        padding: 0.75rem 0.85rem;
    }
    .nav-links .nav-section {
        margin: 1rem 0 0.35rem;
        padding: 0.5rem 0.75rem;
    }
    .sidebar-action-link {
        padding-top: 0.85rem;
    }
    .nav-footer {
        margin-top: 0.85rem;
        padding-top: 0.85rem;
    }
}

@media (max-height: 720px) {
    .sidebar {
        padding: 0.95rem 0.85rem;
    }
    .logo {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    .nav-links a {
        padding: 0.65rem 0.75rem;
        font-size: 0.92rem;
    }
    .nav-links .nav-section {
        font-size: 0.72rem;
        margin: 0.85rem 0 0.3rem;
        padding: 0.35rem 0.65rem;
    }
    .sidebar-action-link {
        padding-top: 0.75rem;
    }
    .nav-footer {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
}

/* Premium interface polish — presentation-only layer */
::selection { background: rgba(99, 102, 241, 0.34); color: #fff; }

body { letter-spacing: -0.01em; }
h1 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 700; letter-spacing: -0.035em; }
h2, h3 { letter-spacing: -0.025em; }

.sidebar { box-shadow: 18px 0 50px rgba(0, 0, 0, 0.16); }
.logo { color: #818cf8; border-bottom-color: var(--border); letter-spacing: -0.04em; }
.logo i {
    display: grid; place-items: center; width: 2.15rem; height: 2.15rem;
    border-radius: 0.7rem; color: #fff; font-size: 0.95rem;
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.34);
}
.logo .company-logo-image {
    display: block;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.2rem;
    object-fit: contain;
    border-radius: 0.7rem;
    background: #fff;
}
.nav-links a { font-size: 0.9rem; font-weight: 500; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.nav-links a.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, .28), rgba(79, 70, 229, .14));
    box-shadow: inset 3px 0 0 #a5b4fc, 0 8px 18px rgba(79, 70, 229, .12);
}

.main-content { padding: 1.75rem 2rem 2.5rem; }
.header-top {
    border-radius: 1.1rem; background: color-mix(in srgb, var(--bg-card) 76%, transparent);
    border-color: var(--border); box-shadow: var(--shadow-soft); backdrop-filter: blur(12px);
}
.icon-btn { border-radius: .75rem; transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.icon-btn:active, .btn:active { transform: translateY(1px) scale(.98); }

.sidebar {
    padding: 1.25rem 0.9rem;
}

.logo {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0 0.2rem 1.1rem;
    font-size: 1.25rem;
}

.logo .company-logo-image {
    width: 2.65rem;
    height: 2.65rem;
}

.nav-links {
    padding: 0;
}

.nav-links .nav-group {
    margin: 0 0 0.35rem;
}

.nav-group-details {
    border: 1px solid transparent;
    border-radius: 0.85rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-group-details[open] {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.025);
}

.nav-links .nav-group-details > .nav-section {
    display: grid;
    grid-template-columns: 1.15rem minmax(0, 1fr) 0.9rem;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 0.8rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1.25;
    text-transform: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-group-details > .nav-section > i {
    color: #818cf8;
    font-size: 0.9rem;
    text-align: center;
}

.nav-group-details > .nav-section::after {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
    color: var(--text-muted);
    font-size: 0.65rem;
}

.nav-group-details > .nav-section:hover,
.nav-group-details[open] > .nav-section {
    color: var(--text-main);
    background: rgba(99, 102, 241, 0.09);
}

.nav-group-details[open] > .nav-section > i,
.nav-group-details[open] > .nav-section::after {
    color: #a5b4fc;
}

.nav-group-details > .nav-section:focus-visible {
    outline: 2px solid rgba(129, 140, 248, 0.8);
    outline-offset: 2px;
}

.nav-sub-links {
    margin: 0.1rem 0 0.55rem 1.05rem;
    padding: 0.15rem 0 0.15rem 0.5rem;
    border-left: 1px solid rgba(148, 163, 184, 0.22);
}

.nav-links .nav-sub-links li {
    margin: 0.12rem 0;
}

.nav-links .nav-sub-links a {
    min-height: 2.45rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.65rem;
    gap: 0.65rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.3;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-links .nav-sub-links a > i {
    width: 1rem;
    color: #94a3b8;
    font-size: 0.82rem;
    text-align: center;
}

.nav-links .nav-sub-links a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.055);
    transform: none;
}

.nav-links .nav-sub-links a.active {
    padding-left: 0.65rem;
    color: #eef2ff;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.22), rgba(99, 102, 241, 0.07));
    box-shadow: inset 2px 0 0 #818cf8;
}

.nav-links .nav-sub-links a.active > i {
    color: #a5b4fc;
}

.stat-card {
    position: relative; overflow: hidden;
    background: linear-gradient(145deg, color-mix(in srgb, var(--bg-card) 96%, #fff 4%), var(--bg-card));
    border-radius: 1.1rem; box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.stat-card::after {
    content: ''; position: absolute; width: 7rem; height: 7rem; right: -3.5rem; bottom: -4rem;
    border-radius: 50%; background: radial-gradient(circle, rgba(129, 140, 248, .14), transparent 68%); pointer-events: none;
}
.stat-card:hover { transform: translateY(-3px); border-color: rgba(129, 140, 248, .32); box-shadow: 0 18px 34px rgba(15, 23, 42, .12); }
.content-card { background: color-mix(in srgb, var(--bg-card) 96%, transparent); border-radius: 1.1rem; box-shadow: 0 10px 28px rgba(15, 23, 42, .045); }

table.dataTable thead th {
    background-color: color-mix(in srgb, var(--bg-surface) 78%, transparent); padding: .85rem .75rem !important;
    font-size: .72rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase;
}
table.dataTable tbody td { padding: .85rem .75rem !important; }
table.dataTable tbody tr { transition: background-color .18s ease; }
table.dataTable tbody tr:hover { background: rgba(99, 102, 241, .055) !important; }
.dataTables_filter input:focus, .dataTables_length select:focus { border-color: rgba(129, 140, 248, .8); box-shadow: 0 0 0 3px rgba(99, 102, 241, .14); outline: none; }

.btn { padding: .67rem 1.1rem; border-radius: .7rem; font-weight: 600; line-height: 1.25; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.btn-primary { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.btn-primary:hover { background: linear-gradient(135deg, #7477f5, #5b52e8); box-shadow: 0 14px 28px rgba(79, 70, 229, .28); transform: translateY(-1px); }

.modal { background: rgba(3, 7, 18, .68); backdrop-filter: blur(7px); }
.modal-content { border-radius: 1.15rem; border-color: color-mix(in srgb, var(--border) 75%, #818cf8 25%); box-shadow: 0 28px 80px rgba(0, 0, 0, .34); }
.modal-content h2, .modal-content h3 { margin-top: 0; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: .45rem; font-size: .84rem; font-weight: 600; color: var(--text-main); }
.form-control { border-radius: .7rem; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.form-control:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99, 102, 241, .14); }
.form-control::placeholder { color: color-mix(in srgb, var(--text-muted) 72%, transparent); }

.user-info { display: flex; align-items: center; gap: .7rem; }
.user-avatar { color: #a5b4fc; line-height: 1; }
.user-dropdown { margin-top: .5rem; box-shadow: var(--shadow-soft); }

@media (prefers-reduced-motion: no-preference) {
    .content-card, .stat-card { animation: surface-in .32s ease both; }
    @keyframes surface-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 768px) {
    .main-content { padding: 1rem 1rem 1.5rem; }
    .header-top { border-radius: 1rem; }
}
