/* AspireHRMS — Design tokens & global theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --hrms-primary: #6366f1;
    --hrms-primary-dark: #4f46e5;
    --hrms-accent: #06b6d4;
    --hrms-accent-soft: #22d3ee;
    --hrms-success: #10b981;
    --hrms-warning: #f59e0b;
    --hrms-danger: #ef4444;
    --hrms-bg: #f0f2f8;
    --hrms-bg-muted: #f8fafc;
    --hrms-surface: #ffffff;
    --hrms-border: #e2e8f0;
    --hrms-text: #1e293b;
    --hrms-text-muted: #64748b;
    --hrms-radius: 12px;
    --hrms-radius-sm: 8px;
    --hrms-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
    --hrms-shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.08);
}

html, body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    background: var(--hrms-bg);
    color: var(--hrms-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--hrms-text);
}

h1:focus { outline: none; }

a, .btn-link {
    color: var(--hrms-primary);
    text-decoration: none;
}

a:hover { color: var(--hrms-primary-dark); }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--hrms-primary) 0%, var(--hrms-primary-dark) 100%);
    border: none;
    border-radius: var(--hrms-radius-sm);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--hrms-primary-dark) 0%, #4338ca 100%);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--hrms-bg-muted);
    border: 1px solid var(--hrms-border);
    color: var(--hrms-text);
    border-radius: var(--hrms-radius-sm);
    font-weight: 600;
}

.btn-success {
    border-radius: var(--hrms-radius-sm);
    font-weight: 600;
}

.btn-outline-primary {
    border-radius: var(--hrms-radius-sm);
    font-weight: 600;
    border-color: var(--hrms-primary);
    color: var(--hrms-primary);
}

.btn-outline-primary:hover {
    background: var(--hrms-primary);
    border-color: var(--hrms-primary);
}

.btn:focus, .btn:active:focus, .form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Cards */
.card {
    border: 1px solid var(--hrms-border);
    border-radius: var(--hrms-radius);
    box-shadow: var(--hrms-shadow);
    background: var(--hrms-surface);
    overflow: hidden;
}

.card-header {
    background: var(--hrms-bg-muted);
    border-bottom: 1px solid var(--hrms-border);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.25rem;
    color: var(--hrms-text);
}

.card-body {
    padding: 1.25rem;
}

/* Tables */
.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table thead th {
    background: var(--hrms-bg-muted);
    border-bottom: 2px solid var(--hrms-border);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hrms-text-muted);
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-color: var(--hrms-border);
    font-size: 0.9rem;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(248, 250, 252, 0.8);
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(99, 102, 241, 0.04);
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--hrms-radius-sm);
    border-color: var(--hrms-border);
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--hrms-primary);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--hrms-text);
    margin-bottom: 0.35rem;
}

/* Page header component */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

/* Alerts */
.alert {
    border-radius: var(--hrms-radius-sm);
    border: none;
    font-size: 0.9rem;
}

.alert-success { background: #ecfdf5; color: #047857; }
.alert-danger { background: #fef2f2; color: #b91c1c; }
.alert-warning { background: #fffbeb; color: #b45309; }
.alert-info { background: #ecfeff; color: #0e7490; }

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: var(--hrms-radius);
    box-shadow: var(--hrms-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--hrms-border);
    padding: 1rem 1.25rem;
}

.modal-footer {
    border-top: 1px solid var(--hrms-border);
    background: var(--hrms-bg-muted);
}

.modal.show.d-block {
    backdrop-filter: blur(2px);
}

/* Nav tabs */
.nav-tabs {
    border-bottom: 2px solid var(--hrms-border);
    gap: 0.25rem;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: var(--hrms-radius-sm) var(--hrms-radius-sm) 0 0;
    color: var(--hrms-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
}

.nav-tabs .nav-link:hover {
    color: var(--hrms-primary);
    background: rgba(99, 102, 241, 0.06);
}

.nav-tabs .nav-link.active {
    color: var(--hrms-primary);
    background: var(--hrms-surface);
    border-bottom: 2px solid var(--hrms-primary);
    margin-bottom: -2px;
}

/* Celebration alerts */
.celebration-alerts {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.celebration-alert {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 1.35rem 1.5rem 1.25rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.celebration-alert:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.celebration-alert-decor {
    position: absolute;
    top: -40px;
    right: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

.celebration-alert-decor::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -80px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.celebration-alert-birthday {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 35%, #fda4af 100%);
    color: #831843;
}

.celebration-alert-work {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 40%, #a5b4fc 100%);
    color: #312e81;
}

.celebration-alert-personal {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 40%, #fdba74 100%);
    color: #92400e;
}

.celebration-alert-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.celebration-alert-title-block {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.celebration-alert-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(4px);
}

.celebration-alert-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
    margin-bottom: 0.15rem;
}

.celebration-alert-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.25;
    color: inherit;
}

.celebration-alert-summary {
    position: relative;
    z-index: 1;
    font-size: 0.88rem;
    margin: 0 0 1rem;
    opacity: 0.88;
    line-height: 1.45;
    max-width: 90%;
}

.celebration-alert-dismiss {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.65);
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.15s, transform 0.15s;
}

.celebration-alert-dismiss:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.03);
}

.celebration-alert-dismiss:disabled {
    opacity: 0.6;
}

.celebration-alert-chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.celebration-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.75rem 0.45rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(6px);
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: 100%;
}

.celebration-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.celebration-chip-avatar {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.celebration-chip-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 0;
}

.celebration-chip-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.celebration-chip-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #475569;
}

