/*stylesheet*/

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f4f7fb;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}


/* =========================================================
   2. APPLICATION NAVBAR
   ========================================================= */

.navbar.bg-dark {
    background: #111827 !important;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: 0.2px;
}

.navbar .nav-link {
    color: #d1d5db !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #ffffff !important;
}

.navbar .nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}


/* =========================================================
   3. NAVBAR SEPARATORS
   ========================================================= */

/*
   The separators are the <span> | </span> elements
   currently present in app.blade.php.
*/

.navbar-nav > span {
    color: #6b7280;
    display: flex;
    align-items: center;
    padding: 0 3px;
}


/* =========================================================
   4. APPLICATION SIDEBAR
   ========================================================= */

aside {
    background: #ffffff !important;
    border-right-color: #e5e7eb !important;
}

aside h6 {
    letter-spacing: 0.8px;
    font-size: 0.72rem;
}

aside .nav-pills .nav-link {
    color: #374151;
    border-radius: 7px;
    padding: 10px 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

aside .nav-pills .nav-link:hover {
    background-color: #f3f4f6;
    color: #1d4ed8;
}

aside .nav-pills .nav-link.active {
    background-color: #2563eb;
    color: #ffffff;
}

aside hr {
    margin: 8px 0;
    border-color: #e5e7eb;
    opacity: 1;
}


/* =========================================================
   5. APPLICATION MAIN CONTENT
   ========================================================= */

main {
    color: #1f2937;
}

main h1 {
    color: #111827;
    font-weight: 700;
}

main h2,
main h3,
main h4,
main h5,
main h6 {
    color: #111827;
}

.text-muted {
    color: #6b7280 !important;
}


/* =========================================================
   6. PAGE HEADINGS
   ========================================================= */

.text-uppercase {
    letter-spacing: 0.8px;
}

main > div:first-child p.text-uppercase {
    font-size: 0.72rem;
    letter-spacing: 1px;
}

main > div:first-child h1 {
    font-size: 2rem;
}


/* =========================================================
   7. CARDS
   ========================================================= */

.card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.card-body {
    color: #374151;
}

.card:hover {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
}


/* =========================================================
   8. BUTTONS
   ========================================================= */

.btn {
    border-radius: 7px;
    font-weight: 600;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-outline-primary {
    color: #2563eb;
    border-color: #2563eb;
}

.btn-outline-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-outline-secondary {
    color: #374151;
    border-color: #d1d5db;
}

.btn-outline-secondary:hover {
    background-color: #f3f4f6;
    color: #111827;
    border-color: #9ca3af;
}

.btn-outline-danger:hover {
    transform: translateY(-1px);
}


/* =========================================================
   9. FORMS
   ========================================================= */

.form-label {
    color: #374151;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    border-color: #d1d5db;
    border-radius: 7px;
    color: #111827;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus,
.form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.form-control,
.form-select {
    min-height: 42px;
}


/* =========================================================
   10. TABLES
   ========================================================= */

.table-responsive {
    border-radius: 8px;
}

.table {
    margin-bottom: 0;
}

.table > thead > tr > th {
    background-color: #111827;
    color: #ffffff;
    border-color: #111827;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.table > tbody > tr > td {
    color: #374151;
    vertical-align: middle;
}

.table-hover > tbody > tr:hover > * {
    background-color: #f8fafc;
}

.table > tbody > tr:last-child > td {
    border-bottom: 0;
}


/* =========================================================
   11. STUDENT AVATARS
   ========================================================= */

.rounded-circle.bg-primary {
    background-color: #2563eb !important;
}


/* =========================================================
   12. BADGES
   ========================================================= */

.badge {
    font-weight: 600;
    letter-spacing: 0.1px;
}

.badge.text-bg-primary {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
}

.badge.text-bg-success {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
}

.badge.text-bg-secondary {
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
}

.badge.text-bg-danger {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
}


/* =========================================================
   13. ALERTS
   ========================================================= */

.alert {
    border-radius: 8px;
    border-width: 1px;
}

.alert-success {
    color: #065f46;
    background-color: #ecfdf5;
    border-color: #a7f3d0;
}

.alert-danger {
    color: #991b1b;
    background-color: #fef2f2;
    border-color: #fecaca;
}

.alert-warning {
    color: #92400e;
    background-color: #fffbeb;
    border-color: #fde68a;
}

.alert-info {
    color: #1e40af;
    background-color: #eff6ff;
    border-color: #bfdbfe;
}


/* =========================================================
   14. DATA TABLES
   ========================================================= */

#studentsTable_wrapper {
    width: 100%;
}

#studentsTable_wrapper .dt-search {
    margin-bottom: 15px;
}

#studentsTable_wrapper .dt-length {
    margin-bottom: 15px;
}

