:root {
    --interpol-blue: #004b6b;
    --interpol-blue-dark: #003a54;
    --interpol-blue-darker: #002a3d;
}

html,
body {
    height: 100%;
}

body {
    background-color: #f3f5f7;
    color: #111111;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-screen {
    position: relative;
    min-height: 100vh;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    padding: 48px 0;
    overflow: hidden;
}

.home-hero-card {
    background: rgba(255, 255, 255, 0.38) !important;
    backdrop-filter: blur(14px) saturate(125%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.home-hero-glass {
    background: transparent;
}

.particle-network-animation {
    position: absolute;
    inset: 0;
    height: 100%;
    background-color: #ffffff;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    isolation: isolate;
}

.particle-network-animation::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: none;
    opacity: 1;
    z-index: 0;
}

.particle-network-animation canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.particle-network-animation .glow {
    position: absolute;
    top: 50%;
    left: 50%;
    background-image: radial-gradient(circle closest-side, rgba(255, 255, 255, 0.025), transparent);
    z-index: 1;
}

.particle-network-animation .glow-1 {
    width: 150vw;
    height: 150vh;
    margin-top: -75vh;
    margin-left: -75vw;
    animation: glow-1-move 25s linear infinite both;
}

@keyframes glow-1-move {
    from { transform: translate(-100%, 100%); }
    to { transform: translate(100%, -100%); }
}

.particle-network-animation .glow-2 {
    width: 100vw;
    height: 100vh;
    margin-top: -50vh;
    margin-left: -50vw;
    animation: glow-2-move 25s linear 8.333s infinite both;
}

@keyframes glow-2-move {
    from { transform: translate(-100%, 0%); }
    to { transform: translate(100%, 100%); }
}

.particle-network-animation .glow-3 {
    width: 120vw;
    height: 120vh;
    margin-top: -60vh;
    margin-left: -60vw;
    animation: glow-3-move 25s linear 16.666s infinite both;
}

@keyframes glow-3-move {
    from { transform: translate(100%, 100%); }
    to { transform: translate(0%, -100%); }
}

.home-foreground {
    position: relative;
    z-index: 1;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="dark"] body {
    background-color: #000000;
    color: #f3f4f6;
}

html[data-theme="dark"] a {
    color: #7dd3fc;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-header.bg-white {
    background-color: #000000 !important;
    border-bottom-color: #1f2937 !important;
    box-shadow: none;
}

html[data-theme="dark"] .site-header-brand {
    color: #f3f4f6;
}

html[data-theme="dark"] .site-header-nav .nav-link {
    color: #f3f4f6;
}

html[data-theme="dark"] .site-header-nav .nav-link:hover {
    color: #7dd3fc;
    border-bottom-color: rgba(125, 211, 252, 0.35);
}

html[data-theme="dark"] .site-header-nav .nav-link.active {
    color: #7dd3fc;
    border-bottom-color: #7dd3fc;
}

html[data-theme="dark"] .btn-outline-secondary {
    color: #f3f4f6;
    border-color: #374151;
}

html[data-theme="dark"] .btn-outline-secondary:hover,
html[data-theme="dark"] .btn-outline-secondary:focus {
    background-color: #0b0b0b;
    border-color: #4b5563;
    color: #ffffff;
}

html[data-theme="dark"] .badge.bg-light {
    background-color: #0b0b0b !important;
    color: #f3f4f6 !important;
    border-color: #374151 !important;
}

html[data-theme="dark"] .card {
    background-color: #0b0b0b;
    color: #f3f4f6;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .table {
    color: #f3f4f6;
}

html[data-theme="dark"] .table th {
    color: rgba(243, 244, 246, 0.75);
}

html[data-theme="dark"] .table td,
html[data-theme="dark"] .table th {
    border-color: #1f2937;
}

html[data-theme="dark"] .text-muted {
    color: rgba(243, 244, 246, 0.7) !important;
}

html[data-theme="dark"] .modal-content {
    background-color: #0b0b0b;
    color: #f3f4f6;
    border-color: #1f2937;
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
    border-color: #1f2937;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background-color: #000000;
    color: #f3f4f6;
    border-color: #374151;
}

html[data-theme="dark"] .form-control::placeholder {
    color: rgba(229, 231, 235, 0.55);
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
    border-color: #7dd3fc;
    box-shadow: 0 0 0 0.25rem rgba(125, 211, 252, 0.18);
}

html[data-theme="dark"] .bg-white {
    background-color: #000000 !important;
}

html[data-theme="dark"] .bg-light {
    background-color: #0b0b0b !important;
}

html[data-theme="dark"] .text-dark {
    color: #f3f4f6 !important;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-secondary-subtle {
    border-color: #1f2937 !important;
}

.site-main {
    flex: 1 0 auto;
}

.interpol-footer {
    margin-top: auto;
}

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e6ebef;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.theme-toggle-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.theme-toggle-btn svg {
    display: block;
}

.site-header .container {
    min-height: 86px;
}

.site-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--interpol-blue);
    text-decoration: none;
}