.celebration-alert-birthday .celebration-chip-badge {
    background: rgba(190, 24, 93, 0.12);
    color: #9d174d;
}

.celebration-alert-work .celebration-chip-badge {
    background: rgba(67, 56, 202, 0.12);
    color: #4338ca;
}

.celebration-alert-personal .celebration-chip-badge {
    background: rgba(180, 83, 9, 0.12);
    color: #b45309;
}

@media (max-width: 768px) {
    .celebration-alert {
        padding: 1.1rem 1.15rem;
    }

    .celebration-alert-header {
        flex-direction: column;
        align-items: stretch;
    }

    .celebration-alert-dismiss {
        align-self: flex-end;
    }

    .celebration-alert-summary {
        max-width: 100%;
    }

    .celebration-chip-name {
        max-width: 120px;
    }
}

/* Dashboard KPI cards */
.dashboard-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
    border-radius: var(--hrms-radius);
    padding: 1.75rem 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.35);
}

.dashboard-hero h1 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.dashboard-hero p {
    opacity: 0.9;
    margin: 0;
    font-size: 0.95rem;
}

.dashboard-grid .stat-card {
    background: var(--hrms-surface);
    border-radius: var(--hrms-radius);
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--hrms-border);
    box-shadow: var(--hrms-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.dashboard-grid .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hrms-shadow-lg);
}

.dashboard-grid .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hrms-primary), var(--hrms-accent));
}

