: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,
input,
select,
textarea {
    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,
.teacher-card strong,
.teacher-card 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;
}

.teacher-card {
    margin: 18px 15px 10px;
    padding: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--acadify-light);
    border: 1px solid #dce3f3;
    border-radius: 12px;
}

.teacher-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--acadify);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}

.teacher-card strong {
    font-size: .76rem;
}

.teacher-card span {
    color: var(--muted);
    font-size: .62rem;
}

.sidebar-nav {
    padding: 10px 12px 25px;
    flex: 1;
}

.nav-title {
    display: block;
    padding-left: 8px;
    margin-bottom: 8px;
    color: #9aa3b4;
    font-size: .61rem;
    letter-spacing: .1em;
    font-weight: 800;
}

.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: 14px;
    border-top: 1px solid var(--border);
}

.school-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.school-mini>i {
    width: 35px;
    height: 35px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f8;
    color: var(--acadify);
}

.school-mini strong,
.school-mini span {
    display: block;
}

.school-mini strong {
    font-size: .68rem;
}

.school-mini span {
    font-size: .58rem;
    color: var(--muted);
}

/* 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;
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 9px;
}

.small-avatar {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
}

.topbar-profile strong,
.topbar-profile span {
    display: block;
}

.topbar-profile strong {
    font-size: .73rem;
}

.topbar-profile span {
    font-size: .62rem;
    color: var(--muted);
}

.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;
}

.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;
}

.welcome-section p,
.page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.current-class {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    min-width: 230px;
    background: var(--success-light);
    border: 1px solid #c9eedf;
    border-radius: 12px;
}

.live-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(23, 166, 115, .12);
}

.current-class small,
.current-class strong,
.current-class span {
    display: block;
}

.current-class small {
    color: #57917d;
    font-size: .53rem;
    font-weight: 800;
}

.current-class strong {
    color: #157555;
    font-size: .76rem;
}

.current-class span {
    color: #6a887e;
    font-size: .61rem;
}

/* SUMMARY */

.summary-card,
.content-card,
.toolbar-card {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.summary-card {
    height: 100%;
    text-align: left;
    padding: 17px;
    transition: .2s;
}

.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.groups {
    background: var(--acadify-light);
    color: var(--acadify);
}

.summary-icon.attendance {
    background: var(--success-light);
    color: var(--success);
}

.summary-icon.grades {
    background: #f3efff;
    color: #7559ce;
}

.summary-icon.activities {
    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;
}

.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 {
    border: 0;
    background: transparent;
    color: var(--acadify);
    font-size: .7rem;
    font-weight: 700;
}

/* TODAY */

.class-row {
    display: grid;
    grid-template-columns: 60px 4px 1fr auto;
    gap: 15px;
    align-items: center;
    min-height: 72px;
    border-top: 1px solid var(--border);
}

.class-row:first-child {
    border-top: 0;
}

.class-time strong,
.class-time span {
    display: block;
}

.class-time strong {
    color: var(--acadify-deep);
    font-size: .82rem;
}

.class-time span {
    color: var(--muted);
    font-size: .55rem;
}

.class-line {
    width: 4px;
    height: 38px;
    border-radius: 5px;
    background: #dfe4ef;
}

.class-row.completed .class-line {
    background: var(--success);
}

.class-row.next .class-line {
    background: var(--acadify);
}

.class-info strong,
.class-info span {
    display: block;
}

.class-info strong {
    font-size: .76rem;
}

.class-info span {
    color: var(--muted);
    font-size: .62rem;
}

.class-status {
    color: var(--muted);
    font-size: .62rem;
}

.class-status.done {
    color: var(--success);
}

.class-action {
    border: 0;
    background: var(--acadify-light);
    color: var(--acadify);
    border-radius: 8px;
    padding: 8px 11px;
    font-size: .62rem;
    font-weight: 700;
}

/* TODO */

.todo-list button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border: 0;
    border-top: 1px solid var(--border);
    background: transparent;
    text-align: left;
}

.todo-list button:first-child {
    border-top: 0;
}

.todo-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.todo-icon.grade {
    background: #f3efff;
    color: #7559ce;
}

.todo-icon.attendance {
    background: var(--success-light);
    color: var(--success);
}

.todo-list button>div:nth-child(2) {
    flex: 1;
}

.todo-list strong,
.todo-list span {
    display: block;
}

.todo-list strong {
    font-size: .7rem;
}

.todo-list span {
    color: var(--muted);
    font-size: .59rem;
}

.todo-count {
    width: 25px;
    height: 25px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--danger-light);
    color: var(--danger) !important;
    border-radius: 50%;
    font-weight: 700;
}

.event-row {
    display: flex;
    gap: 11px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.event-row:first-of-type {
    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;
}

.event-row>div:last-child strong,
.event-row>div:last-child span {
    display: block;
}

.event-row>div:last-child strong {
    font-size: .72rem;
}

.event-row>div:last-child span {
    color: var(--muted);
    font-size: .62rem;
}

/* GROUPS */

.group-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: .2s;
}

