/* =====================================================
   Sistema Contable - Residencia Geriátrica Los Ángeles
   Estilos Custom Premium - Mobile First
   ===================================================== */

/* === Variables CSS === */
:root {
    --primary: #1a237e;
    --primary-light: #3949ab;
    --primary-dark: #0d1642;
    --accent: #42a5f5;
    --accent-light: #80d6ff;
    --success: #2e7d32;
    --success-light: #4caf50;
    --warning: #f57f17;
    --warning-light: #fbc02d;
    --danger: #c62828;
    --danger-light: #ef5350;
    --info: #0288d1;
    --sidebar-bg: linear-gradient(180deg, #0d1642 0%, #1a237e 50%, #283593 100%);
    --sidebar-width: 260px;
    --sidebar-collapsed: 0px;
    --header-height: 60px;
    --body-bg: #f0f2f5;
    --card-bg: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #6c757d;
    --text-light: #adb5bd;
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--body-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* === Login Page === */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d1642 0%, #1a237e 40%, #283593 70%, #42a5f5 100%);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(66,165,245,0.1) 0%, transparent 50%);
    animation: loginPulse 15s ease-in-out infinite;
}

@keyframes loginPulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 5%) scale(1.1); }
}

.login-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    animation: loginSlideUp 0.6s ease-out;
}

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

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(26,35,126,0.3);
}

.login-logo .icon-circle i {
    font-size: 2rem;
    color: white;
}

.login-logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-card .form-control {
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    font-size: 0.95rem;
}

.login-card .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(66,165,245,0.15);
}

.login-card .btn-login {
    width: 100%;
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.login-card .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26,35,126,0.4);
}

.login-card .btn-login:active {
    transform: translateY(0);
}

/* === Sidebar === */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1050;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

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

.sidebar-header .logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-header .logo-icon i {
    font-size: 1.2rem;
    color: white;
}

