body {
    background: #f3f4f6;
}

.sidebar {
    width: 260px;
    min-height: 100vh;
    background: #111827;
    flex-shrink: 0;
}

.sidebar-brand .brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.sidebar .nav-link {
    color: #d1d5db;
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar .nav-link.active {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.stats-card .stats-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.quick-action:hover {
    background: #f9fafb;
    color: inherit;
}

.qa-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.bg-purple-soft {
    background: #f3e8ff;
    color: #7c3aed;
}

.login-body {
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 55%, #2563eb 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.role-pill {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.role-pill.role-admin {
    background: #f3e8ff;
    color: #7c3aed;
}

.role-pill.role-staff {
    background: #dbeafe;
    color: #1d4ed8;
}

.ticket-type-btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ticket-type-btn:hover {
    background: #f9fafb;
}

.ticket-type-btn.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.ticket-type-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.qty-btn {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
    padding: 0;
}

.zone-info {
    padding: 1rem;
    border-radius: 0.75rem;
    background: #eff6ff;
    color: #1e3a8a;
}

.success-check {
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
}

.ticket-code-chip {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.65rem;
    padding: 0.75rem;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    color: #2563eb;
}

.btn-purple {
    background: #7c3aed;
    border-color: #7c3aed;
}

.btn-purple:hover {
    background: #6d28d9;
    border-color: #6d28d9;
    color: #fff;
}

.status-pill {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill.status-sold {
    background: #dcfce7;
    color: #15803d;
}

.status-pill.status-used {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-pill.status-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.status-pill.status-available {
    background: #f3f4f6;
    color: #374151;
}

.status-pill.status-featured {
    background: #fef9c3;
    color: #a16207;
}

.concert-thumb {
    width: 80px;
    height: 80px;
    border-radius: 0.65rem;
    overflow: hidden;
    background: #e5e7eb;
}

.concert-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.concert-thumb-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.5rem;
}

.concert-row:hover {
    background: #f9fafb;
}

@media (max-width: 768px) {
    #wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        min-height: auto;
    }
}