#studentsTable_wrapper .dt-search input,
#studentsTable_wrapper .dt-length select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 10px;
}

#studentsTable_wrapper .dt-search input:focus,
#studentsTable_wrapper .dt-length select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

#studentsTable_wrapper .dt-paging button {
    border-radius: 6px !important;
}

#studentsTable_wrapper .dt-paging button.current {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}


/* =========================================================
   15. FOOTER
   ========================================================= */

footer.bg-dark {
    background-color: #111827 !important;
}

footer.bg-dark p {
    font-size: 0.9rem;
}

footer.bg-dark small {
    color: #9ca3af !important;
}


/* =========================================================
   16. AUTHENTICATION LAYOUT
   ========================================================= */

body.bg-light {
    background-color: #f4f7fb !important;
}


/* Auth header */

header.bg-dark {
    background-color: #111827 !important;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
}

header.bg-dark h2 {
    color: #ffffff;
    letter-spacing: 0.2px;
}

header.bg-dark p {
    color: #9ca3af !important;
}


/* Auth card */

body.bg-light main .card {
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

body.bg-light main .card:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}


/* Auth heading */

body.bg-light main h3 {
    color: #111827;
}


/* Auth icon */

body.bg-light .rounded-circle.bg-primary {
    background-color: #2563eb !important;
}


/* Auth links */

body.bg-light a {
    color: #2563eb;
}

body.bg-light a:hover {
    color: #1d4ed8;
}


/* =========================================================
   17. PROFILE / DETAIL SECTIONS
   ========================================================= */

.profile-grid,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.profile-grid > div,
.detail-item {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
}

.profile-grid strong,
.detail-label {
    color: #374151;
    font-size: 0.85rem;
}

.profile-grid p,
.detail-value {
    margin-bottom: 0;
    color: #6b7280;
}


/* =========================================================
   18. OLD / COMPATIBILITY COMPONENTS
   ========================================================= */

/*
   These classes are retained because some of the older
   converted pages may still use them.
*/

.page-header {
    margin-bottom: 30px;
}

.page-header .eyebrow,
.eyebrow {
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.page-description {
    color: #6b7280;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    font-weight: 700;
}

.section-header p {
    color: #6b7280;
}


/* =========================================================
   19. LEGACY TABLE SUPPORT
   ========================================================= */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
}

.data-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.data-table th {
    padding: 13px 15px;
    background-color: #111827;
    color: #ffffff;
    text-align: left;
    font-size: 0.82rem;
}

.data-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background-color: #f9fafb;
}


/* =========================================================
   20. LEGACY STATUS
   ========================================================= */

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}

.status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #9ca3af;
}

.status.active {
    color: #047857;
}

.status.active::before {
    background-color: #10b981;
}

.status.inactive {
    color: #b91c1c;
}

.status.inactive::before {
    background-color: #ef4444;
}


/* =========================================================
   21. GPA
   ========================================================= */

.gpa {
    font-weight: 700;
}

.gpa.excellent {
    color: #047857;
}


/* =========================================================
   22. EMPTY STATES
   ========================================================= */

.empty-state {
    padding: 45px 20px !important;
    text-align: center;
    color: #6b7280;
}

.empty-state h3 {
    color: #374151;
    font-weight: 700;
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}


/* =========================================================
   23. PAGINATION
   ========================================================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 25px;
}

.pagination a,
.pagination span {
    padding: 7px 11px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
}


/* =========================================================
   24. LEGACY FORMS
   ========================================================= */

.form-card {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 18px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}


