:root {
    --acadify: #3157d5;
    --acadify-dark: #1c3ba0;
    --acadify-deep: #0d1b43;
    --acadify-light: #eef3ff;
    --background: #f6f8fc;
    --text: #182238;
    --muted: #697386;
    --border: #e5e9f2;
    --success: #17a673;
    --success-light: #eaf9f3;
    --danger: #df5b64;
    --danger-light: #fff0f1;
    --warning: #e7a33c;
    --warning-light: #fff7e8;
    --sidebar: 265px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--background);
    color: var(--text);
}

button {
    font-family: inherit;
}

.demo-notice {
    height: 34px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--acadify-deep);
    color: #d9e1f5;
    font-size: .72rem;
}

.demo-notice .container-fluid {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.demo-notice i {
    color: #8da6ff;
}

.demo-notice a {
    color: #fff;
    text-decoration: none;
    margin-left: 12px;
    font-weight: 600;
}

/* SIDEBAR */

.sidebar {
    position: fixed;
    left: 0;
    top: 34px;
    bottom: 0;
    width: var(--sidebar);
    background: #fff;
    border-right: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-brand {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px;
    border-bottom: 1px solid var(--border);
}

.brand-mark {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-brand strong,
.sidebar-brand span {
    display: block;
}

.sidebar-brand strong {
    color: var(--acadify-deep);
    font-size: 1.05rem;
}

.sidebar-brand span {
    color: var(--muted);
    font-size: .68rem;
}

.sidebar-close {
    margin-left: auto;
    border: 0;
    background: transparent;
}

.sidebar-student {
    padding: 20px 16px 10px;
}

.sidebar-student>small,
.nav-title {
    display: block;
    padding-left: 8px;
    margin-bottom: 8px;
    color: #9aa3b4;
    font-size: .61rem;
    letter-spacing: .1em;
    font-weight: 800;
}

.student-selector {
    width: 100%;
    border: 1px solid #dce3f3;
    background: var(--acadify-light);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    text-align: left;
}

.student-avatar,
.student-mini-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--acadify);
    color: #fff;
    font-weight: 700;
}

.student-selector-info {
    min-width: 0;
}

.student-selector-info strong,
.student-selector-info span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.student-selector-info strong {
    font-size: .77rem;
}

.student-selector-info span {
    color: var(--muted);
    font-size: .65rem;
}

.student-dropdown {
    width: 235px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: 0 15px 40px rgba(25, 40, 75, .14);
}

.student-option {
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

.student-option>span:nth-child(2) {
    flex: 1;
}

.student-option strong,
.student-option small {
    display: block;
    font-size: .72rem;
}

.student-option small {
    color: var(--muted);
    font-size: .62rem;
}

.student-option .bi-check-lg {
    visibility: hidden;
    color: var(--acadify);
}

.student-option.active .bi-check-lg {
    visibility: visible;
}

.student-mini-avatar {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
    font-size: .75rem;
}

.student-mini-avatar.mateo {
    background: #13a078;
}

.sidebar-nav {
    padding: 10px 12px 25px;
    flex: 1;
}

.nav-item {
    width: 100%;
    position: relative;
    border: 0;
    background: transparent;
    color: #5c6679;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 2px 0;
    border-radius: 9px;
    font-size: .79rem;
    text-align: left;
    transition: .18s;
}

.nav-item i {
    width: 18px;
    color: #7e899e;
    font-size: .95rem;
}

.nav-item:hover {
    background: #f4f6fb;
    color: var(--acadify);
}

.nav-item.active {
    background: var(--acadify-light);
    color: var(--acadify);
    font-weight: 700;
}

.nav-item.active i {
    color: var(--acadify);
}

.nav-badge {
    margin-left: auto;
    background: var(--acadify);
    color: #fff;
    min-width: 20px;
    height: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .61rem;
}

.nav-dot {
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--danger);
}

.sidebar-bottom {
    padding: 13px;
    border-top: 1px solid var(--border);
}

.family-user,
.topbar-profile {
    display: flex;
    align-items: center;
    gap: 9px;
}

.family-avatar {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    border-radius: 50%;
    background: #e9edfa;
    color: var(--acadify);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
}

.family-user strong,
.family-user span,
.topbar-profile strong,
.topbar-profile span {
    display: block;
}

.family-user strong,
.topbar-profile strong {
    font-size: .73rem;
}

.family-user span,
.topbar-profile span {
    color: var(--muted);
    font-size: .62rem;
}

/* MAIN */

.main-content {
    min-height: 100vh;
    margin-left: var(--sidebar);
    padding-top: 34px;
}

.topbar {
    height: 76px;
    position: sticky;
    top: 34px;
    z-index: 900;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar small {
    color: var(--muted);
    font-size: .65rem;
}

.topbar h5 {
    color: var(--acadify-deep);
    font-size: .98rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-button,
.mobile-menu {
    position: relative;
    width: 39px;
    height: 39px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: #5f697c;
}

.notification-count {
    position: absolute;
    right: -4px;
    top: -5px;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--danger);
    color: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: .5rem;
    font-weight: 700;
}

.content-wrapper {
    max-width: 1500px;
    margin: 0 auto;
    padding: 34px;
}

.app-view {
    display: none;
}

.app-view.active {
    display: block;
    animation: viewIn .25s ease;
}

@keyframes viewIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HEADINGS */

.welcome-section,
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 28px;
}

.welcome-kicker,
.page-kicker {
    color: var(--acadify);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .11em;
}

.welcome-section h1,
.page-heading h1 {
    color: var(--acadify-deep);
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    letter-spacing: -.035em;
    font-weight: 800;
    margin: 5px 0 5px;
}

.welcome-section h1 span {
    color: var(--acadify);
}

.welcome-section p,
.page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.school-status,
.access-current-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    background: var(--success-light);
    border: 1px solid #c9eedf;
    border-radius: 11px;
    min-width: 170px;
}