.site-header-brand-text {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 14px;
    text-transform: uppercase;
}

.site-header-toggler {
    border: 0;
}

.site-header-toggler:focus {
    box-shadow: none;
}

.site-header-nav .nav-link {
    color: #0b2f44;
    font-weight: 600;
    font-size: 12px;
    padding: 8px 10px;
    border-bottom: 2px solid transparent;
}

.site-header-nav .nav-link:hover {
    color: var(--interpol-blue);
    border-bottom-color: rgba(0, 75, 107, 0.3);
}

.site-header-nav .nav-link.active {
    color: var(--interpol-blue);
    border-bottom-color: var(--interpol-blue);
}

.site-header-nav .site-header-cta {
    color: #d11f2a;
}

.site-header-nav .site-header-cta:hover {
    color: #b8151f;
    border-bottom-color: rgba(209, 31, 42, 0.35);
}

.site-header-tools {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.site-header-lang {
    background: transparent;
    border: 0;
    color: #0b2f44;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 6px;
}

.site-header-search {
    color: #0b2f44;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    padding: 8px 6px;
}

.site-header-search:hover {
    color: var(--interpol-blue);
}

.site-logo {
    display: block;
    width: auto;
    object-fit: cover;
}

.site-logo--header {
    height: 56px;
    width: 56px;
    border-radius: 0;
    border: 1px solid #e6ebef;
}

.site-logo--footer {
    height: 112px;
    width: 112px;
    border-radius: 0;
    border: 0;
    background-color: transparent;
    filter: brightness(0) invert(1);
}

.btn-primary {
    background-color: var(--interpol-blue) !important;
    border-color: var(--interpol-blue) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--interpol-blue-dark) !important;
    border-color: var(--interpol-blue-dark) !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--interpol-blue-dark) !important;
    border-color: var(--interpol-blue-dark) !important;
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-outline-primary {
    color: var(--interpol-blue) !important;
    border-color: var(--interpol-blue) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--interpol-blue) !important;
    border-color: var(--interpol-blue) !important;
    color: #ffffff !important;
}

.text-primary {
    color: var(--interpol-blue) !important;
}

.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.badge {
    font-weight: 500;
}

.nav-tabs .nav-link {
    border: none;
    color: #495057;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
    border-bottom: 2px solid var(--interpol-blue);
    color: var(--interpol-blue);
    font-weight: 600;
}

.table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.table td {
    font-size: 0.95rem;
}

@media (min-width: 992px) {
    .dashboard-sidebar {
        position: sticky;
        top: 18px;
        align-self: start;
    }
}

.dashboard-filters-card .card-body {
    padding: 20px 20px;
}

.dashboard-filter-reset {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0, 75, 107, 0.25);
    background: rgba(0, 75, 107, 0.07);
    color: rgba(11, 47, 68, 0.95);
    display: grid;
    place-items: center;
    padding: 0;
}

.dashboard-filter-reset-icon {
    font-size: 18px;
    line-height: 1;
}

.dashboard-filter-reset:hover {
    color: rgba(11, 47, 68, 1);
    border-color: rgba(0, 75, 107, 0.38);
    background: rgba(0, 75, 107, 0.11);
}

.dashboard-filter-reset:focus {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(0, 75, 107, 0.18);
}

.dashboard-summary-card .card-body {
    padding: 20px 20px;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.dashboard-kpi-tile {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    padding: 14px 14px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.dashboard-kpi-tile--danger {
    border-color: rgba(220, 53, 69, 0.22);
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.05), rgba(255, 255, 255, 1));
}

