html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  background:
    radial-gradient(circle at top right, rgba(13, 110, 253, 0.10), transparent 28%),
    linear-gradient(180deg, #f4f8ff 0%, #eef3f8 100%);
  color: #16324f;
}

.login-page-bg {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.22), transparent 24%),
        radial-gradient(circle at bottom right, rgba(23, 162, 184, 0.18), transparent 28%),
        linear-gradient(135deg, #0f2747 0%, #174f8c 52%, #edf5ff 52%, #f6fbff 100%);
}

.login-card {
    backdrop-filter: blur(10px);
}

.login-card-pro {
    box-shadow: 0 2rem 4rem rgba(8, 31, 61, 0.22);
}

.login-shell {
    position: relative;
}

.login-brand-panel {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 30%),
        linear-gradient(160deg, #0b2e55 0%, #0f4c8a 55%, #0a6fb5 100%);
    min-height: 100%;
}

.login-brand-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
}

.login-brand-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.login-brand-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.login-language-select {
    min-width: 120px;
    border-radius: 999px;
    border: 0;
    box-shadow: none;
}

.login-brand-main {
    margin-top: auto;
    margin-bottom: auto;
}

.login-security-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.35rem;
}

.login-brand-title {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1rem;
}

.login-brand-copy {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 30rem;
    margin-bottom: 2rem;
}

.login-brand-features {
    display: grid;
    gap: 1rem;
}

.login-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
}

.login-feature-item i {
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.login-form-panel {
    padding: 2.25rem;
}

.login-form-header {
    margin-bottom: 2rem;
}

.login-form-grid {
    display: grid;
    gap: 0.35rem;
}

.login-input-group {
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 0.75rem 1.5rem rgba(18, 53, 86, 0.06);
}

.login-input-group .input-group-text {
    background: #f0f5fb;
    border-color: #d8e3f0;
    color: #2f5f91;
}

.login-input-group .form-control {
    border-left: 0;
}

.login-helper-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.login-submit-btn {
    border-radius: 0.95rem;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    box-shadow: 0 1rem 1.75rem rgba(13, 110, 253, 0.2);
}

.login-admin-note {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fd 100%);
    border: 1px solid rgba(13, 110, 253, 0.12);
}

.dashboard-security-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 245, 255, 0.96) 100%);
    border: 1px solid rgba(13, 110, 253, 0.12);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.card {
    border-radius: 1rem;
}

.table th {
    white-space: nowrap;
}

.form-control, .form-select {
    border-radius: 0.6rem;
}

.btn {
    border-radius: 0.6rem;
}

.badge {
    font-size: 0.85rem;
}

.app-navbar {
    background: linear-gradient(135deg, #0d6efd 0%, #0a4fb3 100%);
}

.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.app-nav-list {
    gap: 0.35rem;
}

.app-nav-list .nav-link {
    border-radius: 0.85rem;
    padding: 0.72rem 1rem;
    white-space: nowrap;
    font-weight: 500;
}

.app-nav-list .nav-link.active-custom {
    font-weight: 600;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.18);
}

.app-nav-list .nav-link:hover,
.app-nav-list .nav-link:focus {
    background: rgba(255, 255, 255, 0.12);
}

.app-navbar-tools {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-language-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.language-select {
    min-width: 120px;
}

.app-user-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.app-shortcuts-bar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border-color: rgba(117, 144, 174, 0.18) !important;
}

.app-shortcuts {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.app-shortcut-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(13, 110, 253, 0.14);
    color: #17406d;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0.35rem 1rem rgba(17, 58, 100, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.app-shortcut-link:hover,
.app-shortcut-link:focus {
    color: #0d4ea6;
    border-color: rgba(13, 110, 253, 0.28);
    box-shadow: 0 0.7rem 1.5rem rgba(17, 58, 100, 0.12);
    transform: translateY(-1px);
}

.main-wrapper {
    min-height: calc(100vh - 142px);
}

.page-container {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(117, 144, 174, 0.15);
    border-radius: 1.1rem;
    padding: 1.5rem;
    box-shadow: 0 1.25rem 3rem rgba(23, 43, 77, 0.08);
    overflow-x: auto;
}

.footer-text {
    font-size: 0.95rem;
}

@media (max-width: 1399.98px) {
    .app-nav-list {
        margin-top: 1rem;
        margin-bottom: 0.75rem;
    }

    .app-nav-list .nav-link {
        white-space: normal;
    }

    .app-navbar-tools {
        width: 100%;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        justify-content: space-between;
    }
}

@media (max-width: 767.98px) {
    .container-fluid.px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .app-navbar-tools,
    .app-language-form {
        flex-direction: column;
        align-items: stretch;
    }

    .language-select,
    .app-user-badge {
        width: 100%;
    }

    .app-user-badge {
        justify-content: center;
    }

    .page-container {
        padding: 1rem;
        border-radius: 0.9rem;
    }

    .app-nav-list .nav-link {
        padding: 0.85rem 0.95rem;
    }

    .app-shortcuts {
        gap: 0.6rem;
        padding: 0.7rem 0;
    }

    .app-shortcut-link {
        padding: 0.65rem 0.9rem;
        font-size: 0.95rem;
    }

    .table-responsive,
    .page-container table {
        font-size: 0.95rem;
    }

    .login-brand-content,
    .login-form-panel {
        padding: 1.35rem;
    }

    .login-brand-top {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 2rem;
    }

    .login-language-select {
        width: 100%;
    }

    .login-brand-title {
        font-size: 1.75rem;
    }

    .login-helper-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.staff-scan-panel {
    padding: 1.25rem;
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.scan-video-shell {
    position: relative;
    min-height: 340px;
    border-radius: 1rem;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(13, 110, 253, 0.10), rgba(15, 39, 71, 0.88));
}

.scan-video {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

.scan-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scan-frame {
    width: min(78%, 260px);
    height: min(78%, 260px);
    border: 4px solid rgba(255, 255, 255, 0.92);
    border-radius: 1.25rem;
    box-shadow: 0 0 0 999px rgba(8, 24, 46, 0.26);
    position: relative;
}

.scan-frame::before,
.scan-frame::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    height: 4px;
    background: #7ee0ff;
    box-shadow: 0 0 18px rgba(126, 224, 255, 0.85);
}

.scan-frame::before {
    top: 20%;
}

.scan-frame::after {
    bottom: 20%;
}
.dashboard-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

    .dashboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,.15);
    }

.dashboard-security-card {
    border-left: 5px solid #198754;
}
.student-profile-photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
}

.student-profile-card {
    border-radius: 15px;
}

    .student-profile-card:hover {
        transform: translateY(-2px);
        transition: all .3s;
    }

.info-label {
    font-weight: 600;
    color: #6c757d;
}