@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- DESIGN TOKENS (LIGHT MODE PREMIUM) --- */
:root {
    --bg-app: #f6f8fa;
    --surface: #ffffff;
    --surface-secondary: #f1f3f6;
    --surface-elevated: #ffffff;
    
    --primary: #14b8a6;
    --primary-hover: #0d9488;
    --primary-light: #ccfbf1;
    
    --secondary: #0ea5e9;
    --secondary-hover: #0284c7;
    --secondary-light: #e0f2fe;
    
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --accent-light: #cffafe;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --border-focus: #99f6e4;
    
    --glow: rgba(20, 184, 166, 0.08);
    --glow-secondary: rgba(14, 165, 233, 0.08);
    
    /* Shadow system */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 20px 25px -5px rgba(27, 34, 76, 0.05), 0 10px 10px -5px rgba(27, 34, 76, 0.02);

    /* Status Colors */
    --success: #10b981;
    --success-light: #ecfdf5;
    --success-text: #065f46;
    
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --warning-text: #92400e;
    
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --danger-text: #991b1b;
    
    --info: #0ea5e9;
    --info-light: #e0f2fe;
    --info-text: #0369a1;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- GLOBAL STYLING OVERRIDES --- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-app) !important;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow: hidden; /* prevent body scroll, let app-main handle it */
    height: 100vh;
}

h1, h2, h3, h4, h5, h6, .brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
}

/* --- FIX: LAYOUT — Sticky Footer + Independent Scroll --- */
.app-wrapper {
    background-color: var(--bg-app);
}

/* Sidebar: independent scroll */
.app-sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}


.app-sidebar .sidebar-brand {
    flex-shrink: 0;
}

.app-sidebar .sidebar-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Hide default scrollbar in Firefox */
}

.app-sidebar .sidebar-wrapper::-webkit-scrollbar {
    width: 4px;
}

.app-sidebar .sidebar-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.app-sidebar .sidebar-wrapper::-webkit-scrollbar-thumb {
    background: transparent; /* Invisible by default */
    border-radius: var(--radius-full);
    transition: background 0.3s ease;
}

.app-sidebar:hover .sidebar-wrapper::-webkit-scrollbar-thumb {
    background: rgba(203, 213, 225, 0.5); /* Subtle transparent gray on sidebar hover */
}

.app-sidebar:hover .sidebar-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.8); /* Slightly darker when hovering directly over the thumb */
}

/* Main content: independent scroll, footer pinned at bottom */
main.app-main {
    background-color: var(--bg-app) !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.content-wrapper {
    background-color: var(--bg-app) !important;
}

/* Let the app-content area grow to push footer down */
.app-content {
    flex: 1 1 auto;
}

/* Footer pinned at bottom of scrollable content */
.app-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Page transitions */
.app-content {
    animation: fadeInUp 0.4s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- HEADER NAVBAR --- */
.app-header.navbar {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm);
    z-index: 1030;
    padding: 0.6rem 1rem;
}

.app-header.navbar .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    transition: var(--transition);
}

.app-header.navbar .nav-link:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

/* Dropdowns */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    padding: 0.5rem;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.dropdown-item.text-danger:hover {
    background-color: var(--danger-light);
    color: var(--danger);
}

/* --- PREMIUM SIDEBAR --- */
.app-sidebar {
    background: var(--surface) !important;
    border-right: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: width 0.3s ease, transform 0.3s ease;
}

.sidebar-brand {
    border-bottom: 1px solid var(--border) !important;
    background: var(--surface) !important;
    height: 60px;
    display: flex;
    align-items: center;
    padding-left: 1.25rem;
}

.sidebar-brand .brand-link {
    color: var(--text-primary) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 1.15rem;
}

.sidebar-brand .brand-link i {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.3rem;
}

.sidebar-wrapper {
    background: var(--surface) !important;
    padding-bottom: 2rem; /* space at bottom of sidebar scroll */
}

.sidebar-wrapper .nav-header {
    color: var(--text-muted) !important;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 1.5rem 1rem 0.5rem 1.25rem !important;
}

.sidebar-wrapper .nav-link {
    color: var(--text-secondary) !important;
    border-radius: var(--radius-md);
    margin: 0.15rem 0.75rem !important;
    padding: 0.6rem 0.85rem !important;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-wrapper .nav-link i {
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 1.1rem;
}

.sidebar-wrapper .nav-link:hover {
    background-color: var(--surface-secondary) !important;
    color: var(--primary) !important;
}

.sidebar-wrapper .nav-link:hover i {
    color: var(--primary) !important;
    transform: translateX(2px);
}

/* Sidebar Active State */
.sidebar-wrapper .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover)) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2) !important;
    position: relative;
    margin-right: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.sidebar-wrapper .nav-link.active i {
    color: #ffffff !important;
}