.dashboard-kpi-label {
    font-size: 0.85rem;
    color: #6c757d;
    letter-spacing: 0.02em;
}

.dashboard-kpi-value {
    font-size: 1.8rem;
    line-height: 1.15;
    font-weight: 650;
    color: #111111;
    margin-top: 6px;
}

.dashboard-kpi-value--danger {
    color: #dc3545;
}

.dashboard-kpi-meta {
    font-size: 0.8rem;
    color: rgba(108, 117, 125, 0.92);
    margin-top: 4px;
}

.dashboard-summary-hint {
    background: rgba(0, 75, 107, 0.05);
    border: 1px solid rgba(0, 75, 107, 0.12);
    border-radius: 12px;
    padding: 12px 12px;
    color: rgba(11, 47, 68, 0.92);
    font-size: 0.9rem;
    line-height: 1.45;
}

.dashboard-summary-hint:empty {
    display: none;
}

.interpol-top .card-body {
    padding: 20px 22px;
}

.interpol-top-grid {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 20px;
    align-items: start;
}

.interpol-top-badge-img {
    width: 100%;
    height: auto;
    display: block;
}

.interpol-top-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 12px 0;
}

.interpol-top-paragraph {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #1d1d1d;
    margin: 0 0 10px 0;
}

.interpol-disclaimer .card-body {
    padding: 22px;
}

.interpol-disclaimer-title {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    margin: 6px 0 14px 0;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.85);
    display: inline-block;
}

@media (max-width: 768px) {
    .interpol-top-grid {
        grid-template-columns: 84px 1fr;
        gap: 14px;
    }
}

.card-img-top-wrapper {
    height: 300px;
    overflow: hidden;
    position: relative;
    background-color: #e9ecef;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.photo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 56px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}

.student-card {
    transition: transform 0.2s;
    border: none;
    border-radius: 12px;
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.interpol-footer {
    background-color: var(--interpol-blue);
    color: rgba(255, 255, 255, 0.92);
    margin-top: auto;
}

.interpol-footer a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.interpol-footer a:hover {
    text-decoration: underline;
}

.interpol-footer-top {
    padding: 52px 0;
}

.interpol-footer-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}

.interpol-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding-top: 6px;
}

.interpol-footer-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    display: grid;
    place-items: center;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.interpol-footer-brand-name {
    font-size: 1.1rem;
    letter-spacing: 0.18em;
    font-weight: 500;
}

.interpol-footer-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 44px;
}

.interpol-footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 14px 0;
}

.interpol-footer-link {
    display: block;
    padding: 6px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
}

.interpol-footer-social {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    gap: 14px;
    padding-top: 4px;
}

.interpol-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: grid;
    place-items: center;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
}

.interpol-footer-bottom {
    background-color: var(--interpol-blue-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 0;
}

.interpol-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.interpol-footer-bottom-links a {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-right: 22px;
}

.interpol-footer-copy {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 992px) {
    .interpol-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .interpol-footer-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .interpol-footer-brand {
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .interpol-footer-cols {
        grid-template-columns: 1fr;
    }

    .interpol-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.site-disclaimer-modal .modal-content {
    border-radius: 14px;
    border: none;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.site-disclaimer-modal .modal-header {
    border-bottom: none;
    padding: 18px 20px 0 20px;
}

.site-disclaimer-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111111;
}

.site-disclaimer-modal .modal-body {
    padding: 12px 20px 16px 20px;
    color: #1d1d1d;
    line-height: 1.6;
}

.site-disclaimer-modal .modal-footer {
    border-top: none;
    padding: 0 20px 18px 20px;
}

.site-disclaimer-modal .btn {
    border-radius: 10px;
    padding: 10px 14px;
}

.site-floating-square {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--interpol-blue);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 75, 107, 0.35);
    z-index: 2147483647;
    pointer-events: auto;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.site-floating-square:hover,
.site-floating-square:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 75, 107, 0.45);
    background: var(--interpol-blue-dark);
}

html[data-theme="dark"] .site-floating-square {
    background: #0b0b0b;
    color: #f3f4f6;
    border-color: #1f2937;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .site-floating-square:hover,
html[data-theme="dark"] .site-floating-square:focus {
    background: #111111;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
}
