.glass-card--expanded .table-responsive {
    margin-top: 1rem;
}
:root {
    --brand-primary: #2f6cf3;
    --brand-secondary: rgba(255, 255, 255, 0.45);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 35%, #0b1120 100%);
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #111827;
}

.bg-gradient-primary {
    background: linear-gradient(120deg, #1d4ed8, #3b82f6);
}

.glass-card {
    border-radius: 18px;
    background: var(--glass-bg);
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.35);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
}

.glass-card--expanded {
    min-height: 75vh;
    padding: 2.5rem !important;
}

body.admin-dashboard main.container {
    max-width: 100%;
    padding-left: clamp(1rem, 4vw, 3rem);
    padding-right: clamp(1rem, 4vw, 3rem);
}

body.admin-dashboard .glass-card--expanded {
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
}

.table > :not(caption) > * > * {
    background-color: transparent;
}

.table tbody tr {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.btn-primary {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    border-radius: 999px;
}

.btn-outline-primary {
    border-radius: 999px;
}

.alert {
    border-radius: 14px;
}

.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-block: 1.1rem;
}

.form-control, .form-select {
    border-radius: 12px;
    border-color: rgba(15, 23, 42, 0.1);
    background-color: rgba(255, 255, 255, 0.8);
}

.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.list-group-item:last-child {
    border-bottom: none;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.nav-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
}

.table-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.15);
    flex: 0 0 32px;
}

.table-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    color: #1f2937;
    font-weight: 600;
    text-transform: uppercase;
    flex: 0 0 32px;
}

.table-cell-nowrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.dashboard-metrics {
    --dashboard-metric-bg: rgba(15, 23, 42, 0.08);
}

.dashboard-metric-card {
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 64, 175, 0.6));
    color: #f8fafc;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 120px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-metric-card-link:hover .dashboard-metric-card,
.dashboard-metric-card-link:focus-visible .dashboard-metric-card {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.28);
}

.dashboard-metric-card--active {
    border-color: rgba(96, 165, 250, 0.75);
    box-shadow: 0 24px 45px rgba(37, 99, 235, 0.35);
}

.dashboard-metric-card__label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

.dashboard-metric-card__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.dashboard-metric-card__hint {
    font-size: 0.8rem;
    opacity: 0.8;
}

.glass-card--compact {
    padding: 1.25rem !important;
}

.glass-card--compact .list-unstyled {
    margin-bottom: 0;
}

.glass-card--mini {
    padding: 1rem !important;
}

.glass-card--mini h2 {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.glass-card--mini .list-unstyled {
    font-size: 0.9rem;
}

.avatar-select {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-select select {
    flex: 1 1 auto;
}

.avatar-select__image {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.06);
    color: #1f2937;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-transform: uppercase;
}

.avatar-select__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-login {
    background-color: #041c54;
    background-image: url("../img/login-background.svg"), radial-gradient(circle at 18% 14%, #4db4ff 0%, #134fd1 40%, #041c54 100%);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    color: #f4f9ff;
    min-height: 100vh;
}

.page-login .navbar {
    display: none;
}

.page-login main.container {
    max-width: none;
    width: 100%;
    padding: 0;
    min-height: 100vh;
}

.login-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem;
    overflow: hidden;
}

.login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(12, 44, 120, 0.25), rgba(3, 17, 52, 0.35));
    mix-blend-mode: screen;
    pointer-events: none;
}

.login-card {
    position: relative;
    width: min(440px, 92vw);
    padding: 3rem 3rem 2.75rem;
    border-radius: 30px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(24px);
    box-shadow: 0 30px 80px rgba(7, 27, 78, 0.45);
    color: #0d1b3d;
    z-index: 1;
}

.login-card--glass::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

.login-card__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: rgba(13, 27, 61, 0.92);
}

