/* Notification dropdown — student panel, public header, admin topbar */

.notification-dropdown {
    position: relative;
    display: inline-flex;
}

.notification-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: border-color .22s ease, background .22s ease, color .22s ease;
}

.notification-dropdown--student .notification-btn,
.notification-dropdown--site .notification-btn {
    background: rgba(255, 255, 255, 0.85);
}

.notification-btn:hover,
.notification-btn[aria-expanded="true"] {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.notification-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notification-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    z-index: 500;
    overflow: hidden;
}

.notification-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-menu-header {
    padding: 16px 18px 12px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notification-mark-all-form {
    margin: 0;
}

.notification-mark-all-link {
    border: none;
    background: none;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: #1d4ed8;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.notification-mark-all-link:hover {
    text-decoration: underline;
}

.notification-menu-body {
    max-height: 320px;
    overflow-y: auto;
}

.notification-menu-section {
    padding: 12px 18px 4px;
}

.notification-menu-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.notification-menu-empty {
    padding: 14px 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 14px;
    font-style: italic;
    text-align: center;
}

.notification-menu-item {
    display: block;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease, background .2s ease;
}

.notification-menu-item:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.notification-menu-item.is-unread {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.notification-menu-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.notification-menu-item span {
    display: block;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

.notification-menu-item small {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #94a3b8;
}

.notification-menu-footer {
    padding: 14px 18px 18px;
    border-top: 1px solid #f1f5f9;
}

.notification-menu-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e40af 0%, #06b6d4 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
    transition: filter .2s ease, transform .2s ease;
}

.notification-menu-all-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.notification-dropdown--admin .notification-btn {
    width: 42px;
    height: 42px;
    font-size: 18px;
}

@media (max-width: 768px) {
    .notification-menu {
        right: -8px;
    }
}