.sidebar-header .logo-text {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

.sidebar-header .logo-text small {
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.7rem;
    display: block;
}

.sidebar-nav {
    padding: 0.75rem 0;
}

.sidebar-nav .nav-section {
    padding: 0.5rem 1.25rem 0.25rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
    margin-top: 0.5rem;
}

.sidebar-nav .nav-item {
    padding: 0 0.75rem;
    margin-bottom: 2px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.875rem;
    position: relative;
}

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

.sidebar-nav .nav-link.active {
    background: rgba(66,165,245,0.2);
    color: white;
    font-weight: 600;
}

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav .nav-link .badge {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 0.25em 0.55em;
    border-radius: 50px;
    font-weight: 600;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.sidebar-user {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: auto;
    position: sticky;
    bottom: 0;
    background: rgba(13,22,66,0.95);
    backdrop-filter: blur(10px);
}

.sidebar-user .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sidebar-user .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-user .user-name {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.sidebar-user .user-role {
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-user .btn-logout {
    width: 100%;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(198,40,40,0.2);
    border: 1px solid rgba(198,40,40,0.3);
    color: #ef9a9a;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.sidebar-user .btn-logout:hover {
    background: rgba(198,40,40,0.35);
    color: #ffcdd2;
}

/* === Main Content === */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Top Header === */
.top-header {
    background: var(--card-bg);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1040;
    height: var(--header-height);
}

.top-header .page-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-header .page-title i {
    color: var(--primary);
}

.btn-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

/* === Sidebar Overlay === */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1049;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* === Page Content === */
.page-content {
    padding: 1.5rem;
}

/* === Cards === */
.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body {
    padding: 1.25rem;
}

/* === Stat Cards (Dashboard) === */
.stat-card {
    border: none;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

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

.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 0.25rem;
    font-weight: 500;
}

.stat-card.bg-gradient-primary { background: linear-gradient(135deg, #1a237e, #3949ab); }
.stat-card.bg-gradient-success { background: linear-gradient(135deg, #1b5e20, #43a047); }
.stat-card.bg-gradient-warning { background: linear-gradient(135deg, #e65100, #fb8c00); }
.stat-card.bg-gradient-danger { background: linear-gradient(135deg, #b71c1c, #e53935); }
.stat-card.bg-gradient-info { background: linear-gradient(135deg, #01579b, #039be5); }
.stat-card.bg-gradient-purple { background: linear-gradient(135deg, #4a148c, #8e24aa); }

/* === Tables === */
.table-responsive {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.table thead th {
    background: var(--primary-dark);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    border: none;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(66,165,245,0.04);
}

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

/* === Badges === */
.badge-estado {
    padding: 0.35em 0.75em;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-pendiente {
    background: rgba(251,140,0,0.12);
    color: #e65100;
}

.badge-confirmado, .badge-aprobado, .badge-activo {
    background: rgba(46,125,50,0.12);
    color: #2e7d32;
}

.badge-rechazado, .badge-inactivo {
    background: rgba(198,40,40,0.12);
    color: #c62828;
}

.badge-eliminacion {
    background: rgba(198,40,40,0.15);
    color: #b71c1c;
    border: 1px dashed rgba(198,40,40,0.3);
}

.badge-revision {
    background: rgba(2,136,209,0.12);
    color: #01579b;
}

.badge-mora {
    background: rgba(198,40,40,0.1);
    color: #c62828;
    font-weight: 700;
}

.badge-al-dia {
    background: rgba(46,125,50,0.1);
    color: #2e7d32;
    font-weight: 700;
}

/* Estado de Pago Parcial (naranja con alta especificidad y legibilidad) */
span.badge-parcial, .badge.badge-parcial, .badge-estado.badge-parcial {
    background-color: rgba(251,140,0,0.12) !important;
    color: #e65100 !important;
    font-weight: 700 !important;
}

/* Asegurar legibilidad del texto oscuro si se usa la clase bg-warning de Bootstrap */
.badge.bg-warning, .badge-estado.bg-warning {
    color: #212529 !important;
}



/* === Buttons === */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 4px 12px rgba(26,35,126,0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), var(--success-light));
    border: none;
}

.btn-success:hover {
    box-shadow: 0 4px 12px rgba(46,125,50,0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-light));
    border: none;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
}

.btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
}

/* === Forms === */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(66,165,245,0.12);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.input-group-text {
    background: var(--body-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* === Alerts === */
.alert {
    border-radius: var(--radius-sm);
    border: none;
    padding: 0.85rem 1.15rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: alertSlideIn 0.3s ease-out;
}

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

.alert-success {
    background: rgba(46,125,50,0.1);
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.alert-danger {
    background: rgba(198,40,40,0.1);
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert-warning {
    background: rgba(245,127,23,0.1);
    color: #e65100;
    border-left: 4px solid #f57f17;
}

.alert-info {
    background: rgba(2,136,209,0.1);
    color: #01579b;
    border-left: 4px solid #0288d1;
}

/* === Modals === */
.modal-content {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

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

.modal-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
}

/* === Account Tree === */
.account-tree {
    list-style: none;
    padding-left: 0;
}

.account-tree .tree-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.account-tree .tree-parent {
    background: var(--body-bg);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.account-tree .tree-parent:hover {
    background: #e3e8f0;
}

.account-tree .tree-children {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-tree .tree-child {
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    transition: var(--transition);
}

.account-tree .tree-child:hover {
    background: rgba(66,165,245,0.04);
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* === Filter Bar === */
.filter-bar {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

/* === Floating Action Button (Mobile) === */
.fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    font-size: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26,35,126,0.4);
    z-index: 1030;
    transition: var(--transition);
    text-decoration: none;
}

.fab:hover {
    transform: scale(1.1);
    color: white;
}

/* === Print Styles === */
@media print {
    .sidebar, .top-header, .btn, .fab, .filter-bar,
    .sidebar-overlay, .no-print {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .page-content {
        padding: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .stat-card {
        color: #000 !important;
        background: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .table thead th {
        background: #333 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        font-size: 12px;
    }

    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #333;
    }

    .print-header h2 {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .print-header p {
        font-size: 0.85rem;
        color: #666;
    }
}

.print-header {
    display: none;
}

/* === Loading Spinner === */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.spinner-custom {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Responsive === */

/* Tablets */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .btn-sidebar-toggle {
        display: block;
    }

    .fab {
        display: flex;
    }

    .page-content {
        padding: 1rem;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .page-content {
        padding: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-value {
        font-size: 1.4rem;
    }

    .card-body {
        padding: 0.875rem;
    }

    .card-header {
        padding: 0.75rem 0.875rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .table {
        font-size: 0.8rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.5rem 0.65rem;
    }

    .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .top-header {
        padding: 0.5rem 1rem;
    }

    .top-header .page-title {
        font-size: 0.95rem;
    }

    .filter-bar {
        padding: 0.75rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .login-card {
        padding: 1.75rem 1.25rem;
    }

    h1.page-title-main {
        font-size: 1.1rem;
    }
}

/* === Utility Classes === */
.text-muted-custom {
    color: var(--text-secondary) !important;
}

.fw-semibold {
    font-weight: 600;
}

.bg-light-custom {
    background: var(--body-bg);
}

.border-bottom-custom {
    border-bottom: 1px solid var(--border-color);
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

.cursor-pointer {
    cursor: pointer;
}

/* === Install Page === */
.install-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d1642 0%, #1a237e 40%, #283593 70%, #42a5f5 100%);
    padding: 1rem;
}

.install-card {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 550px;
    box-shadow: var(--shadow-lg);
    animation: loginSlideUp 0.6s ease-out;
}

.install-steps {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.install-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--border-color);
    color: var(--text-secondary);
}

.install-step.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.install-step.done {
    background: var(--success);
    color: white;
}

/* === Scrollbar Custom === */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.25);
}

/* === Dashboard Alert Cards === */
.alert-card {
    border-left: 4px solid;
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.alert-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(3px);
    color: inherit;
}

.alert-card.alert-warning-card {
    border-left-color: var(--warning);
}

.alert-card.alert-danger-card {
    border-left-color: var(--danger);
}

.alert-card.alert-info-card {
    border-left-color: var(--info);
}

.alert-card .alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.alert-card .alert-count {
    font-size: 1.3rem;
    font-weight: 800;
    margin-left: auto;
}
