:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #64748b;
    --success: #10b981;
    --info: #06b6d4;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --sidebar-bg: #0f172a;
    --sidebar-bg-hover: #1e293b;
    --sidebar-active: #6366f1;
    --body-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.04);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.04);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    overflow-x: hidden;
}

/* ============== LAYOUT ============== */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ============== SIDEBAR ============== */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1030;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background-color: #334155; border-radius: 3px; }

.sidebar-brand {
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.sidebar-user {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-role {
    color: #94a3b8;
    font-size: 0.75rem;
    margin: 0;
    text-transform: capitalize;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0.875rem;
}

.sidebar-heading {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 0.875rem 0.5rem;
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.875rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
    transition: var(--transition);
    position: relative;
}

.sidebar-link i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    transition: var(--transition);
}

.sidebar-link:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: #fff;
    transform: translateX(3px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

/* ============== MAIN ============== */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.topbar {
    background: white;
    height: 70px;
    padding: 0 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid var(--border-color);
}

.topbar-left { display: flex; align-items: center; gap: 1rem; }

.toggle-sidebar-btn {
    background: var(--body-bg);
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-sidebar-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.topbar-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.topbar-right { display: flex; align-items: center; gap: 0.5rem; }

.topbar-search {
    position: relative;
}

.topbar-search input {
    background: var(--body-bg);
    border: 1px solid transparent;
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    border-radius: 10px;
    width: 280px;
    font-size: 0.875rem;
    transition: var(--transition);
}

.topbar-search input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.topbar-search i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.topbar-icon-btn {
    background: var(--body-bg);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}
.topbar-icon-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    background: var(--body-bg);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    border: 1px solid transparent;
}

.topbar-user:hover {
    border-color: var(--primary);
    color: var(--text-dark);
}

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

.topbar-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.content-wrapper {
    padding: 1.75rem;
    flex: 1;
}

/* ============== PAGE HEADER ============== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

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

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumb-item.active { color: var(--primary); font-weight: 600; }

/* ============== CARDS ============== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.card-header {
    padding: 1.15rem 1.5rem;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px 16px 0 0 !important;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.01em;
}

.card-body { padding: 1.5rem; }

/* ============== STATS CARD ============== */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.stat-card-icon.bg-primary { background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%); }
.stat-card-icon.bg-success { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }
.stat-card-icon.bg-warning { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
.stat-card-icon.bg-danger  { background: linear-gradient(135deg, #ef4444 0%, #f87171 100%); }
.stat-card-icon.bg-info    { background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%); }
.stat-card-icon.bg-dark    { background: linear-gradient(135deg, #1e293b 0%, #475569 100%); }

.stat-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
}

.stat-card-trend.up { color: var(--success); background: rgba(16, 185, 129, 0.1); }
.stat-card-trend.down { color: var(--danger); background: rgba(239, 68, 68, 0.1); }

.stat-card-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-card-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

/* ============== BUTTONS ============== */
.btn {
    font-weight: 600;
    padding: 0.55rem 1.15rem;
    border-radius: 10px;
    font-size: 0.875rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; border-radius: 8px; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 0.95rem; border-radius: 12px; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    border: none;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.btn-success:hover { transform: translateY(-1px); color: white; }

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
.btn-warning:hover { color: white; transform: translateY(-1px); }

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.btn-danger:hover { color: white; transform: translateY(-1px); }

.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border: none;
}
.btn-info:hover { color: white; transform: translateY(-1px); }

.btn-light {
    background: var(--body-bg);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}
.btn-light:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

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

/* ============== FORMS ============== */
.form-label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.form-label .required { color: var(--danger); }

.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    font-size: 0.875rem;
    background-color: white;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: var(--danger);
}

textarea.form-control { min-height: 100px; }

.input-group-text {
    background: var(--body-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 10px;
    font-size: 0.875rem;
}

.invalid-feedback { font-size: 0.75rem; }

/* ============== TABLE ============== */
.table {
    margin: 0;
    color: var(--text-dark);
}

.table thead th {
    background: var(--body-bg);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.95rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    border-top: 0;
    white-space: nowrap;
}

.table tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 0.875rem;
}

.table tbody tr:hover { background-color: rgba(99, 102, 241, 0.03); }
.table tbody tr:last-child td { border-bottom: 0; }

/* ============== BADGE ============== */
.badge {
    padding: 0.4rem 0.65rem;
    font-weight: 600;
    font-size: 0.7rem;
    border-radius: 6px;
    text-transform: capitalize;
    letter-spacing: 0.03em;
}

.badge-soft-primary { background: rgba(99, 102, 241, 0.12); color: var(--primary); }
.badge-soft-success { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.badge-soft-warning { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.badge-soft-danger  { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.badge-soft-info    { background: rgba(6, 182, 212, 0.12); color: var(--info); }
.badge-soft-secondary { background: rgba(100, 116, 139, 0.12); color: var(--secondary); }

/* ============== DROPDOWN ============== */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    font-size: 0.875rem;
    min-width: 220px;
}

.dropdown-item {
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

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

.dropdown-divider { margin: 0.4rem 0; border-color: var(--border-color); }

/* ============== AUTH ============== */
.auth-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--body-bg);
}

.auth-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #6366f1 100%);
    position: relative;
    padding: 4rem 3rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.auth-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-banner-content { position: relative; z-index: 1; }

.auth-banner-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.auth-banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 2rem 0 1rem;
    letter-spacing: -0.02em;
}

.auth-banner-desc {
    font-size: 1.05rem;
    opacity: 0.85;
    line-height: 1.65;
    max-width: 480px;
}

.auth-banner-footer {
    position: relative;
    z-index: 1;
    opacity: 0.7;
    font-size: 0.85rem;
}

.auth-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
}

.auth-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* ============== AVATAR ============== */
.avatar {
    border-radius: 50%;
    object-fit: cover;
    background: var(--body-bg);
}

.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; }

/* ============== PAGINATION ============== */
.pagination {
    margin: 0;
    gap: 0.25rem;
}

.page-link {
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px !important;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.page-item.disabled .page-link { background: white; color: var(--text-muted); }

/* ============== ACTIVITY ============== */
.activity-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child { border-bottom: 0; padding-bottom: 0; }

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.05rem;
}

.activity-content { flex: 1; min-width: 0; }

.activity-title {
    margin: 0 0 0.15rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

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

/* ============== KAMAR CARD ============== */
.kamar-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.kamar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.kamar-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.kamar-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}

.kamar-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.kamar-card-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.25rem 0; }
.kamar-card-floor { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 0.75rem 0; }

