/* =========================================
TEACHER NOTIFICATIONS
Namespace: tn-
========================================= */

#teacher-notif-root {
width: 100%;
height: 100%;
min-height: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
background: #09103f;
color: #f1f5f9;
font-family: Inter, Arial, sans-serif;
box-sizing: border-box;
}

#teacher-notif-root *,
#teacher-notif-root *::before,
#teacher-notif-root *::after {
box-sizing: border-box;
}

/* TOP BAR */

#teacher-notif-root .tn-topbar {
position: relative;
display: flex;
align-items: center;
gap: 16px;
min-height: 68px;
padding: 14px 24px;
background: #0a2a43;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
flex-shrink: 0;
}

#teacher-notif-root .tn-back-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 40px;
padding: 9px 14px;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
background: transparent;
color: #f8fafc;
font: inherit;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition:
background 0.2s ease,
border-color 0.2s ease;
}

#teacher-notif-root .tn-back-btn:hover {
background: rgba(255, 255, 255, 0.09);
border-color: rgba(255, 255, 255, 0.4);
}

#teacher-notif-root .tn-heading {
flex: 1;
text-align: center;
padding-right: 64px;
font-size: clamp(18px, 2.5vw, 24px);
font-weight: 700;
letter-spacing: -0.4px;
overflow-wrap: anywhere;
}

/* CONTENT AREA */

#teacher-notif-root .tn-content {
flex: 1;
width: 100%;
min-height: 0;
padding: 24px;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-width: thin;
scrollbar-color: #344b70 #09103f;
}

#teacher-notif-root .tn-content::-webkit-scrollbar {
width: 7px;
}

#teacher-notif-root .tn-content::-webkit-scrollbar-track {
background: #09103f;
}

#teacher-notif-root .tn-content::-webkit-scrollbar-thumb {
background: #344b70;
border-radius: 10px;
}

/* NOTIFICATION CARD */

#teacher-notif-root .tn-card {
width: 100%;
max-width: 900px;
margin: 0 auto 16px;
padding: 20px;
background: #101b50;
border: 1px solid rgba(148, 163, 184, 0.2);
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
overflow-wrap: anywhere;
animation: tn-card-enter 0.25s ease both;
}

#teacher-notif-root .tn-card:last-child {
margin-bottom: 0;
}

@keyframes tn-card-enter {
from {
opacity: 0;
transform: translateY(6px);
}

to {
    opacity: 1;
    transform: translateY(0);
}

}

/* CARD HEADER */

#teacher-notif-root .tn-card-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 14px;
}

#teacher-notif-root .tn-type {
display: inline-flex;
align-items: center;
max-width: 100%;
padding: 5px 10px;
border: 1px solid rgba(96, 165, 250, 0.25);
border-radius: 6px;
background: rgba(59, 130, 246, 0.12);
color: #93c5fd;
font-size: 12px;
font-weight: 700;
text-transform: capitalize;
overflow-wrap: anywhere;
}

#teacher-notif-root .tn-date {
color: #a5b4cc;
font-size: 12px;
line-height: 1.5;
}

/* CARD BODY */

#teacher-notif-root .tn-card-title {
margin: 0 0 10px;
color: #f8fafc;
font-size: 17px;
font-weight: 700;
line-height: 1.5;
}

#teacher-notif-root .tn-message {
margin: 0;
color: #cbd5e1;
font-size: 14px;
line-height: 1.8;
white-space: pre-wrap;
overflow-wrap: anywhere;
}

/* CARD FOOTER */

#teacher-notif-root .tn-card-footer {
display: flex;
justify-content: flex-end;
align-items: center;
margin-top: 18px;
padding-top: 14px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#teacher-notif-root .tn-delete-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
min-height: 36px;
padding: 8px 12px;
border: 1px solid rgba(248, 113, 113, 0.35);
border-radius: 7px;
background: rgba(127, 29, 29, 0.18);
color: #fca5a5;
font: inherit;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition:
background 0.2s ease,
border-color 0.2s ease,
color 0.2s ease;
}

#teacher-notif-root .tn-delete-btn span:first-child {
font-size: 19px;
line-height: 1;
}

#teacher-notif-root .tn-delete-btn:hover:not(:disabled) {
background: rgba(220, 38, 38, 0.2);
border-color: rgba(248, 113, 113, 0.7);
color: #fecaca;
}

#teacher-notif-root .tn-delete-btn:disabled {
opacity: 0.55;
cursor: wait;
}

#teacher-notif-root .tn-delete-btn:focus-visible,
#teacher-notif-root .tn-back-btn:focus-visible {
outline: 2px solid #60a5fa;
outline-offset: 3px;
}

#teacher-notif-root .tn-deleting {
pointer-events: none;
}

/* EMPTY STATE */

#teacher-notif-root .tn-empty {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 220px;
padding: 30px 20px;
color: #a5b4cc;
font-size: 15px;
text-align: center;
line-height: 1.7;
}

/* RESPONSIVE LAYOUT */

@media (min-width: 900px) {
#teacher-notif-root .tn-content {
padding: 30px;
}

#teacher-notif-root .tn-card {
    padding: 24px;
}

}

@media (max-width: 600px) {
#teacher-notif-root .tn-topbar {
min-height: 60px;
gap: 10px;
padding: 12px;
}

#teacher-notif-root .tn-back-btn {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
}

#teacher-notif-root .tn-heading {
    padding-right: 0;
    font-size: 17px;
    text-align: right;
}

#teacher-notif-root .tn-content {
    padding: 14px 12px;
}

#teacher-notif-root .tn-card {
    margin-bottom: 12px;
    padding: 15px;
    border-radius: 10px;
}

#teacher-notif-root .tn-card-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

#teacher-notif-root .tn-card-title {
    font-size: 15px;
}

#teacher-notif-root .tn-message {
    font-size: 13px;
}

#teacher-notif-root .tn-date {
    font-size: 11px;
}

}

@media (prefers-reduced-motion: reduce) {
#teacher-notif-root .tn-card {
animation: none;
}

#teacher-notif-root .tn-back-btn,
#teacher-notif-root .tn-delete-btn {
    transition: none;
}

}