* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.nav-bar {
    width: 100%;
    background: #9e88e8;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
}

.nav-bar .content {
    max-width: 1300px;
    margin: auto;
    padding: 8px 20px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.school-logo {
    height: 48px;
    width: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-text .big-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.logo-text .small-text {
    font-size: 11px;
    opacity: .85;
    color: #fff;
}

.navigation {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
}

.navigation .link a {
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navigation .link.active a {
    color: #ffe082;
}

.navigation .link a i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger-btn {
    font-size: 22px;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #fff;
}

.nav-extra {
    display: flex;
    align-items: center;
}

.notif-btn {
    position: relative;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e74c3c;
    color: #fff;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: .2s;
    z-index: 3000;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -25%;
    width: 25%;
    height: 100%;
    background: #fff;
    z-index: 3001;
    padding: 25px 20px;
    transition: .25s;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 1px solid #e6e6e6;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-photo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: auto;
}

.sidebar-profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid #ccc;
}

.edit-photo-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #007bff;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.sidebar-name {
    font-size: 20px;
    font-weight: 700;
}

.sidebar-sub {
    font-size: 14px;
    opacity: .8;
}

.edit-info-btn {
    background: #007bff;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
}

.logout-container {
    margin-top: auto;
}

.logout-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 7px;
    background: #e74c3c;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.notif-sidebar {
    position: fixed;
    top: 0;
    right: -25%;
    width: 25%;
    height: 100%;
    background: #fff;
    z-index: 3001;
    padding: 20px;
    box-shadow: -12px 0 30px rgba(0,0,0,0.08);
    transition: .25s;
    display: flex;
    flex-direction: column;
}

.notif-sidebar.active {
    right: 0;
}

.notif-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notif-controls {
    display: flex;
    gap: 8px;
}

.btn-secondary {
    background: #777;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
}

.notif-list {
    margin-top: 12px;
    overflow: auto;
    padding-right: 6px;
}

.notif-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid #f1f1f1;
}

.notif-item.unread {
    background: #f6f7ff;
}

.notif-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.notif-body {
    font-size: 13px;
    opacity: .85;
}

.notif-time {
    font-size: 12px;
    color: #888;
}

.notif-empty {
    padding: 24px;
    text-align: center;
    color: #666;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #fff;
    width: 90%;
    max-width: 450px;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    animation: fadeInUp .25s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-box input,
.modal-box textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-cancel,
.modal-save {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
}

.modal-cancel {
    background: #ddd;
    color: #333;
}

.modal-save {
    background: #7d5dfc;
    color: #fff;
}

.nav-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    min-width: 240px;
    background: #333;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 6000;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(12px);
    transition: .25s;
}

.nav-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.nav-toast.success {
    background: #27ae60;
}

.nav-toast.error {
    background: #c0392b;
}

.nav-toast.info {
    background: #2980b9;
}

.nav-toast.warning {
    background: #f1c40f;
    color: #000;
}

.nav-toast-icon {
    font-size: 18px;
}

@media (max-width: 768px) {

    .nav-bar .content {
        height: 58px;
        padding: 5px 12px;
        gap: 5px;
    }

    .logo-text {
        display: none;
    }

    .site-logo {
        min-width: auto;
        gap: 6px;
    }

    .school-logo {
        height: 40px;
        width: 40px;
    }

    .navigation {
        gap: 10px;
    }

    .navigation .link a {
        font-size: 20px;
        padding: 4px;
    }

    .notif-btn {
        font-size: 18px;
        padding: 4px;
    }

    .notif-badge {
        font-size: 10px;
        top: -3px;
        right: -3px;
    }

    .burger-btn {
        font-size: 20px;
        padding: 4px;
    }
}