.kamar-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.kamar-card-price small { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

.kamar-card-footer {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

/* ============== EMPTY STATE ============== */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--body-bg);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-state-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.5rem 0; }
.empty-state-desc { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 1.25rem 0; }

/* ============== UTILS ============== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft { box-shadow: var(--shadow-sm); }
.bg-soft-primary { background: rgba(99, 102, 241, 0.08); }
.bg-soft-success { background: rgba(16, 185, 129, 0.08); }
.bg-soft-warning { background: rgba(245, 158, 11, 0.08); }
.bg-soft-danger  { background: rgba(239, 68, 68, 0.08); }
.bg-soft-info    { background: rgba(6, 182, 212, 0.08); }

/* ============== ALERT ============== */
.alert {
    border: 0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.alert-success { background: rgba(16, 185, 129, 0.1); color: #047857; }
.alert-warning { background: rgba(245, 158, 11, 0.1); color: #b45309; }
.alert-danger  { background: rgba(239, 68, 68, 0.1); color: #b91c1c; }
.alert-info    { background: rgba(6, 182, 212, 0.1); color: #0e7490; }

/* ============== MODAL ============== */
.modal-content {
    border: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-color); }

/* ============== RESPONSIVE ============== */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); box-shadow: var(--shadow-xl); }
    .main-content { margin-left: 0; }
    .topbar-search { display: none; }
    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-banner { display: none; }
}

@media (max-width: 576px) {
    .content-wrapper { padding: 1rem; }
    .topbar { padding: 0 1rem; }
    .topbar-user-name { display: none; }
}

/* ============== SCROLLBAR ============== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--body-bg); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============== ANIMATIONS ============== */
.fade-in { animation: fadeIn 0.35s ease-out; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.spinner-grow-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}

/* DataTables custom */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.4rem 0.85rem;
    margin: 0 0.4rem;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 1rem 1.5rem 0;
}