/* =========================================================
   25. RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    aside {
        min-height: auto !important;
    }

    .navbar-nav > span {
        display: none;
    }

    .profile-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   26. RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    main.col-md-9,
    main.col-lg-10 {
        padding: 20px !important;
    }

    main > div:first-child {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    main > div:first-child .btn {
        width: 100%;
    }

    main > div:first-child h1 {
        font-size: 1.65rem;
    }

    .card-body {
        padding: 20px !important;
    }

    .table {
        min-width: 750px;
    }

    .table-responsive {
        overflow-x: auto;
    }

    aside {
        border-right: 0 !important;
        border-bottom: 1px solid #e5e7eb;
    }

    aside .nav-pills {
        width: 100%;
    }

    aside .nav-pills .nav-link {
        width: 100%;
    }

    footer.bg-dark {
        padding: 20px 15px !important;
    }

}


/* =========================================================
   27. VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 575.98px) {

    header.bg-dark {
        padding: 25px 15px !important;
    }

    header.bg-dark h2 {
        font-size: 1.4rem;
    }

    body.bg-light main .container {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }

    body.bg-light main .card-body {
        padding: 25px 20px !important;
    }

    .btn {
        min-height: 40px;
    }

    .form-control,
    .form-select {
        min-height: 44px;
    }

}

/* =========================================================
   APPLICATION HEADER
   ========================================================= */

.app-header {
    background: #0f3d3e;
    color: white;
    min-height: 82px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white !important;
    text-decoration: none !important;
}

.app-brand:hover {
    color: white !important;
}

.brand-icon {
    font-size: 32px;
}

.app-brand strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
}

.app-brand small {
    display: block;
    margin-top: 3px;
    color: #d1e7e7;
    font-size: 12px;
}


/* =========================================================
   APPLICATION NAVBAR
   ========================================================= */

.app-navbar {
    background: #1f2937 !important;
    min-height: 58px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.app-navbar .nav-link {
    color: #e5e7eb !important;
    font-weight: 600;
    padding: 9px 15px !important;
    border-radius: 6px;
    transition: 0.2s;
}

.app-navbar .nav-link:hover {
    color: white !important;
    background: #374151;
}

.app-navbar .navbar-toggler {
    border-color: #9ca3af;
}


/* =========================================================
   HAMBURGER ACCOUNT MENU
   ========================================================= */

.menu-button {
    background: transparent !important;
    border: 1px solid #6b7280 !important;
    color: white !important;
    font-size: 20px;
    width: 42px;
    height: 38px;
    padding: 0 !important;
}

.menu-button::after {
    margin-left: 4px;
}

.menu-button:hover {
    background: #374151 !important;
    color: white !important;
}

.dropdown-menu {
    min-width: 220px;
}

.dropdown-header {
    font-size: 12px;
    color: #6b7280;
    overflow-wrap: anywhere;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.app-sidebar {
    background: white;
    border-right: 1px solid #e5e7eb;
    min-height: 100%;
    padding: 24px 16px;
}

.sidebar-title {
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.app-sidebar .nav-link {
    color: #374151;
    font-weight: 600;
    border-radius: 7px;
    padding: 10px 12px;
}

.app-sidebar .nav-link:hover {
    background: #eef6f6;
    color: #0f3d3e;
}

.app-sidebar hr {
    margin: 8px 0;
    border-color: #e5e7eb;
}


/* =========================================================
   APPLICATION FOOTER
   ========================================================= */

.app-footer {
    background: #0f3d3e;
    color: white;
    padding: 22px 0;
    margin-top: auto;
}

.app-footer small {
    color: #c6dddd;
}


/* =========================================================
   AUTH PAGES
   ========================================================= */

.auth-body {
    background: #f4f7fb;
}

.auth-brand {
    justify-content: center;
}


/* =========================================================
   ADD STUDENT / PRIMARY BUTTON FIX
   ========================================================= */

.btn-primary {
    background-color: #0f766e !important;
    border-color: #0f766e !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #0d625c !important;
    border-color: #0d625c !important;
    color: white !important;
}


/* =========================================================
   RESPONSIVE HEADER / NAVBAR
   ========================================================= */

@media (max-width: 991px) {

    .app-navbar .navbar-collapse {
        padding: 12px 0;
    }

    .menu-button {
        margin-top: 8px;
    }

}


@media (max-width: 576px) {

    .app-header {
        min-height: 72px;
    }

    .app-brand strong {
        font-size: 21px;
    }

    .brand-icon {
        font-size: 27px;
    }

    .app-sidebar {
        min-height: auto;
    }

}