* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- SLEEK SIDEBAR --- */
.sidebar {
    width: 280px;
    background: var(--primary);
    color: white;
    padding: 2.5rem 1.5rem;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 900;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.sidebar-nav {
    list-style: none;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.2s;
}

.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* --- MAIN CONTENT AREA --- */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 3rem 4rem;
    max-width: 100%;
    width: calc(100% - 280px);
}

/* --- RESPONSIVE GRIDS --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.data-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-admin);
    margin-bottom: 2rem;
    overflow: hidden;
}

.stat-card {
    background: var(--surface-gradient);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-admin);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--text-main);
    line-height: 1;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

th {
    background: #F9FAFB;
    padding: 1.25rem 2rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

td {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #F1F5F9;
}

/* --- MOBILE TICKET --- */
.admin-mobile-toggle { display: none; }
.admin-mobile-close { display: none; }

@media (max-width: 1200px) {
    .main-content { padding: 2.5rem; }
}

@media (max-width: 1024px) {
    .sidebar { left: -280px; }
    .sidebar.active { left: 0; }
    .main-content { margin-left: 0; width: 100%; }
    .admin-mobile-toggle { 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        width: 48px; 
        height: 48px; 
        background: white; 
        border-radius: 12px; 
        border: 1px solid var(--border);
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
        cursor: pointer;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 2001;
    }
    .admin-mobile-close { 
        display: flex; 
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: rgba(255,255,255,0.1); 
        border: none;
        border-radius: 8px;
        color: white;
        cursor: pointer; 
    }
}

@media (max-width: 768px) {
    .main-content { padding: 5rem 1.5rem 2rem 1.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .main-content h1 { font-size: 2rem; }
    header { flex-direction: column; align-items: flex-start !important; gap: 1.5rem; }
}

/* --- COMMON COMPONENTS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pending { background: #FFFBEB; color: #D97706; border: 1px solid rgba(217, 119, 6, 0.2); }
.status-processing { background: #EFF6FF; color: #2563EB; border: 1px solid rgba(37, 99, 235, 0.2); }
.status-completed { background: #ECFDF5; color: #059669; border: 1px solid rgba(5, 150, 105, 0.2); }
.status-cancelled { background: #FEF2F2; color: #DC2626; border: 1px solid rgba(220, 38, 38, 0.2); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