.sidebar-wrapper .nav-link.active::before {
    display: none;
}

/* --- CARDS & GLASSMORPHISM --- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header::after {
    display: none !important;
    content: none !important;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    margin: 0;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border);
    padding: 1rem 1.25rem;
}

/* Glass card styling */
.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
}

/* --- METRIC STAT CARDS (DASHBOARD) --- */
.stat-card {
    position: relative;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.stat-card-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.stat-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-card-icon {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    font-size: 2.2rem;
    color: var(--text-muted);
    opacity: 0.25;
    transition: var(--transition);
    z-index: 2;
}

.stat-card:hover .stat-card-icon {
    color: var(--primary);
    opacity: 0.8;
    transform: scale(1.1) rotate(5deg);
}

/* Premium Colored Backgrounds for Stat Cards */
.stat-card-info {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    border: none !important;
}
.stat-card-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: none !important;
}
.stat-card-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover)) !important;
    border: none !important;
}
.stat-card-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
}
.stat-card-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    border: none !important;
}
.stat-card-secondary {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    border: none !important;
}
.stat-card-accent {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    border: none !important;
}

/* Internal text & icon styling for colored stat cards */
.stat-card-info .stat-card-title,
.stat-card-warning .stat-card-title,
.stat-card-primary .stat-card-title,
.stat-card-success .stat-card-title,
.stat-card-danger .stat-card-title,
.stat-card-secondary .stat-card-title,
.stat-card-accent .stat-card-title {
    color: rgba(255, 255, 255, 0.8) !important;
}

.stat-card-info .stat-card-value,
.stat-card-warning .stat-card-value,
.stat-card-primary .stat-card-value,
.stat-card-success .stat-card-value,
.stat-card-danger .stat-card-value,
.stat-card-secondary .stat-card-value,
.stat-card-accent .stat-card-value {
    color: #ffffff !important;
}

.stat-card-info .stat-card-icon i,
.stat-card-warning .stat-card-icon i,
.stat-card-primary .stat-card-icon i,
.stat-card-success .stat-card-icon i,
.stat-card-danger .stat-card-icon i,
.stat-card-secondary .stat-card-icon i,
.stat-card-accent .stat-card-icon i {
    color: #ffffff !important;
}

.stat-card-info .stat-card-icon,
.stat-card-warning .stat-card-icon,
.stat-card-primary .stat-card-icon,
.stat-card-success .stat-card-icon,
.stat-card-danger .stat-card-icon,
.stat-card-secondary .stat-card-icon,
.stat-card-accent .stat-card-icon {
    opacity: 0.25 !important;
}

.stat-card-info:hover .stat-card-icon,
.stat-card-warning:hover .stat-card-icon,
.stat-card-primary:hover .stat-card-icon,
.stat-card-success:hover .stat-card-icon,
.stat-card-danger:hover .stat-card-icon,
.stat-card-secondary:hover .stat-card-icon,
.stat-card-accent:hover .stat-card-icon {
    opacity: 0.45 !important;
}

/* Premium colored glow on hover */
.stat-card-info:hover {
    box-shadow: 0 12px 24px -6px rgba(14, 165, 233, 0.35) !important;
    border-color: transparent !important;
}
.stat-card-warning:hover {
    box-shadow: 0 12px 24px -6px rgba(245, 158, 11, 0.35) !important;
    border-color: transparent !important;
}
.stat-card-primary:hover {
    box-shadow: 0 12px 24px -6px rgba(20, 184, 166, 0.35) !important;
    border-color: transparent !important;
}
.stat-card-success:hover {
    box-shadow: 0 12px 24px -6px rgba(16, 185, 129, 0.35) !important;
    border-color: transparent !important;
}
.stat-card-danger:hover {
    box-shadow: 0 12px 24px -6px rgba(239, 68, 68, 0.35) !important;
    border-color: transparent !important;
}
.stat-card-secondary:hover {
    box-shadow: 0 12px 24px -6px rgba(100, 116, 139, 0.35) !important;
    border-color: transparent !important;
}
.stat-card-accent:hover {
    box-shadow: 0 12px 24px -6px rgba(6, 182, 212, 0.35) !important;
    border-color: transparent !important;
}

/* Radial light glow for colored cards */
.stat-card-info::after,
.stat-card-warning::after,
.stat-card-primary::after,
.stat-card-success::after,
.stat-card-danger::after,
.stat-card-secondary::after,
.stat-card-accent::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%) !important;
}

/* --- MODERN BUTTONS --- */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.775rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(92, 96, 245, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(92, 96, 245, 0.3);
}

.btn-secondary {
    background-color: var(--surface-secondary);
    border-color: var(--border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background-color: var(--border);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Gradient Button */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(168, 85, 247, 0.2);
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(168, 85, 247, 0.35);
}

/* --- FORMS & INPUTS --- */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    background-color: var(--surface);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px var(--glow);
    background-color: var(--surface);
}