.dashboard-grid .stat-card.stat-employees::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.dashboard-grid .stat-card.stat-active::before { background: linear-gradient(90deg, #10b981, #34d399); }
.dashboard-grid .stat-card.stat-leave::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.dashboard-grid .stat-card.stat-attendance::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.dashboard-grid .stat-card.stat-expense::before { background: linear-gradient(90deg, #ec4899, #f472b6); }
.dashboard-grid .stat-card.stat-assets::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.dashboard-grid .stat-card.stat-onboarding::before { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }
.dashboard-grid .stat-card.stat-exit::before { background: linear-gradient(90deg, #64748b, #94a3b8); }

.dashboard-grid .stat-card span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hrms-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.dashboard-grid .stat-card strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hrms-text);
    line-height: 1.1;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.quick-action-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--hrms-surface);
    border: 1px solid var(--hrms-border);
    border-radius: var(--hrms-radius);
    color: var(--hrms-text);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.quick-action-link:hover {
    border-color: var(--hrms-primary);
    box-shadow: var(--hrms-shadow);
    color: var(--hrms-primary);
}

/* Login */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-hero {
    background: linear-gradient(160deg, #1e1b4b 0%, #4f46e5 40%, #06b6d4 100%);
    color: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-hero h1 {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.login-hero p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 400px;
    line-height: 1.6;
}

.login-hero-features {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

.login-feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    flex-shrink: 0;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--hrms-bg);
}

.login-card {
    background: var(--hrms-surface);
    border-radius: var(--hrms-radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--hrms-shadow-lg);
    border: 1px solid var(--hrms-border);
}

.login-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.login-card .brand-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.login-card .brand-mini span {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content panels wrap tables */
.content-panel {
    background: var(--hrms-surface);
    border-radius: var(--hrms-radius);
    border: 1px solid var(--hrms-border);
    box-shadow: var(--hrms-shadow);
    padding: 1.25rem;
}

/* List group notifications */
.list-group-item {
    border-color: var(--hrms-border);
}

.list-group-item-primary {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Validation */
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--hrms-success); }
.invalid { outline: 1px solid var(--hrms-danger); }
.validation-message { color: var(--hrms-danger); font-size: 0.85rem; }

/* Blazor */
#blazor-error-ui {
    color-scheme: light only;
    background: #fef3c7;
    bottom: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcGF0aD48L2RlZnM+PGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIzNSAtNTEpIj48cGF0aCBkPSJNMjYzLjUwNiA1MUMyNjQuNzE3IDUxIDI2NS44MTMgNTEuNDgzNyAyNjYuNjA2IDUyLjI2NThMMjY3LjA1MiA1Mi43OTg3IDI2Ny41MzkgNTMuNjI4MyAyOTAuMTg1IDkyLjE4MzEgMjkwLjU0NSA5Mi43OTUgMjkwLjY1NiA5Mi45OTZDMjkwLjg3NyA5My41MTMgMjkxIDk0LjA4MTUgMjkxIDk0LjY3ODIgMjkxIDk3LjA2NTEgMjg5LjAzOCA5OSAyODYuNjE3IDk5TDI0MC4zODMgOTlDMjM3Ljk2MyA5OSAyMzYgOTcuMDY1MSAyMzYgOTQuNjc4MiAyMzYgOTQuMzc5OSAyMzYuMDMxIDk0LjA4ODYgMjM2LjA4OSA5My44MDcyTDIzNi4zMzggOTMuMDE2MiAyMzYuODU4IDkyLjEzMTQgMjU5LjQ3MyA1My42Mjk0IDI1OS45NjEgNTIuNzk4NSAyNjAuNDA3IDUyLjI2NThDMjYxLjIgNTEuNDgzNyAyNjIuMjk2IDUxIDI2My41MDYgNTFaTTI2My41ODYgNjYuMDE4M0MyNjAuNzM3IDY2LjAxODMgMjU5LjMxMyA2Ny4xMjQ1IDI1OS4zMTMgNjkuMzM3IDI1OS4zMTMgNjkuNjEwMiAyNTkuMzMyIDY5Ljg2MDggMjU5LjM3MSA3MC4wODg3TDI2MS43OTUgODQuMDE2MSAyNjUuMzggODQuMDE2MSAyNjcuODIxIDY5Ljc0NzVDMjY3Ljg2IDY5LjczMDkgMjY3Ljg3OSA2OS41ODc3IDI2Ny44NzkgNjkuMzE3OSAyNjcuODc5IDY3LjExODIgMjY2LjQ0OCA2Ni4wMTgzIDI2My41ODYgNjYuMDE4M1pNMjYzLjU3NiA4Ni4wNTQ3QzI2MS4wNDkgODYuMDU0NyAyNTkuNzg2IDg3LjMwMDUgMjU5Ljc4NiA4OS43OTIxIDI1OS43ODYgOTIuMjgzNyAyNjEuMDQ5IDkzLjUyOTUgMjYzLjU3NiA5My41Mjk1QzI2Ni4xMTYgOTMuNTI5NSAyNjcuMzg3IDkyLjI4MzcgMjY3LjM4NyA4OS43OTIxIDI2Ny4zODcgODcuMzAwNSAyNjYuMTE2IDg2LjA1NDcgMjYzLjU3NiA4Ni4wNTQ3WiIgZmlsbD0iI0ZGRTUwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9nPjwvc3ZnPg==) no-repeat 1rem/1.8rem, #b91c1c;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after { content: "An error has occurred."; }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--hrms-primary);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code { color: #be185d; background: #fdf2f8; padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }

/* Employee avatars (used on list, create, edit, and layout) */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hrms-primary), var(--hrms-accent));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    vertical-align: middle;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar-lg {
    width: 72px;
    height: 72px;
    font-size: 1.25rem;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.65rem;
}

@media (max-width: 992px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-hero {
        padding: 2rem;
        min-height: auto;
    }

    .login-hero h1 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .dashboard-grid .stat-card strong { font-size: 1.5rem; }
    .login-card { padding: 1.5rem; }
}

/* Notification popup */
.notification-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.notification-popup-modal {
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 1.5rem 1.6rem 1.35rem;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: popupSlideIn 0.35s ease;
}

@keyframes popupSlideIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.notification-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.notification-popup-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4338ca;
    background: rgba(99, 102, 241, 0.12);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.notification-popup-close {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: #64748b;
    padding: 0 0.25rem;
}

.notification-popup-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.65rem;
}

.notification-popup-message {
    color: #475569;
    line-height: 1.55;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.notification-popup-image-wrap {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.notification-popup-image {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}

.notification-popup-link {
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.notification-popup-actions {
    display: flex;
    justify-content: flex-end;
}

/* Notification create form */
.notification-create-card {
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

.notification-target-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--hrms-border);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    background: #fafafa;
}

.notification-create-preview {
    display: block;
    max-width: 220px;
    max-height: 140px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--hrms-border);
}