.group-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(30, 45, 80, .07);
}

.group-card-top {
    height: 7px;
    background: var(--acadify);
}

.group-card-body {
    padding: 20px;
}

.group-card-header {
    display: flex;
    justify-content: space-between;
}

.group-card h3 {
    margin: 0;
    color: var(--acadify-deep);
    font-size: 1.15rem;
}

.group-card p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .67rem;
}

.group-number {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--acadify-light);
    color: var(--acadify);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.group-stats {
    display: flex;
    margin: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.group-stats div {
    flex: 1;
    padding: 12px 5px;
}

.group-stats div+div {
    border-left: 1px solid var(--border);
    padding-left: 15px;
}

.group-stats strong,
.group-stats span {
    display: block;
}

.group-stats strong {
    color: var(--acadify-deep);
    font-size: .9rem;
}

.group-stats span {
    color: var(--muted);
    font-size: .57rem;
}

.group-actions {
    display: flex;
    gap: 7px;
}

.group-actions button {
    flex: 1;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    color: var(--acadify);
    font-size: .61rem;
    font-weight: 700;
}

/* ATTENDANCE */

.group-selector {
    min-width: 220px;
}

.group-selector small {
    display: block;
    color: var(--muted);
    font-size: .56rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.group-selector select {
    font-size: .72rem;
}

.attendance-summary {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
}

.attendance-summary>div {
    min-width: 100px;
    border-right: 1px solid var(--border);
    margin-right: 20px;
}

.attendance-summary strong,
.attendance-summary span {
    display: block;
}

.attendance-summary strong {
    font-size: 1.3rem;
    color: var(--acadify-deep);
}

.attendance-summary span {
    color: var(--muted);
    font-size: .59rem;
}

.attendance-summary button {
    margin-left: auto;
    border: 0;
    border-radius: 8px;
    padding: 9px 13px;
    background: var(--success-light);
    color: var(--success);
    font-size: .64rem;
    font-weight: 700;
}

.attendance-date {
    color: var(--muted) !important;
    letter-spacing: 0 !important;
    font-weight: 500 !important;
}

.student-attendance-row {
    display: grid;
    grid-template-columns: 45px 1fr auto;
    gap: 11px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.student-attendance-row:first-child {
    border-top: 0;
}

.student-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eef1f7;
    color: #61708c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 800;
}

.student-info strong,
.student-info span {
    display: block;
}

.student-info strong {
    font-size: .72rem;
}

.student-info span {
    color: var(--muted);
    font-size: .59rem;
}

.attendance-options {
    display: flex;
    gap: 6px;
}

.attendance-option {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    border-radius: 7px;
    padding: 7px 10px;
    font-size: .6rem;
}

.attendance-option.present.active {
    background: var(--success-light);
    border-color: #bfe8d8;
    color: var(--success);
}

.attendance-option.late.active {
    background: var(--warning-light);
    border-color: #f1d89d;
    color: var(--warning);
}

.attendance-option.absent.active {
    background: var(--danger-light);
    border-color: #f3c5c8;
    color: var(--danger);
}

.attendance-footer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.attendance-footer>span {
    color: var(--muted);
    font-size: .62rem;
}

/* BUTTONS */

.primary-button,
.secondary-button {
    border: 0;
    border-radius: 9px;
    padding: 10px 15px;
    font-size: .68rem;
    font-weight: 700;
}

.primary-button {
    background: var(--acadify);
    color: #fff;
}

.primary-button:hover {
    background: var(--acadify-dark);
}

.secondary-button {
    background: #f0f2f7;
    color: var(--muted);
}

/* GRADES */

.toolbar-card {
    padding: 16px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.toolbar-card label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: .58rem;
    font-weight: 700;
}

.toolbar-card select {
    font-size: .7rem;
}

.grade-status span {
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0;
}

.grade-student-row {
    display: grid;
    grid-template-columns: 45px 1fr 120px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.grade-student-row:first-child {
    border-top: 0;
}

.grade-input {
    text-align: center;
    font-weight: 800;
}

/* 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-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-tag {
    padding: 5px 9px;
    border-radius: 20px;
    background: var(--acadify-light);
    color: var(--acadify);
    font-size: .59rem;
    font-weight: 700;
}

.activity-card h5 {
    font-size: .86rem;
    margin: 15px 0 5px;
}

.activity-card p {
    min-height: 40px;
    color: var(--muted);
    font-size: .67rem;
}

.activity-stats {
    display: flex;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    gap: 18px;
}

.activity-stats strong,
.activity-stats span {
    display: block;
}

.activity-stats strong {
    font-size: .78rem;
    color: var(--acadify-deep);
}

.activity-stats span {
    font-size: .56rem;
    color: var(--muted);
}

/* 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;
}

/* STUDENTS */

.students-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3b4;
}

.search-box input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 10px 12px 10px 36px;
    font-size: .7rem;
}

.students-toolbar select {
    max-width: 180px;
    font-size: .7rem;
}

.student-directory-row {
    display: grid;
    grid-template-columns: 45px 1fr 130px 100px 35px;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-top: 1px solid var(--border);
}

.student-directory-row:first-child {
    border-top: 0;
}

.student-directory-row strong,
.student-directory-row span {
    display: block;
}

.student-directory-row strong {
    font-size: .71rem;
}

.student-directory-row span {
    color: var(--muted);
    font-size: .59rem;
}

.student-average {
    color: var(--acadify) !important;
    font-weight: 800;
}

.student-directory-row button {
    width: 33px;
    height: 33px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--acadify);
    border-radius: 8px;
}

