:root {
    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    
    /* Colors - Minimal Palette */
    --primary-color: #4f46e5; /* Indigo 600 */
    --primary-hover: #4338ca; /* Indigo 700 */
    --primary-subtle: #eef2ff; /* Indigo 50 */
    
    --secondary-color: #64748b; /* Slate 500 */
    --text-main: #0f172a;      /* Slate 900 */
    --text-muted: #64748b;     /* Slate 500 */
    
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #0ea5e9;
    
    /* Backgrounds */
    --bg-body: #f1f5f9;       /* Slate 100 */
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --border-color: #e2e8f0;   /* Slate 200 */
    
    /* Shadows - Subtle */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    
    /* Transitions - Fast & Specific */
    --transition: 0.2s ease-in-out;
}

[data-theme="dark"] {
    --bg-body: #0f172a;       /* Slate 900 */
    --bg-card: #1e293b;       /* Slate 800 */
    --bg-sidebar: #1e293b;
    --border-color: #334155;   /* Slate 700 */
    --text-main: #f8fafc;      /* Slate 50 */
    --text-muted: #94a3b8;     /* Slate 400 */
    --primary-subtle: rgba(79, 70, 229, 0.15);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 0.925rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ===== LAYOUT ===== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
    transition: width var(--transition);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* ===== SIDEBAR COMPONENTS ===== */
.sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
}

.sidebar-logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.sidebar-brand {
    transition: opacity var(--transition);
}

.sidebar.collapsed .sidebar-brand {
    display: none;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
}

.menu-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
    margin-top: 16px;
    letter-spacing: 0.05em;
}

.sidebar.collapsed .menu-label {
    display: none;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
    background-color: var(--primary-subtle);
    color: var(--primary-color);
}

.nav-link i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 10px 0;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.sidebar.collapsed .user-info {
    display: none;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== TOP NAVBAR ===== */
.top-navbar {
    height: 64px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-body);
    padding: 8px 16px;
    border-radius: 8px;
    width: 320px;
    margin-left: auto;
    margin-right: 24px;
    border: 1px solid transparent;
    transition: border-color var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    background: var(--bg-card);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    margin-left: 8px;
    width: 100%;
    color: var(--text-main);
    font-size: 0.875rem;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-icon:hover {
    background: var(--bg-body);
    color: var(--text-main);
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 32px;
    flex: 1;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== CARDS & CONTAINERS ===== */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.card-body {
    padding: 24px;
}

/* ===== STAT CARDS (Clean) ===== */
.stat-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.primary { background: var(--primary-subtle); color: var(--primary-color); }
.stat-icon.success { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.stat-icon.warning { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
.stat-icon.info { background: rgba(14, 165, 233, 0.1); color: var(--info-color); }

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.stat-trend {
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-trend.positive { color: var(--success-color); }
.stat-trend.negative { color: var(--danger-color); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: white;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-body);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

/* ===== TABLES ===== */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    text-align: left;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-body);
}

.table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--bg-body);
}

/* ===== BADGES & AVATARS ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); }
.badge-info { background: rgba(14, 165, 233, 0.1); color: var(--info-color); }

.avatar-group { display: flex; }
.avatar-group img { 
    margin-left: -8px; 
    border: 2px solid var(--bg-card); 
    width: 32px; 
    height: 32px; 
    border-radius: 50%;
}
.avatar-group img:first-child { margin-left: 0; }

/* ===== ACTIVITY FEED ===== */
.activity-timeline {
    position: relative;
    padding-left: 24px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    left: 11px;
}

.activity-item {
    position: relative;
    padding-bottom: 24px;
    padding-left: 24px;
}

.activity-point {
    position: absolute;
    left: 6px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    z-index: 2;
}

.activity-content h4 {
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== UTILITIES ===== */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.text-end { text-align: right; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success-color) !important; }


/* Utilities */
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Avatars */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Chart Container */
.chart-container {
    position: relative;
    width: 100%;
    height: 300px;
}

/* Grid System */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.col-3 { width: 25%; padding: 0 12px; }
.col-4 { width: 33.333%; padding: 0 12px; }
.col-6 { width: 50%; padding: 0 12px; }
.col-8 { width: 66.666%; padding: 0 12px; }
.col-12 { width: 100%; padding: 0 12px; }

@media (max-width: 1024px) {
    .col-3 { width: 50%; margin-bottom: 24px; }
    .col-4 { width: 50%; margin-bottom: 24px; }
    .col-8 { width: 100%; margin-bottom: 24px; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .col-3, .col-4, .col-6 { width: 100%; }
    .search-box { display: none; }
    .top-navbar { padding: 0 16px; }
    .page-content { padding: 16px; }
}

/* Chart Legend */
.chart-legend { display: flex; justify-content: center; gap: 20px; margin-top: 16px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--text-muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }

/* Login/Register Specific */
.auth-layout { display: flex; height: 100vh; }
.auth-side { flex: 1; background: var(--bg-card); display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-illustration { flex: 1; background: var(--bg-body); display: flex; align-items: center; justify-content: center; }
.auth-form { width: 100%; max-width: 400px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); color: var(--text-main); font-size: 0.9375rem; transition: border-color var(--transition); }

/* Compatibility / Additional Utils */
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.badge-dot.online { background-color: var(--success-color); }
.badge-dot.offline { background-color: var(--secondary-color); }
.badge-dot.busy { background-color: var(--danger-color); }

/* Mini Stat Card Adapter */
.mini-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition);
}
.mini-stat-card:hover {
    box-shadow: var(--shadow-md);
}
.mini-stat-card .stat-icon { margin-bottom: 12px; }
.mini-stat-card .stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.mini-stat-card .stat-label { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 8px; }
.mini-stat-card .stat-trend { font-size: 0.8125rem; display: flex; align-items: center; gap: 4px; font-weight: 500; }
.mini-stat-card .stat-trend.up { color: var(--success-color); }
.mini-stat-card .stat-trend.down { color: var(--danger-color); }