.login-card__logo {
    width: min(420px, 88%);
    max-height: 160px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.52);
    padding: 1.5rem 2rem;
    border-radius: 32px;
    box-shadow: 0 30px 58px rgba(12, 52, 138, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-card__brand-text {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    letter-spacing: -0.01em;
    gap: 0.3rem;
}

.login-card__brand-name {
    font-size: 1.6rem;
}

.login-card__brand-subtitle {
    font-size: 0.95rem;
    color: rgba(13, 27, 61, 0.7);
    letter-spacing: 0.02em;
}

.login-card__helper {
    margin: 1rem 0 2.5rem;
    font-size: 1rem;
    text-align: center;
    color: rgba(13, 27, 61, 0.58);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.login-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.login-form label {
    font-weight: 600;
    color: rgba(13, 27, 61, 0.75);
}

.login-form input[type="text"],
.login-form input[type="password"] {
    border-radius: 14px;
    border: 1px solid rgba(13, 27, 61, 0.16);
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: #0d1b3d;
    width: 100%;
}

.login-form__account {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(13, 27, 61, 0.72);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.login-form__account strong {
    font-weight: 700;
    color: rgba(13, 27, 61, 0.85);
}

.login-form__account code {
    background: rgba(15, 45, 94, 0.08);
    border-radius: 8px;
    padding: 0.1rem 0.45rem;
    font-weight: 600;
    color: rgba(13, 27, 61, 0.82);
}

.login-role {
    border: none;
    margin: 0;
    padding: 0;
}

.login-role legend {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-role__choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.login-role__choice {
    position: relative;
}

.login-role__choices input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    inset: 0;
    width: 100%;
    height: 100%;
}

.login-role__choice label {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
    color: rgba(13, 27, 61, 0.7);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    cursor: pointer;
    width: 100%;
}

.login-role__choices input[type="radio"]:focus + label {
    outline: 2px solid rgba(26, 110, 255, 0.35);
    outline-offset: 3px;
}

.login-role__choices input[type="radio"]:checked + label {
    background: linear-gradient(150deg, rgba(26, 110, 255, 0.85), rgba(17, 68, 202, 0.9));
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(26, 110, 255, 0.35);
}

.report-summary-card {
    border-radius: 16px;
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(8px);
    min-height: 120px;
}

.report-summary-card__label {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.7;
}

.report-summary-card__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.notification-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.25);
}

.notification-dot__count {
    background: #dc3545;
    color: #fff;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav-link-with-dot {
    position: relative;
    padding-right: 2.5rem !important;
}

.notification-dot--nav {
    position: absolute;
    top: 0.35rem;
    right: 0.75rem;
    width: 1.6rem;
    height: 1.6rem;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.notification-dot--nav .notification-dot__count {
    font-size: 0.65rem;
    padding: 0 0.45rem;
}

.table-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.table-sort-link:hover {
    color: #0d6efd;
    text-decoration: none;
}

.table-sort-link--active {
    color: #0d6efd;
}

.login-card__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    background: linear-gradient(180deg, #1e86ff, #0b66d6);
    color: #ffffff;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    cursor: pointer;
    width: 100%;
}

.login-card__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(15, 90, 173, 0.35);
}

.login-card__submit:active {
    transform: translateY(1px);
    background: linear-gradient(180deg, #155bcc, #044fb0);
}

.login-card__submit:focus-visible {
    outline: 2px solid rgba(30, 139, 255, 0.8);
    outline-offset: 2px;
}

.login-card__footer {
    margin-top: 2rem;
    font-size: 0.875rem;
    text-align: center;
    color: rgba(13, 27, 61, 0.65);
}

.page-login .alert {
    margin-top: 0;
    border-radius: 16px;
    border: 1px solid rgba(199, 67, 67, 0.4);
    background: rgba(199, 67, 67, 0.12);
    color: #982b2b;
    text-align: center;
}

@media (max-width: 640px) {
    .login-card {
        padding: 2.5rem 1.75rem 2.25rem;
    }

    .login-card__logo {
        padding: 1.2rem 1.4rem;
    }

    .login-role__choices {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