.status-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(23, 166, 115, .12);
}

.school-status strong,
.school-status small,
.access-current-status strong,
.access-current-status small {
    display: block;
}

.school-status strong,
.access-current-status strong {
    color: #157555;
    font-size: .75rem;
}

.school-status small,
.access-current-status small {
    color: #6a887e;
    font-size: .59rem;
}

/* CARDS */

.summary-card,
.content-card,
.metric-card {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.summary-card {
    height: 100%;
    text-align: left;
    padding: 17px;
    transition: .2s ease;
}

.summary-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5ee;
    box-shadow: 0 10px 25px rgba(31, 48, 85, .07);
}

.summary-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 17px;
}

.summary-icon.access {
    background: var(--success-light);
    color: var(--success);
}

.summary-icon.attendance {
    background: #eef3ff;
    color: var(--acadify);
}

.summary-icon.grades {
    background: #f3efff;
    color: #7559ce;
}

.summary-icon.tasks {
    background: var(--warning-light);
    color: var(--warning);
}

.summary-card>span,
.summary-card>strong,
.summary-card>small {
    display: block;
}

.summary-card>span {
    color: var(--muted);
    font-size: .68rem;
}

.summary-card>strong {
    color: var(--acadify-deep);
    font-size: 1.5rem;
    margin: 3px 0;
}

.summary-card>small {
    color: var(--muted);
    font-size: .62rem;
}

.summary-card>small i {
    color: var(--success);
}

.content-card {
    padding: 23px;
}

.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-heading span {
    color: var(--acadify);
    font-size: .59rem;
    letter-spacing: .09em;
    font-weight: 800;
}

.card-heading h4 {
    margin: 2px 0 0;
    color: var(--acadify-deep);
    font-size: 1.05rem;
    font-weight: 750;
}

.link-button,
.icon-button {
    border: 0;
    background: transparent;
    color: var(--acadify);
    font-size: .7rem;
    font-weight: 700;
}

