﻿body {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
    color: #1f2937;
}

.navbar-brand {
    letter-spacing: .3px;
}

.page-header {
    background: #ffffff;
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .85rem 1.15rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    font-weight: 600;
}

.status-chip .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #20c997;
    box-shadow: 0 0 0 4px rgba(32, 201, 151, .15);
}

.card {
    border-radius: 1.5rem;
}

.section-title {
    margin: 1.2rem 0 1rem;
    padding-left: .9rem;
    border-left: 4px solid #0d6efd;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.subsection-title {
    margin: 1.35rem 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
}

.form-label {
    color: #334155;
}

.required-mark {
    color: #dc3545;
    margin-left: .15rem;
}

.form-note {
    padding: 1rem 1.15rem;
    background: #ffffff;
    border: 1px solid rgba(13, 110, 253, 0.08);
    color: #475569;
}

.form-control,
.form-select {
    border-radius: .95rem;
    border-color: #d7deea;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
}

.form-select:disabled {
    background-color: #eef2f7;
}

.check-card {
    display: flex;
    align-items: center;
    min-height: 78px;
    padding: 1rem 1.1rem;
    border: 1px solid #d7deea;
    border-radius: 1rem;
    background: #fff;
}

.form-check-input {
    width: 3rem;
    height: 1.5rem;
    margin-right: .85rem;
}

.btn {
    border-radius: .95rem;
    font-weight: 600;
}


.section-highlight {
    display: inline-flex;
    align-items: center;
    padding: .8rem 1.15rem;
    border-radius: 1rem;
    border-left: none;
    background: linear-gradient(135deg, #0d6efd 0%, #4f8cff 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.18);
}

.section-highlight.section-title {
    margin-bottom: 1.15rem;
}

.subsection-title {
    padding-left: .15rem;
}


.field-wrapper.has-field-error {
    padding: .75rem;
    border-radius: 1rem;
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.18);
}

.check-card.is-invalid,
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .1) !important;
}

.invalid-feedback {
    font-size: .92rem;
}

.guardian-fields-section {
    animation: fadeInGuardian .2s ease-in-out;
}

.guardian-fields-panel {
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px dashed rgba(13, 110, 253, 0.25);
}

.guardian-fields-title {
    margin-bottom: 1rem;
    font-size: .98rem;
    font-weight: 700;
    color: #0d6efd;
}

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


.important-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: #fff5f5;
    border: 1px solid rgba(220, 53, 69, 0.22);
}

.important-note-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(220, 53, 69, 0.12);
    font-size: 1.4rem;
    line-height: 1;
}

.important-note-text {
    color: #dc3545;
    font-size: 1rem;
    line-height: 1.65;
}


.student-list-page .card {
    background: #ffffff;
}

.student-list-title {
    margin: .25rem 0 1.4rem;
    color: #9d2c2c;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}

.add-student-link {
    color: #3d7bbf;
    font-weight: 600;
    text-decoration: none;
}

.add-student-link:hover,
.student-link:hover {
    text-decoration: underline;
}

.student-search-form {
    display: flex;
    gap: .75rem;
    align-items: center;
    width: 100%;
    max-width: 620px;
}

.search-box {
    min-width: 0;
}

.search-button {
    min-width: 132px;
}

.student-table thead th {
    background: #48b7ea;
    color: #ffffff;
    border-color: #48b7ea;
    font-weight: 700;
    white-space: nowrap;
}

.student-table tbody tr:nth-child(even) {
    background: #f4f9fd;
}

.student-table td,
.student-table th {
    vertical-align: middle;
}

.student-link {
    color: #4c76a8;
    font-weight: 600;
    text-decoration: none;
}

.status-text {
    font-weight: 700;
    white-space: nowrap;
}

.status-entered {
    color: #2949d3;
}

.status-missing {
    color: #b03a5b;
}

.status-approved {
    color: #4b8f1f;
}

.status-pending {
    color: #7b4fa1;
}

.action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: .5rem;
    border: 1px solid #d7deea;
    background: #fff;
    color: #64748b;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
}

.action-icon:hover {
    background: #f8fafc;
}

.action-edit {
    color: #d08a00;
}

.action-delete {
    color: #4f9bc9;
}

.action-add {
    color: #64748b;
}

.delete-form {
    margin: 0;
}

.delete-form .action-icon {
    cursor: pointer;
}

.google-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem;
    align-items: center;
}

.page-number,
.page-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 .75rem;
    border-radius: 999px;
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
}

.page-number.active {
    background: #2563eb;
    color: #ffffff;
}

.page-nav.disabled {
    color: #94a3b8;
}

@media (max-width: 991.98px) {
    .student-search-form {
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .student-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-button {
        width: 100%;
    }
}

.user-role-chip {
    display: inline-flex;
    align-items: center;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
}

.login-page-wrapper {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 2.25rem 2rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(13, 110, 253, 0.08);
    text-align: center;
}

.login-avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    padding: 10px;
    overflow: hidden;
}

.login-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-title {
    margin-bottom: .35rem;
    font-size: 2rem;
    font-weight: 800;
    color: #405388;
}

.login-subtitle {
    margin-bottom: 1.5rem;
    color: #7b88ad;
}

.login-form {
    text-align: left;
}

.login-input {
    background: #f5f8ff;
}

.login-button {
    margin-top: .35rem;
}

.login-note {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #e7eef8;
    color: #6b7280;
    font-size: .95rem;
    line-height: 1.6;
}

.stat-card {
    height: 100%;
    padding: 1.35rem 1.25rem;
    border-radius: 1.4rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(13, 110, 253, 0.1);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.stat-label {
    color: #475569;
    font-size: .95rem;
    line-height: 1.55;
}

.stat-value {
    margin: .75rem 0 .35rem;
    font-size: 2rem;
    font-weight: 800;
    color: #0d6efd;
}

.stat-helper {
    color: #64748b;
    font-size: .92rem;
}

@media (max-width: 575.98px) {
    .login-card {
        padding: 1.75rem 1.2rem;
    }

    .login-title {
        font-size: 1.65rem;
    }
}


.navbar-quick-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
    align-items: center;
    justify-content: flex-end;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.navbar-quick-actions > * {
    flex: 0 0 auto;
}

.navbar-quick-actions::-webkit-scrollbar {
    height: 6px;
}

.sort-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.sort-link:hover,
.sort-link:focus {
    color: #ffffff;
    text-decoration: underline;
}

.sort-link.is-active {
    text-decoration: underline;
}

.sort-icon {
    font-size: .85rem;
    line-height: 1;
}