/* COMMUNICATION */

.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 small {
    color: var(--acadify);
    font-size: .59rem;
    font-weight: 700;
}

.announcement-card h5 {
    font-size: .84rem;
    margin: 4px 0;
}

.announcement-card p {
    margin: 0;
    color: var(--muted);
    font-size: .68rem;
}

/* 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;
}

/* MODAL */

.acadify-modal {
    border: 0;
    border-radius: 16px;
}

.acadify-modal .modal-header {
    border-bottom: 1px solid var(--border);
}

.acadify-modal .modal-header span {
    color: var(--acadify);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.acadify-modal .modal-title {
    font-size: 1.05rem;
}

.acadify-modal label {
    color: var(--muted);
    font-size: .64rem;
    font-weight: 700;
}

/* TOAST */

.demo-toast {
    position: fixed;
    right: 25px;
    bottom: -100px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(20, 35, 70, .15);
    transition: .3s;
}

.demo-toast.active {
    bottom: 25px;
}

.demo-toast>i {
    color: var(--success);
    font-size: 1.3rem;
}

.demo-toast strong,
.demo-toast span {
    display: block;
}

.demo-toast strong {
    font-size: .7rem;
}

.demo-toast span {
    color: var(--muted);
    font-size: .59rem;
}

.sidebar-overlay {
    display: none;
}

.student-justification {
    display: flex;
    align-items: center;
    gap: 5px;
    width: max-content;
    margin-top: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--warning);
    font-size: .58rem;
    font-weight: 700;
}

.student-justification:hover {
    text-decoration: underline;
}

.justification-pending {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
    padding: 12px;
    border-radius: 10px;
    background: var(--warning-light);
    color: var(--warning);
}

.justification-pending>i {
    font-size: 1.2rem;
}

.justification-pending strong,
.justification-pending span {
    display: block;
}

.justification-pending strong {
    font-size: .7rem;
}

.justification-pending span {
    margin-top: 2px;
    color: #92723e;
    font-size: .59rem;
}

.justification-detail {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.justification-detail>span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.justification-detail>strong {
    color: var(--acadify-deep);
    font-size: .75rem;
}

.justification-detail p {
    margin: 0;
    color: #586276;
    font-size: .68rem;
    line-height: 1.6;
}

.justification-document {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    text-align: left;
}

.justification-document>i:first-child {
    color: var(--danger);
    font-size: 1.25rem;
}

.justification-document>i:last-child {
    margin-left: auto;
    color: var(--acadify);
}

.justification-document strong,
.justification-document span {
    display: block;
}

.justification-document strong {
    font-size: .65rem;
}

.justification-document span {
    color: var(--muted);
    font-size: .55rem;
}

.justification-sender {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
}

.justification-sender strong,
.justification-sender span {
    display: block;
}

.justification-sender strong {
    font-size: .65rem;
}

.justification-sender span {
    color: var(--muted);
    font-size: .56rem;
}

/* 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 {
        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;
    }

    .current-class,
    .group-selector {
        width: 100%;
    }

    .summary-card {
        padding: 14px;
    }

    .content-card {
        padding: 16px;
    }

    .class-row {
        grid-template-columns: 45px 3px 1fr;
        gap: 10px;
        padding: 9px 0;
    }

    .class-action,
    .class-status {
        grid-column: 3;
        justify-self: start;
    }

    .attendance-summary {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .attendance-summary>div {
        min-width: 0;
        margin: 0;
        border-right: 0;
    }

    .attendance-summary button {
        grid-column: 1/-1;
        width: 100%;
    }

    .student-attendance-row {
        grid-template-columns: 38px 1fr;
    }

    .attendance-options {
        grid-column: 1/-1;
    }

    .attendance-option {
        flex: 1;
    }

    .attendance-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .attendance-footer .primary-button {
        width: 100%;
    }

    .toolbar-card {
        grid-template-columns: 1fr;
    }

    .grade-student-row {
        grid-template-columns: 38px 1fr 75px;
    }

    .students-toolbar {
        flex-direction: column;
    }

    .students-toolbar select {
        max-width: none;
    }

    .student-directory-row {
        grid-template-columns: 38px 1fr 35px;
    }

    .student-directory-row>div:nth-child(3),
    .student-directory-row>div:nth-child(4) {
        display: none;
    }

    .demo-toast {
        left: 14px;
        right: 14px;
        min-width: 0;
    }
}