.icon-button {
    width: 31px;
    height: 31px;
    border-radius: 8px;
    background: var(--acadify-light);
}

/* TIMELINE */

.timeline-item {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 0 0 24px;
}

.timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 41px;
    bottom: 3px;
    width: 1px;
    background: var(--border);
}

.timeline-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-icon.access {
    background: var(--success-light);
    color: var(--success);
}

.timeline-icon.attendance {
    background: var(--acadify-light);
    color: var(--acadify);
}

.timeline-icon.grade {
    background: #f3efff;
    color: #7559ce;
}

.timeline-icon.announcement {
    background: var(--warning-light);
    color: var(--warning);
}

.timeline-icon.exit {
    background: #edf7ff;
    color: #3289c7;
}

.timeline-content {
    flex: 1;
    padding-top: 1px;
}

.timeline-content strong {
    display: block;
    font-size: .79rem;
}

.timeline-content p {
    color: var(--muted);
    font-size: .7rem;
    margin: 3px 0 0;
}

.timeline-time {
    color: #919aaa;
    font-size: .65rem;
}

/* UPCOMING */

.upcoming-item {
    display: flex;
    gap: 11px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.upcoming-item:first-child {
    border-top: 0;
}

.event-date {
    width: 42px;
    height: 45px;
    flex: 0 0 42px;
    border-radius: 9px;
    background: var(--acadify-light);
    color: var(--acadify);
    text-align: center;
    padding-top: 5px;
}

.event-date strong,
.event-date span {
    display: block;
}

.event-date strong {
    font-size: .95rem;
}

.event-date span {
    font-size: .52rem;
    font-weight: 800;
}

.upcoming-item>div:last-child strong,
.upcoming-item>div:last-child span {
    display: block;
}

.upcoming-item>div:last-child strong {
    font-size: .72rem;
}

.upcoming-item>div:last-child span {
    color: var(--muted);
    font-size: .62rem;
}

.announcement-preview {
    padding: 15px;
    border-radius: 11px;
    background: #f8f9fc;
}

.announcement-preview span {
    color: var(--acadify);
    font-size: .61rem;
    font-weight: 700;
}

.announcement-preview h6 {
    margin: 5px 0;
    font-size: .78rem;
}

.announcement-preview p {
    margin: 0;
    color: var(--muted);
    font-size: .68rem;
}

/* ACCESS */

.access-highlight {
    text-align: center;
    background: linear-gradient(160deg, #fff 40%, #f1fbf7);
}

.access-highlight>span {
    color: var(--muted);
    font-size: .62rem;
    font-weight: 800;
}

.access-big-icon {
    width: 72px;
    height: 72px;
    margin: 22px auto;
    border-radius: 22px;
    background: var(--success-light);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.access-highlight h3 {
    font-size: 1rem;
}

.access-highlight>strong {
    display: block;
    color: var(--acadify-deep);
    font-size: 2.2rem;
}

.access-highlight p {
    color: var(--muted);
    font-size: .75rem;
}

.access-confirmation {
    margin-top: 20px;
    padding: 10px;
    border-radius: 9px;
    background: #fff;
    color: var(--success);
    font-size: .68rem;
}

.period-select {
    width: auto;
    border-color: var(--border);
    font-size: .68rem;
}

.access-history-item {
    display: grid;
    grid-template-columns: 80px 42px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid var(--border);
}

.access-history-item:first-child {
    border-top: 0;
}

.access-history-date strong,
.access-history-date span {
    display: block;
}

.access-history-date strong {
    font-size: .72rem;
}

.access-history-date span {
    color: var(--muted);
    font-size: .61rem;
}

.access-history-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.access-history-icon.in {
    background: var(--success-light);
    color: var(--success);
}

.access-history-icon.out {
    background: #edf7ff;
    color: #3289c7;
}

.access-history-info strong,
.access-history-info span {
    display: block;
}

.access-history-info strong {
    font-size: .73rem;
}

.access-history-info span {
    color: var(--muted);
    font-size: .63rem;
}

.access-history-time {
    font-weight: 700;
    font-size: .75rem;
}

/* METRICS */

.metric-card {
    padding: 20px;
}

.metric-card span,
.metric-card strong,
.metric-card small {
    display: block;
}

.metric-card span {
    color: var(--muted);
    font-size: .68rem;
}

.metric-card strong {
    color: var(--acadify-deep);
    font-size: 1.7rem;
    margin: 4px 0;
}

.metric-card small {
    color: #929aaa;
    font-size: .61rem;
}

/* ATTENDANCE CALENDAR */

.attendance-legend {
    display: flex;
    gap: 13px;
    color: var(--muted);
    font-size: .62rem;
}

.attendance-legend i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.attendance-legend .present {
    background: var(--success);
}

.attendance-legend .late {
    background: var(--warning);
}

.attendance-legend .absent {
    background: var(--danger);
}

.attendance-calendar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.attendance-day {
    min-height: 80px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.attendance-day strong,
.attendance-day span {
    display: block;
}

.attendance-day strong {
    font-size: .75rem;
}

.attendance-day span {
    margin-top: 20px;
    font-size: .61rem;
    font-weight: 700;
}

.attendance-day.present {
    background: #f5fcf9;
}

.attendance-day.present span {
    color: var(--success);
}

.attendance-day.late {
    background: #fffaf0;
}

.attendance-day.late span {
    color: var(--warning);
}

.attendance-day.absent {
    background: #fff5f5;
}

.attendance-day.absent span {
    color: var(--danger);
}

/* GRADES */

.average-highlight {
    padding: 12px 18px;
    background: var(--acadify-deep);
    color: #fff;
    border-radius: 12px;
    text-align: center;
}

.average-highlight small,
.average-highlight strong {
    display: block;
}

.average-highlight small {
    opacity: .7;
    font-size: .55rem;
}

.average-highlight strong {
    font-size: 1.7rem;
}

.grade-row {
    display: grid;
    grid-template-columns: 1fr 120px 100px;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--border);
}

.grade-row:first-child {
    border-top: 0;
}

.grade-subject {
    display: flex;
    align-items: center;
    gap: 11px;
}

.subject-icon {
    width: 39px;
    height: 39px;
    border-radius: 10px;
    background: var(--acadify-light);
    color: var(--acadify);
    display: flex;
    align-items: center;
    justify-content: center;
}

.grade-subject strong,
.grade-subject span {
    display: block;
}

.grade-subject strong {
    font-size: .76rem;
}

.grade-subject span {
    color: var(--muted);
    font-size: .62rem;
}

.grade-progress {
    height: 6px;
    border-radius: 10px;
    background: #edf0f5;
    overflow: hidden;
}

.grade-progress span {
    display: block;
    height: 100%;
    background: var(--acadify);
    border-radius: inherit;
}

.grade-value {
    text-align: right;
    color: var(--acadify-deep);
    font-size: 1.15rem;
    font-weight: 800;
}

/* SCHEDULE */

.schedule-wrapper {
    overflow-x: auto;
}

.schedule-grid {
    min-width: 850px;
    display: grid;
    grid-template-columns: 80px repeat(5, 1fr);
}

.schedule-cell {
    min-height: 75px;
    padding: 9px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.schedule-cell.header {
    min-height: auto;
    color: var(--muted);
    font-size: .67rem;
    font-weight: 700;
    text-align: center;
}

.schedule-cell.time {
    color: var(--muted);
    font-size: .65rem;
}

.schedule-class {
    height: 100%;
    border-radius: 8px;
    background: var(--acadify-light);
    padding: 8px;
}

.schedule-class strong,
.schedule-class span {
    display: block;
}

.schedule-class strong {
    color: var(--acadify-deep);
    font-size: .68rem;
}

.schedule-class span {
    color: var(--muted);
    font-size: .57rem;
}

/* ACTIVITIES */

.filter-pills {
    display: flex;
    gap: 7px;
}

.filter-pills button {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 20px;
    padding: 7px 15px;
    color: var(--muted);
    font-size: .68rem;
}

.filter-pills button.active {
    background: var(--acadify);
    border-color: var(--acadify);
    color: #fff;
}

.activity-card {
    height: 100%;
    padding: 19px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.activity-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subject-tag {
    padding: 5px 9px;
    background: var(--acadify-light);
    color: var(--acadify);
    border-radius: 20px;
    font-size: .59rem;
    font-weight: 700;
}

.activity-card h5 {
    font-size: .88rem;
    margin: 16px 0 6px;
}

.activity-card p {
    color: var(--muted);
    font-size: .68rem;
    min-height: 40px;
}

.activity-deadline {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .62rem;
}

.activity-deadline i {
    color: var(--warning);
}

/* ANNOUNCEMENTS */

.announcement-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
}

.announcement-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: var(--acadify-light);
    color: var(--acadify);
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-card-content {
    flex: 1;
}

.announcement-card-content small {
    color: var(--acadify);
    font-size: .6rem;
    font-weight: 700;
}

.announcement-card-content h5 {
    margin: 4px 0;
    font-size: .85rem;
}

.announcement-card-content p {
    color: var(--muted);
    font-size: .69rem;
    margin: 0;
}

/* CALENDAR */

.calendar-card {
    height: 100%;
    display: flex;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.calendar-date {
    width: 52px;
    height: 58px;
    flex: 0 0 52px;
    border-radius: 11px;
    background: var(--acadify-light);
    color: var(--acadify);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.calendar-date strong {
    font-size: 1.15rem;
}

.calendar-date span {
    font-size: .56rem;
    font-weight: 800;
}

.calendar-card h5 {
    font-size: .8rem;
    margin: 4px 0;
}

.calendar-card p {
    color: var(--muted);
    font-size: .65rem;
    margin: 0;
}

/* DOCUMENTS */

.document-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.document-row:first-child {
    border-top: 0;
}

.document-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff0f1;
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-info {
    flex: 1;
}

.document-info strong,
.document-info span {
    display: block;
}

.document-info strong {
    font-size: .73rem;
}

.document-info span {
    color: var(--muted);
    font-size: .61rem;
}

.document-row button {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--acadify);
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

/* NOTIFICATIONS */

.notification-panel {
    position: fixed;
    right: -390px;
    top: 34px;
    bottom: 0;
    width: 370px;
    max-width: 100%;
    background: #fff;
    z-index: 1200;
    box-shadow: -15px 0 50px rgba(20, 35, 70, .15);
    transition: right .3s ease;
}

.notification-panel.active {
    right: 0;
}

.notification-header {
    height: 76px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.notification-header span {
    color: var(--acadify);
    font-size: .58rem;
    font-weight: 800;
}

.notification-header h5 {
    margin: 1px 0 0;
}

.notification-header button {
    border: 0;
    background: transparent;
}

.notification-item {
    display: flex;
    gap: 11px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.notification-item.unread {
    background: #fafbff;
}

.notification-item-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-item-icon.access {
    background: var(--success-light);
    color: var(--success);
}

.notification-item-icon.grades {
    background: #f3efff;
    color: #7559ce;
}

.notification-item-icon.announcement {
    background: var(--warning-light);
    color: var(--warning);
}

.notification-item strong,
.notification-item p,
.notification-item small {
    display: block;
}

.notification-item strong {
    font-size: .72rem;
}

.notification-item p {
    margin: 2px 0;
    color: var(--muted);
    font-size: .64rem;
}

.notification-item small {
    color: #a0a8b7;
    font-size: .57rem;
}

.sidebar-overlay {
    display: none;
}

.justification-summary {
    height: 100%;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.justification-summary span,
.justification-summary strong,
.justification-summary small {
    display: block;
}

.justification-summary>span {
    color: var(--muted);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.justification-summary strong {
    margin: 5px 0 2px;
    color: var(--acadify-deep);
    font-size: 1.5rem;
}

.justification-summary small {
    color: var(--muted);
    font-size: .61rem;
}

.justification-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.justification-row:first-child {
    border-top: 0;
}

.justification-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--acadify-light);
    color: var(--acadify);
}

.justification-data strong,
.justification-data span,
.justification-data small {
    display: block;
}

.justification-data strong {
    font-size: .72rem;
}

.justification-data span {
    margin-top: 2px;
    color: var(--muted);
    font-size: .62rem;
}

.justification-data small {
    margin-top: 4px;
    color: #929bad;
    font-size: .56rem;
}

.justification-status {
    padding: 6px 10px;
    border-radius: 20px;
    font-size: .58rem;
    font-weight: 700;
}

.justification-status.pending {
    background: var(--warning-light);
    color: var(--warning);
}

.justification-status.accepted {
    background: var(--success-light);
    color: var(--success);
}

.justification-status.rejected {
    background: var(--danger-light);
    color: var(--danger);
}

.upload-box {
    min-height: 115px;
    border: 2px dashed #d8deea;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
}

.upload-box:hover {
    border-color: var(--acadify);
    background: var(--acadify-light);
}

.upload-box i {
    color: var(--acadify);
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.upload-box strong {
    font-size: .7rem;
}

.upload-box span {
    color: var(--muted);
    font-size: .58rem;
}

.selected-file {
    margin-top: 8px;
    padding: 9px 11px;
    background: #f4f6fa;
    border-radius: 8px;
    color: var(--muted);
    font-size: .62rem;
}

.justification-info {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 9px;
    background: var(--acadify-light);
    color: #5e6d91;
    font-size: .61rem;
}

.justification-info i {
    color: var(--acadify);
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 9px;
    padding: 10px 15px;
    font-size: .68rem;
    font-weight: 700;
    transition: .2s;
}

.primary-button {
    background: var(--acadify);
    color: #fff;
}

.primary-button:hover {
    background: var(--acadify-dark);
    color: #fff;
    transform: translateY(-1px);
}

.secondary-button {
    background: #f0f2f7;
    color: var(--muted);
}

.secondary-button:hover {
    background: #e4e7ee;
    color: var(--text);
}

@media(max-width:767px) {
    .justification-row {
        grid-template-columns: 42px 1fr;
    }

    .justification-status {
        grid-column: 2;
        justify-self: start;
    }
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .3s ease;
        box-shadow: 15px 0 40px rgba(25, 40, 75, .13);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 34px 0 0;
        background: rgba(10, 20, 45, .35);
        z-index: 950;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .demo-notice {
        height: 42px;
    }

    .demo-notice .container-fluid {
        justify-content: flex-start;
        padding-left: 15px !important;
    }

    .demo-notice a {
        display: none;
    }

    .sidebar,
    .notification-panel {
        top: 42px;
    }

    .main-content {
        padding-top: 42px;
    }

    .topbar {
        top: 42px;
        height: 65px;
        padding: 0 15px;
    }

    .content-wrapper {
        padding: 22px 14px 40px;
    }

    .welcome-section,
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .welcome-section h1,
    .page-heading h1 {
        font-size: 1.85rem;
    }

    .school-status,
    .access-current-status {
        width: 100%;
    }

    .summary-card {
        padding: 14px;
    }

    .summary-card>strong {
        font-size: 1.25rem;
    }

    .content-card {
        padding: 17px;
    }

    .card-heading {
        align-items: flex-start;
    }

    .access-history-item {
        grid-template-columns: 60px 35px 1fr;
    }

    .access-history-time {
        grid-column: 3;
    }

    .attendance-calendar {
        grid-template-columns: repeat(3, 1fr);
    }

    .attendance-legend {
        display: none;
    }

    .grade-row {
        grid-template-columns: 1fr 50px;
    }

    .grade-progress {
        display: none;
    }

    .announcement-card {
        padding: 15px;
    }
}