/* ===== MISSING COMPONENTS ===== */

/* Additional CSS Variables */
:root {
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --primary-light: rgba(79, 70, 229, 0.1);
    --light-color: #f8fafc;
    --dark-color: #0f172a;
}

[data-theme="dark"] {
    --light-color: #1e293b;
    --dark-color: #f8fafc;
    --primary-light: rgba(79, 70, 229, 0.2);
}

/* Navbar Components */
.mobile-toggle {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    display: none;
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-body);
    color: var(--text-main);
}

.nav-action-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: all var(--transition);
}

.nav-action-btn:hover {
    background: var(--bg-body);
    color: var(--text-main);
}

.nav-action-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger-color);
    color: white;
    font-size: 0.625rem;
    padding: 2px 6px;
    border-radius: 10px;
}

.navbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 8px;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.navbar-user img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.navbar-user-info {
    display: flex;
    flex-direction: column;
}

.navbar-user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-main);
}

.navbar-user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.sidebar-toggle:hover {
    color: var(--text-main);
}

/* Nav Menu (ul wrapper) */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Button Variants */
.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 12px;
}

.btn-ghost:hover {
    background: var(--bg-body);
    color: var(--text-main);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-icon {
    padding: 0;
    width: 36px;
    height: 36px;
}

/* Position Utilities */
.position-relative { position: relative; }
.position-absolute { position: absolute; }

/* Margin Utilities */
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }
.mt-4 { margin-top: 24px; }

/* Gap Utilities */
.gap-1 { gap: 4px; }

/* Card Footer */
.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-body);
}

/* Form Elements */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-check {
    display: inline-flex;
    align-items: center;
}

.form-check-input {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-switch .form-check-input {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    appearance: none;
    background: var(--border-color);
    position: relative;
    cursor: pointer;
    transition: background var(--transition);
}

.form-switch .form-check-input::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform var(--transition);
}

.form-switch .form-check-input:checked {
    background: var(--primary-color);
}

.form-switch .form-check-input:checked::before {
    transform: translateX(18px);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Text Colors */
.text-danger { color: var(--danger-color) !important; }
.text-primary { color: var(--primary-color) !important; }

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Additional Badge Colors */
.badge-primary { background: var(--primary-light); color: var(--primary-color); }
.badge-secondary { background: rgba(100, 116, 139, 0.1); color: var(--secondary-color); }

/* Modal Styles */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-out;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1.25rem;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    min-width: 180px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 100;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: var(--bg-body);
}

/* Tabs */
.tab-nav {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Progress Bar */
.progress {
    height: 8px;
    background: var(--bg-body);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-success { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.alert-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
.alert-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); }
.alert-info { background: rgba(14, 165, 233, 0.1); color: var(--info-color); }


/* ===== LOGIN PAGE ===== */
.login-page {
    display: flex;
    min-height: 100vh;
    background: var(--bg-body);
}

.login-left {
    flex: 1;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.login-illustration {
    width: 100%;
    max-width: 500px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.login-left h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.login-left p {
    font-size: 1.125rem;
    opacity: 0.9;
    text-align: center;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-card);
}

.login-form {
    width: 100%;
    max-width: 440px;
}

.login-form h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.login-form .subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 32px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1.125rem;
}

.password-toggle:hover {
    color: var(--text-main);
}

.btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
}

.text-center {
    text-align: center;
}

.d-inline-flex {
    display: inline-flex;
}

@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
    }
    
    .login-left {
        padding: 40px 20px;
        min-height: 40vh;
    }
    
    .login-left h2 {
        font-size: 1.5rem;
    }
    
    .login-left p {
        font-size: 0.9375rem;
    }
    
    .login-illustration {
        max-width: 300px;
        margin-bottom: 24px;
    }
    
    .login-right {
        padding: 32px 20px;
    }
}
