﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI',sans-serif;
}

:root {
    --dark-blue: #05285C;
    --sky-blue: #10A9DC;
    --yellow: #F0B400;
}

body {
    background: radial-gradient(circle at top left,#fff7c2 0%,transparent 28%), radial-gradient(circle at top right,#cdefff 0%,transparent 30%), linear-gradient(135deg,#f8fbff,#fffdf2,#eef8ff);
}

.topbar {
    height: 90px;
    background: #05285C;
    border-bottom: 4px solid #F0B400;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    font-size: 24px;
    font-weight: 900;
}

    .brand img {
        width: 62px;
        height: 62px;
        border-radius: 50%;
        background: white;
    }

.nav a {
    color: white;
    text-decoration: none;
    margin-left: 28px;
    font-weight: 700;
}

.hero {
    text-align: center;
    padding: 60px 20px;
}

    .hero h1 {
        color: #05285C;
        font-size: 52px;
        font-weight: 900;
    }

    .hero p {
        color: #116b9f;
        margin-top: 12px;
        font-size: 18px;
    }

.stats {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stat {
    background: white;
    padding: 15px 25px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

    .stat b {
        color: #F0B400;
    }
.roles {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 28px;
    padding: 30px 55px 25px;
}

.card {
    position: relative;
    min-height: 360px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 32px;
    padding: 30px 22px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(6,63,121,.14);
    overflow: hidden;
    transition: .35s ease;
    cursor: pointer;
}

    .card::before {
        content: "";
        position: absolute;
        left: -40px;
        right: -40px;
        bottom: -95px;
        height: 180px;
        background: linear-gradient(135deg,#063f79,#10a9dc);
        border-radius: 50% 50% 0 0;
        transform: translateY(115px);
        transition: .35s ease;
    }

    .card:hover {
        transform: translateY(-14px) scale(1.02);
        box-shadow: 0 30px 65px rgba(6,63,121,.28);
    }

        .card:hover::before {
            transform: translateY(0);
        }

.avatar {
    width: 135px;
    height: 135px;
    margin: auto;
    border-radius: 50%;
    background: linear-gradient(135deg,#ffffff,#fff6bd);
    display: grid;
    place-items: center;
    font-size: 64px;
    border: 7px solid #c9f0ff;
    box-shadow: 0 10px 25px rgba(6,63,121,.16);
    position: relative;
    z-index: 1;
}

.card h2 {
    margin-top: 35px;
    font-size: 31px;
    letter-spacing: 2px;
    color: #05285c;
    text-shadow: 2px 3px rgba(0,0,0,.08);
    position: relative;
    z-index: 1;
}

.line {
    width: 55px;
    height: 5px;
    background: #f0b400;
    margin: 18px auto;
    border-radius: 50px;
    position: relative;
    z-index: 1;
}

.features {
    list-style: none;
    margin-top: 20px;
    color: white;
    line-height: 1.9;
    opacity: 0;
    transform: translateY(20px);
    transition: .35s ease;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.login {
    position: absolute;
    left: 50%;
    bottom: 23px;
    transform: translateX(-50%) translateY(20px);
    background: #fff7c8;
    color: #063f79;
    border: none;
    border-radius: 50px;
    padding: 13px 34px;
    font-weight: 900;
    letter-spacing: 1px;
    opacity: 0;
    transition: .35s ease;
    z-index: 2;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

.card:hover .features {
    opacity: 1;
    transform: translateY(0);
}

.card:hover .login {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.card:hover h2 {
    color: white;
}

.card:hover .line {
    background: #fff04a;
}

.notice {
    margin: 20px 55px 45px;
    background: #05285C;
    color: white;
    border-radius: 25px;
    padding: 22px 28px;
    box-shadow: 0 15px 35px rgba(6,63,121,.25);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 4px solid #F0B400;
}

    .notice b {
        color: #F0B400;
    }

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,27,53,.72);
    display: none;
    place-items: center;
    z-index: 10;
    backdrop-filter: blur(8px);
}

    .modal.show {
        display: grid;
    }

.login-box {
    width: min(930px,92vw);
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.left {
    background: radial-gradient(circle at 30% 20%,rgba(240,180,0,.35),transparent 30%), linear-gradient(135deg,#05285c,#078cc4);
    color: white;
    padding: 45px;
}

    .left img {
        width: 92px;
        height: 92px;
        border-radius: 50%;
        background: white;
        margin-bottom: 22px;
    }

    .left h2 {
        font-size: 34px;
        margin-bottom: 15px;
    }

    .left p {
        line-height: 1.7;
        color: #e8f8ff;
        font-size: 17px;
    }

.right {
    padding: 45px;
    background: #fffdf0;
}

    .right h2 {
        margin-bottom: 22px;
        color: #05285c;
    }

.input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #b8dff0;
    border-radius: 12px;
    font-size: 16px;
}

.btn {
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,#063f79,#10a9dc);
    color: white;
    font-weight: 900;
    margin-top: 12px;
}

.close {
    float: right;
    text-decoration: none;
    color: #063f79;
    font-size: 28px;
    font-weight: bold;
}

@media(max-width:1000px) {
    .roles {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:750px) {
    .login-box {
        grid-template-columns: 1fr;
    }

    .left {
        display: none;
    }
}

@media(max-width:600px) {
    .roles {
        grid-template-columns: 1fr;
        padding: 35px 18px;
    }

    .notice {
        margin: 15px 18px 35px;
    }
}
.dashboard-page {
    min-height: 100vh;
    padding: 60px;
    background: radial-gradient(circle at top left,#fff7c2 0%,transparent 28%), radial-gradient(circle at top right,#cdefff 0%,transparent 30%), linear-gradient(135deg,#f8fbff,#fffdf2,#eef8ff);
}

    .dashboard-page h1 {
        color: #05285C;
        font-size: 44px;
        font-weight: 900;
    }

    .dashboard-page p {
        color: #116b9f;
        margin-top: 10px;
        font-size: 18px;
    }

.dashboard-cards {
    margin-top: 35px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 22px;
}

.dash-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(6,63,121,.15);
    color: #05285C;
    font-weight: 900;
    text-align: center;
}
.dash-card-link {
    text-decoration: none;
}

.dash-card {
    transition: .3s;
    cursor: pointer;
}

    .dash-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(6,63,121,.25);
    }
.student-form {
    max-width: 650px;
    background: white;
    padding: 30px;
    margin-top: 30px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(6,63,121,.15);
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-weight: 800;
        color: #05285C;
        margin-bottom: 7px;
    }

.form-control {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #b8dff0;
    border-radius: 12px;
    font-size: 15px;
}

.btn-back {
    display: inline-block;
    margin-left: 10px;
    padding: 14px 22px;
    background: #fff7c8;
    color: #05285C;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
}
.form-header {
    margin-bottom: 25px;
}

    .form-header h1 {
        color: #05285C;
        font-size: 42px;
        font-weight: 900;
    }

    .form-header p {
        color: #116b9f;
        font-size: 18px;
        margin-top: 6px;
    }

.premium-form {
    max-width: 950px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}

.roll-box {
    display: flex;
    align-items: center;
    border: 1px solid #b8dff0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

    .roll-box span {
        padding: 13px 15px;
        background: #fff7c8;
        color: #05285C;
        font-weight: 900;
        min-width: 90px;
        text-align: center;
        border-right: 1px solid #b8dff0;
    }

    .roll-box input {
        flex: 1;
        border: 0;
        outline: none;
        padding: 13px 15px;
        font-size: 15px;
    }

.form-actions {
    margin-top: 25px;
}

@media(max-width:700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
.success-alert {
    background: #e8fff0;
    color: #138a4a;
    border: 1px solid #b7efc5;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,.05);
}
.student-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

    .student-page-header h1 {
        color: #05285C;
        font-size: 42px;
        font-weight: 900;
    }

    .student-page-header p {
        color: #116b9f;
        font-size: 18px;
        margin-top: 6px;
    }

.student-table-card {
    background: white;
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(6,63,121,.15);
    overflow-x: auto;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

    .table-toolbar input {
        width: 420px;
        max-width: 100%;
        padding: 13px 15px;
        border: 1px solid #b8dff0;
        border-radius: 12px;
        font-size: 15px;
    }

    .table-toolbar span {
        color: #05285C;
        font-weight: 900;
    }

.student-table {
    width: 100%;
    border-collapse: collapse;
}

    .student-table th {
        background: #05285C;
        color: white;
        padding: 15px;
        text-align: left;
    }

    .student-table td {
        padding: 14px 15px;
        border-bottom: 1px solid #e7f0fa;
        color: #263b55;
    }

    .student-table tr:hover {
        background: #f6fbff;
    }

.action-edit,
.action-delete {
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    margin-right: 6px;
}

.action-edit {
    background: #eaf8ff;
    color: #063f79;
}

.action-delete {
    background: #fff0f0;
    color: #b3261e;
}

@media(max-width:700px) {
    .student-page-header,
    .table-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
.action-view {
    background: #fff7c8;
    color: #05285C;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    margin-right: 6px;
}

.student-profile-card,
.delete-card {
    max-width: 850px;
    background: white;
    padding: 35px;
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(6,63,121,.15);
}

    .student-profile-card h1,
    .delete-card h1 {
        color: #05285C;
        font-size: 40px;
        font-weight: 900;
    }

    .student-profile-card p,
    .delete-card p {
        color: #116b9f;
        font-size: 18px;
        margin: 8px 0 25px;
    }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 18px;
}

    .profile-grid div {
        background: #f7fbff;
        padding: 18px;
        border-radius: 16px;
        border: 1px solid #e7f0fa;
    }

    .profile-grid b {
        display: block;
        color: #05285C;
        margin-bottom: 6px;
    }

    .profile-grid span {
        color: #263b55;
    }

.delete-info {
    background: #fff7c8;
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 25px;
}

    .delete-info b,
    .delete-info span {
        display: block;
        color: #05285C;
        margin-bottom: 6px;
    }

.danger-btn {
    padding: 14px 22px;
    background: #b3261e;
    color: white;
    border: 0;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
}

@media(max-width:700px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}
.students-pro-page {
    min-height: 100vh;
    padding: 50px 60px;
    background: radial-gradient(circle at top left,#fff7c2 0%,transparent 28%), radial-gradient(circle at top right,#cdefff 0%,transparent 30%), linear-gradient(135deg,#f8fbff,#fffdf2,#eef8ff);
}

.students-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.page-badge {
    display: inline-block;
    background: #fff7c8;
    color: #05285C;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
    margin-bottom: 12px;
}

.students-top h1 {
    color: #05285C;
    font-size: 44px;
    font-weight: 950;
}

.students-top p {
    color: #116b9f;
    font-size: 17px;
    margin-top: 6px;
}

.add-student-btn {
    text-decoration: none;
    background: linear-gradient(135deg,#05285C,#10A9DC);
    color: white;
    padding: 15px 24px;
    border-radius: 16px;
    font-weight: 900;
    box-shadow: 0 15px 30px rgba(16,169,220,.25);
}

.student-stats-row {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.student-stat-card {
    background: white;
    padding: 22px;
    border-radius: 24px;
    box-shadow: 0 14px 35px rgba(6,63,121,.11);
    border: 1px solid #eef6ff;
}

    .student-stat-card span {
        color: #116b9f;
        font-weight: 800;
    }

    .student-stat-card h2 {
        margin-top: 8px;
        color: #05285C;
        font-size: 32px;
        font-weight: 950;
    }

.student-record-card {
    background: white;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(6,63,121,.13);
}

.student-record-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

    .student-record-head h2 {
        color: #05285C;
        font-size: 27px;
        font-weight: 950;
    }

    .student-record-head p {
        color: #6b7b92;
        margin-top: 4px;
    }

.student-search-box {
    width: 420px;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7fbff;
    border: 1px solid #b8dff0;
    border-radius: 16px;
    padding: 13px 16px;
}

    .student-search-box input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 15px;
    }

.student-table-wrapper {
    overflow-x: auto;
}

.student-pro-table {
    width: 100%;
    border-collapse: collapse;
}

    .student-pro-table th {
        background: #05285C;
        color: white;
        padding: 16px;
        text-align: left;
        font-size: 14px;
    }

        .student-pro-table th:first-child {
            border-radius: 16px 0 0 16px;
        }

        .student-pro-table th:last-child {
            border-radius: 0 16px 16px 0;
        }

    .student-pro-table td {
        padding: 16px;
        border-bottom: 1px solid #edf4fb;
        color: #263b55;
        vertical-align: middle;
    }

    .student-pro-table tr:hover {
        background: #f7fbff;
    }

.student-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-avatar {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: linear-gradient(135deg,#05285C,#10A9DC);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 950;
}

.student-user strong {
    display: block;
    color: #05285C;
}

.student-user span {
    font-size: 13px;
    color: #6b7b92;
}

.program-pill {
    display: inline-block;
    background: #eaf8ff;
    color: #063f79;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

.semester-pill {
    display: inline-block;
    background: #fff7c8;
    color: #05285C;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

.action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media(max-width:900px) {
    .students-top,
    .student-record-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-stats-row {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:600px) {
    .students-pro-page {
        padding: 25px 18px;
    }

    .student-stats-row {
        grid-template-columns: 1fr;
    }
}
.session-dropdown {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d6e8f8;
    background: white;
    color: #05285C;
    font-weight: 800;
    font-size: 15px;
    outline: none;
}
.attendance-filter {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
    align-items: end;
}

.pal-group {
    display: flex;
    gap: 10px;
}

.pal-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 950;
    cursor: pointer;
    border: 2px solid transparent;
}

    .pal-btn input {
        display: none;
    }

    .pal-btn.present {
        background: #e8fff0;
        color: #138a4a;
    }

    .pal-btn.absent {
        background: #fff0f0;
        color: #b3261e;
    }

    .pal-btn.leave {
        background: #fff7c8;
        color: #9a6a00;
    }

    .pal-btn:has(input:checked) {
        border-color: #05285C;
        box-shadow: 0 8px 18px rgba(6,63,121,.18);
        transform: scale(1.08);
    }

.attendance-present,
.attendance-absent,
.attendance-leave {
    padding: 7px 13px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
}

.attendance-present {
    background: #e8fff0;
    color: #138a4a;
}

.attendance-absent {
    background: #fff0f0;
    color: #b3261e;
}

.attendance-leave {
    background: #fff7c8;
    color: #9a6a00;
}

@media(max-width:900px) {
    .attendance-filter {
        grid-template-columns: 1fr;
    }
}