.form-label {
    font-weight: 550;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

/* --- PREMIUM MODERN TABLES --- */
.table-responsive {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: var(--surface-secondary) !important;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border) !important;
}

.table td {
    padding: 0.95rem 1.1rem;
    color: var(--text-primary);
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.table-hover tbody tr {
    transition: var(--transition);
}

.table-hover tbody tr:hover {
    background-color: rgba(92, 96, 245, 0.02) !important;
}

/* --- MODERN BADGES --- */
.badge {
    padding: 0.4em 0.8em;
    font-weight: 550;
    font-size: 0.72rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.badge-soft-success {
    background-color: var(--success-light) !important;
    color: var(--success) !important;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-soft-warning {
    background-color: var(--warning-light) !important;
    color: var(--warning-text) !important;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-soft-danger {
    background-color: var(--danger-light) !important;
    color: var(--danger) !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-soft-info {
    background-color: var(--info-light) !important;
    color: var(--info) !important;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge-soft-primary {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(92, 96, 245, 0.2);
}

/* --- TIMELINE --- */
.timeline-modern {
    position: relative;
    padding-left: 2rem;
    margin-left: 0.5rem;
    border-left: 2px solid var(--border);
}

.timeline-item-modern {
    position: relative;
    margin-bottom: 1.75rem;
}

.timeline-item-modern::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 6px);
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border);
    border: 2px solid var(--surface);
    transition: var(--transition);
}

.timeline-item-modern.active::before {
    background-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    transform: scale(1.2);
}

.timeline-item-modern.success::before {
    background-color: var(--success);
    box-shadow: 0 0 0 4px var(--success-light);
}

.timeline-time-modern {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.timeline-title-modern {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-desc-modern {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- EMPTY STATES --- */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-muted);
    background-color: var(--surface-secondary);
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.empty-state-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 320px;
    margin-bottom: 1.25rem;
}

/* --- STAR RATING --- */
.rating-stars-container {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
}

.rating-stars-container input {
    display: none;
}

.rating-stars-container label {
    font-size: 2rem;
    color: var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.rating-stars-container label:hover,
.rating-stars-container label:hover ~ label,
.rating-stars-container input:checked ~ label {
    color: var(--warning);
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

/* --- ALERTS --- */
.alert {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: var(--success-light);
    color: var(--success-text);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background-color: var(--danger-light);
    color: var(--danger-text);
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background-color: var(--warning-light);
    color: var(--warning-text);
    border-left: 4px solid var(--warning);
}

.alert-info {
    background-color: var(--info-light);
    color: var(--info-text);
    border-left: 4px solid var(--info);
}

.alert .btn-close {
    margin-left: auto;
    background-size: 0.75em;
    padding: 1.25rem;
}

/* --- STEPPER (STATUS STEPPER FOR DETAIL) --- */
.stepper-modern {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}

.stepper-modern::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--border);
    z-index: 1;
}

.stepper-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.stepper-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--surface);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.stepper-step.active .stepper-circle {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.stepper-step.completed .stepper-circle {
    border-color: var(--success);
    background-color: var(--success);
    color: #ffffff;
}

.stepper-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    transition: var(--transition);
}

.stepper-step.active .stepper-label {
    color: var(--primary);
}

.stepper-step.completed .stepper-label {
    color: var(--success-text);
}

/* --- OVERRIDES FOR STANDARD BOOTSTRAP BADGES (FROM HELPERS) --- */
.badge.bg-success {
    background-color: var(--success-light) !important;
    color: var(--success-text) !important;
    border: 1px solid rgba(16, 185, 129, 0.15) !important;
}

.badge.bg-warning {
    background-color: var(--warning-light) !important;
    color: var(--warning-text) !important;
    border: 1px solid rgba(245, 158, 11, 0.15) !important;
}

.badge.bg-danger {
    background-color: var(--danger-light) !important;
    color: var(--danger-text) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
}

.badge.bg-info {
    background-color: var(--info-light) !important;
    color: var(--info-text) !important;
    border: 1px solid rgba(14, 165, 233, 0.15) !important;
}

.badge.bg-primary {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(92, 96, 245, 0.15) !important;
}

.badge.bg-secondary {
    background-color: var(--surface-secondary) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
}

.badge.bg-dark {
    background-color: var(--text-primary) !important;
    color: var(--surface) !important;
}

/* --- FOOTER STYLING --- */
.app-footer {
    background-color: var(--surface) !important;
    border-top: 1px solid var(--border) !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-footer strong {
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- PAGE HEADER (app-content-header) --- */
.app-content-header {
    padding: 1.25rem 0 0.5rem 0;
    flex-shrink: 0;
}

.app-content-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}



