: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: 270px;
}

* {
    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;
}

button {
    cursor: pointer;
}

.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 {
    min-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,
.school-card strong,
.school-card span {
    display: block;
}

.sidebar-brand strong {
    color: var(--acadify-deep);
    font-size: 1.05rem;
}

.sidebar-brand span {
    color: var(--muted);
    font-size: .66rem;
}

.sidebar-close {
    margin-left: auto;
    border: 0;
    background: transparent;
}

.school-card {
    margin: 18px 14px 10px;
    padding: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--acadify-light);
    border: 1px solid #dce3f3;
    border-radius: 12px;
}

.school-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--acadify);
    color: #fff;
}

.school-card strong {
    font-size: .7rem;
}

.school-card span {
    color: var(--muted);
    font-size: .58rem;
}

.sidebar-nav {
    padding: 10px 12px 25px;
    flex: 1;
}

.nav-title {
    display: block;
    padding-left: 8px;
    margin-bottom: 8px;
    color: #9aa3b4;
    font-size: .59rem;
    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: .77rem;
    text-align: left;
    transition: .18s;
}

.nav-item>i:first-child {
    width: 18px;
    color: #7e899e;
    font-size: .94rem;
}

.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:first-child {
    color: var(--acadify);
}

.nav-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--acadify);
    color: #fff;
    font-size: .57rem;
}

.nav-badge.warning {
    background: var(--warning);
}

.live-indicator {
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(23, 166, 115, .11);
}

.sidebar-bottom {
    padding: 14px;
    border-top: 1px solid var(--border);
}

.admin-mini {
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-avatar {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--acadify-deep);
    color: #fff;
    font-size: .63rem;
    font-weight: 800;
}

.admin-mini strong,
.admin-mini span {
    display: block;
}

.admin-mini strong {
    font-size: .67rem;
}

.admin-mini span {
    color: var(--muted);
    font-size: .57rem;
}

/* 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: 17px;
}

.system-status,
.access-online {
    align-items: center;
    gap: 7px;
    color: var(--success);
    font-size: .62rem;
    font-weight: 700;
}

.system-status span,
.access-online span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(23, 166, 115, .1);
}

.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;
}

.topbar-profile strong,
.topbar-profile span {
    display: block;
}

.topbar-profile strong {
    font-size: .7rem;
}

.topbar-profile span {
    color: var(--muted);
    font-size: .59rem;
}

.content-wrapper {
    max-width: 1550px;
    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: .65rem;
    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: .88rem;
}

.school-live {
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 1px solid #c9eedf;
    background: var(--success-light);
    border-radius: 12px;
}

.pulse {
    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);
}

.school-live small,
.school-live strong,
.school-live span {
    display: block;
}

.school-live small {
    color: #57917d;
    font-size: .51rem;
    font-weight: 800;
}

.school-live strong {
    color: #157555;
    font-size: .74rem;
}

.school-live span {
    color: #6a887e;
    font-size: .57rem;
}

/* COMMON */

.content-card,
.metric-card,
.academic-overview {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.content-card {
    padding: 23px;
}

.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-heading>div>span {
    color: var(--acadify);
    font-size: .57rem;
    letter-spacing: .09em;
    font-weight: 800;
}

.card-heading h4 {
    margin: 2px 0 0;
    color: var(--acadify-deep);
    font-size: 1.04rem;
    font-weight: 750;
}

.link-button {
    border: 0;
    background: transparent;
    color: var(--acadify);
    font-size: .67rem;
    font-weight: 700;
}

.primary-button,
.secondary-button,
.approve-button,
.reject-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;
}

.secondary-button {
    background: #f0f2f7;
    color: var(--muted);
}

.approve-button {
    background: var(--success);
    color: #fff;
}

.reject-button {
    background: var(--danger-light);
    color: var(--danger);
}

/* SUMMARY */

.summary-card {
    width: 100%;
    height: 100%;
    padding: 15px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: .2s;
}

.summary-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5ee;
    box-shadow: 0 10px 25px rgba(31, 48, 85, .07);
}

.summary-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    margin-bottom: 14px;
}

.summary-icon.students {
    background: var(--acadify-light);
    color: var(--acadify);
}

.summary-icon.teachers {
    background: #f3efff;
    color: #7559ce;
}

.summary-icon.attendance {
    background: var(--success-light);
    color: var(--success);
}

.summary-icon.absent {
    background: var(--danger-light);
    color: var(--danger);
}

.summary-icon.late {
    background: var(--warning-light);
    color: var(--warning);
}

.summary-icon.documents {
    background: #edf7ff;
    color: #3483bd;
}

.summary-card>span,
.summary-card>strong,
.summary-card>small {
    display: block;
}

.summary-card>span {
    color: var(--muted);
    font-size: .61rem;
}

.summary-card>strong {
    margin: 3px 0;
    color: var(--acadify-deep);
    font-size: 1.25rem;
}

.summary-card>small {
    color: var(--muted);
    font-size: .55rem;
}

/* DASHBOARD ATTENDANCE */

.group-attendance-row {
    display: grid;
    grid-template-columns: 85px 1fr 65px 75px;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.group-attendance-row:first-child {
    border-top: 0;
}

.group-name strong,
.group-name span {
    display: block;
}

.group-name strong {
    color: var(--acadify-deep);
    font-size: .71rem;
}

.group-name span {
    color: var(--muted);
    font-size: .56rem;
}

.attendance-bar {
    height: 7px;
    background: #edf0f5;
    border-radius: 10px;
    overflow: hidden;
}

.attendance-bar div {
    height: 100%;
    border-radius: 10px;
    background: var(--acadify);
}

.attendance-percent {
    color: var(--acadify-deep);
    font-size: .67rem;
    font-weight: 800;
}

.capture-status {
    padding: 5px 7px;
    border-radius: 20px;
    text-align: center;
    font-size: .53rem;
    font-weight: 700;
}

.capture-status.done {
    background: var(--success-light);
    color: var(--success);
}

.capture-status.pending {
    background: var(--warning-light);
    color: var(--warning);
}

/* OPERATIONS */

.live-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--success) !important;
    font-size: .52rem !important;
    letter-spacing: .08em !important;
}

.live-label i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

.operation-list button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border: 0;
    border-top: 1px solid var(--border);
    background: transparent;
    text-align: left;
}

.operation-list button:first-child {
    border-top: 0;
}

.operation-icon {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.operation-icon.success {
    background: var(--success-light);
    color: var(--success);
}

.operation-icon.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.operation-icon.info {
    background: var(--acadify-light);
    color: var(--acadify);
}

.operation-icon.danger {
    background: var(--danger-light);
    color: var(--danger);
}

.operation-list button>div:nth-child(2) {
    flex: 1;
}

.operation-list strong,
.operation-list span {
    display: block;
}

.operation-list strong {
    font-size: .68rem;
}

.operation-list span {
    color: var(--muted);
    font-size: .56rem;
}

.operation-list button>i:last-child {
    color: #a5adba;
    font-size: .65rem;
}

/* SMART ALERT */

.smart-alert {
    height: 100%;
    display: flex;
    gap: 16px;
    padding: 22px;
    border: 1px solid #dce3ff;
    border-radius: 15px;
    background: linear-gradient(135deg, #f0f4ff, #f8f9ff);
}

.smart-alert-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--acadify);
    color: #fff;
    box-shadow: 0 8px 20px rgba(49, 87, 213, .2);
}

.smart-alert-content>span {
    color: var(--acadify);
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.smart-alert h4 {
    margin: 6px 0;
    color: var(--acadify-deep);
    font-size: .9rem;
}

.smart-alert p {
    color: var(--muted);
    font-size: .64rem;
    margin-bottom: 10px;
}

.smart-alert button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--acadify);
    font-size: .63rem;
    font-weight: 700;
}

.capture-progress>div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.capture-progress span {
    color: var(--muted);
    font-size: .65rem;
}

.capture-progress strong {
    color: var(--acadify);
    font-size: 1rem;
}

.progress {
    height: 8px;
    margin: 10px 0;
    background: #edf0f5;
}

.progress-bar {
    background: var(--acadify);
}

.capture-progress small {
    color: var(--muted);
    font-size: .57rem;
}

/* TOOLBAR */

.table-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 17px;
}

.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;
}

.table-toolbar select {
    max-width: 190px;
    font-size: .7rem;
}

/* DIRECTORY */

.directory-row {
    display: grid;
    grid-template-columns: 42px 1.5fr .7fr .7fr .7fr 35px;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-top: 1px solid var(--border);
}

.directory-row:first-child {
    border-top: 0;
}

.person-avatar {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef1f7;
    color: #61708c;
    font-size: .61rem;
    font-weight: 800;
}

.directory-row strong,
.directory-row span {
    display: block;
}

.directory-row strong {
    font-size: .68rem;
}

.directory-row span {
    color: var(--muted);
    font-size: .56rem;
}

.directory-row>button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--acadify);
}

/* TEACHERS */

.teacher-card {
    height: 100%;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.teacher-header {
    display: flex;
    gap: 10px;
    align-items: center;
}

.teacher-avatar-large {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: var(--acadify-light);
    color: var(--acadify);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 800;
}

.teacher-header strong,
.teacher-header span {
    display: block;
}

.teacher-header strong {
    font-size: .72rem;
}

.teacher-header span {
    color: var(--muted);
    font-size: .57rem;
}

.teacher-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.teacher-stats div+div {
    border-left: 1px solid var(--border);
    padding-left: 10px;
}

.teacher-stats strong,
.teacher-stats span {
    display: block;
}

.teacher-stats strong {
    color: var(--acadify-deep);
    font-size: .78rem;
}

.teacher-stats span {
    color: var(--muted);
    font-size: .52rem;
}

/* GROUP CARDS */

.group-card {
    height: 100%;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.group-card-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.group-card h4 {
    color: var(--acadify-deep);
    font-size: .92rem;
    margin: 0;
}

.group-card p {
    color: var(--muted);
    font-size: .61rem;
    margin: 3px 0 0;
}

.group-pill {
    height: max-content;
    padding: 5px 8px;
    border-radius: 20px;
    background: var(--acadify-light);
    color: var(--acadify);
    font-size: .55rem;
    font-weight: 700;
}

.group-card-stats {
    display: flex;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid var(--border);
}

.group-card-stats div {
    flex: 1;
}

.group-card-stats strong,
.group-card-stats span {
    display: block;
}

.group-card-stats strong {
    font-size: .75rem;
}

.group-card-stats span {
    color: var(--muted);
    font-size: .52rem;
}

/* METRICS */

.metric-card {
    height: 100%;
    padding: 17px;
}

.metric-card span,
.metric-card strong,
.metric-card small {
    display: block;
}

.metric-card>span {
    color: var(--muted);
    font-size: .55rem;
    letter-spacing: .08em;
    font-weight: 800;
}

.metric-card strong {
    margin: 5px 0 2px;
    color: var(--acadify-deep);
    font-size: 1.35rem;
}

.metric-card small {
    color: var(--muted);
    font-size: .56rem;
}

.danger-text {
    color: var(--danger) !important;
}

.warning-text {
    color: var(--warning) !important;
}

.muted-text {
    color: #8993a5 !important;
}

/* ATTENDANCE VIEW */

.attendance-detail-row {
    display: grid;
    grid-template-columns: 90px 1fr 80px 80px 80px 110px;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.attendance-detail-row:first-child {
    border-top: 0;
}

.attendance-detail-row strong,
.attendance-detail-row span {
    display: block;
}

.attendance-detail-row strong {
    font-size: .68rem;
}

.attendance-detail-row span {
    color: var(--muted);
    font-size: .55rem;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--muted);
    font-size: .65rem;
}

/* JUSTIFICATIONS */

.filter-pills {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.filter-pills button {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 20px;
    padding: 7px 14px;
    color: var(--muted);
    font-size: .65rem;
}

.filter-pills button.active {
    background: var(--acadify);
    border-color: var(--acadify);
    color: #fff;
}

.filter-pills button span {
    margin-left: 4px;
    font-weight: 800;
}

.justification-card {
    display: grid;
    grid-template-columns: 45px 1fr auto;
    gap: 13px;
    align-items: center;
    margin-bottom: 10px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 13px;
}

.justification-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--acadify-light);
    color: var(--acadify);
}

.justification-card strong,
.justification-card span,
.justification-card small {
    display: block;
}

.justification-card strong {
    font-size: .7rem;
}

.justification-card span {
    color: var(--muted);
    font-size: .59rem;
}

.justification-card small {
    margin-top: 3px;
    color: #9aa3b4;
    font-size: .53rem;
}

.justification-card button {
    border: 0;
    border-radius: 8px;
    padding: 8px 11px;
    background: var(--acadify-light);
    color: var(--acadify);
    font-size: .59rem;
    font-weight: 700;
}

.status-pill {
    display: inline-block !important;
    width: max-content;
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: .52rem !important;
    font-weight: 700;
}

.status-pill.pending {
    background: var(--warning-light);
    color: var(--warning);
}

.status-pill.accepted {
    background: var(--success-light);
    color: var(--success);
}

.status-pill.rejected {
    background: var(--danger-light);
    color: var(--danger);
}

/* GRADES */

.academic-overview {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px;
    margin-bottom: 20px;
}

.academic-overview>div:first-child {
    min-width: 190px;
}

.academic-overview span,
.academic-overview strong,
.academic-overview small {
    display: block;
}

.academic-overview>div:first-child>span {
    color: var(--muted);
    font-size: .55rem;
    font-weight: 800;
}

.academic-overview strong {
    color: var(--acadify);
    font-size: 2rem;
}

.academic-overview small {
    color: var(--muted);
    font-size: .57rem;
}

.overview-progress {
    flex: 1;
}

.overview-progress>span {
    color: var(--muted);
    font-size: .58rem;
}

.grade-progress-row {
    display: grid;
    grid-template-columns: 42px 1.3fr .8fr 1fr 55px;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-top: 1px solid var(--border);
}

.grade-progress-row:first-child {
    border-top: 0;
}

.grade-progress-row strong,
.grade-progress-row span {
    display: block;
}

.grade-progress-row strong {
    font-size: .67rem;
}

.grade-progress-row span {
    color: var(--muted);
    font-size: .54rem;
}

.mini-progress {
    height: 6px;
    border-radius: 10px;
    background: #edf0f5;
    overflow: hidden;
}

.mini-progress div {
    height: 100%;
    background: var(--acadify);
}

/* ACCESS */

.access-online {
    display: flex;
    padding: 9px 12px;
    background: var(--success-light);
    border-radius: 9px;
}

.access-row {
    display: grid;
    grid-template-columns: 42px 1fr 100px 90px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.access-row:first-child {
    border-top: 0;
}

.access-row strong,
.access-row span {
    display: block;
}

.access-row strong {
    font-size: .67rem;
}

.access-row span {
    color: var(--muted);
    font-size: .54rem;
}

.access-type {
    width: max-content;
    padding: 4px 7px;
    border-radius: 20px;
    background: var(--success-light);
    color: var(--success) !important;
    font-weight: 700;
}

.inconsistency-intro {
    display: flex;
    gap: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background: var(--acadify-light);
    color: #5f6e91;
    border-radius: 9px;
    font-size: .59rem;
}

.inconsistency-intro i {
    color: var(--acadify);
}

.inconsistency-row {
    padding: 11px 0;
    border-top: 1px solid var(--border);
}

.inconsistency-row strong,
.inconsistency-row span {
    display: block;
}

.inconsistency-row strong {
    font-size: .65rem;
}

.inconsistency-row span {
    color: var(--muted);
    font-size: .54rem;
}

.inconsistency-row small {
    display: block;
    margin-top: 4px;
    color: var(--danger);
    font-size: .52rem;
}

/* COMMUNICATION */

.announcement-card {
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 13px;
}

.announcement-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--acadify-light);
    color: var(--acadify);
}

.announcement-card small {
    color: var(--acadify);
    font-size: .54rem;
    font-weight: 700;
}

.announcement-card h5 {
    margin: 3px 0;
    font-size: .78rem;
}

.announcement-card p {
    margin: 0;
    color: var(--muted);
    font-size: .62rem;
}

/* CALENDAR */

.calendar-card {
    height: 100%;
    display: flex;
    gap: 13px;
    padding: 17px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 13px;
}

.calendar-date {
    width: 50px;
    height: 55px;
    flex: 0 0 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--acadify-light);
    color: var(--acadify);
}

.calendar-date strong {
    font-size: 1.05rem;
}

.calendar-date span {
    font-size: .53rem;
    font-weight: 800;
}

.calendar-card h5 {
    margin: 3px 0;
    font-size: .76rem;
}

.calendar-card p {
    margin: 0;
    color: var(--muted);
    font-size: .59rem;
}

/* REPORTS */

.report-card {
    width: 100%;
    height: 100%;
    min-height: 150px;
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    text-align: left;
    transition: .2s;
}

.report-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(31, 48, 85, .07);
}

.report-icon {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--acadify-light);
    color: var(--acadify);
    margin-bottom: 15px;
}

.report-card strong,
.report-card span {
    display: block;
}

.report-card strong {
    color: var(--acadify-deep);
    font-size: .74rem;
}

.report-card span {
    margin-top: 3px;
    color: var(--muted);
    font-size: .58rem;
}

/* SETTINGS */

.settings-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    text-align: left;
}

.settings-card>i:first-child {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--acadify-light);
    color: var(--acadify);
}

.settings-card div {
    flex: 1;
}

.settings-card strong,
.settings-card span {
    display: block;
}

.settings-card strong {
    font-size: .68rem;
}

.settings-card span {
    color: var(--muted);
    font-size: .55rem;
}

.settings-card>i:last-child {
    color: #a0a9b8;
    font-size: .65rem;
}

/* MODALS */

.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: .55rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.acadify-modal .modal-title {
    font-size: 1.02rem;
}

.acadify-modal label {
    color: var(--muted);
    font-size: .62rem;
    font-weight: 700;
}

.justification-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    background: #f7f8fb;
    border-radius: 10px;
}

.justification-meta span,
.justification-meta strong {
    display: block;
}

.justification-meta span {
    color: var(--muted);
    font-size: .5rem;
    font-weight: 800;
}

.justification-meta strong {
    margin-top: 3px;
    font-size: .66rem;
}

.detail-block {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.detail-block>span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .52rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.detail-block>strong {
    font-size: .7rem;
}

.detail-block p {
    margin: 0;
    color: #596376;
    font-size: .65rem;
    line-height: 1.6;
}

.document-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    text-align: left;
}

.document-button>i:first-child {
    color: var(--danger);
    font-size: 1.2rem;
}

.document-button div {
    flex: 1;
}

.document-button strong,
.document-button span {
    display: block;
}

.document-button strong {
    font-size: .62rem;
}

.document-button span {
    color: var(--muted);
    font-size: .52rem;
}

.document-button>i:last-child {
    color: var(--acadify);
}

.sender-block {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 15px;
}

.sender-block strong,
.sender-block span {
    display: block;
}

.sender-block strong {
    font-size: .63rem;
}

.sender-block span {
    color: var(--muted);
    font-size: .53rem;
}

.justification-actions {
    justify-content: space-between;
}

/* 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: .68rem;
}

.demo-toast span {
    color: var(--muted);
    font-size: .57rem;
}

.sidebar-overlay {
    display: none;
}

/* 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 14px;
    }

    .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-live,
    .access-online,
    .date-selector {
        width: 100%;
    }

    .content-card {
        padding: 16px;
    }

    .group-attendance-row {
        grid-template-columns: 65px 1fr 50px;
    }

    .group-attendance-row .capture-status {
        grid-column: 2/-1;
        justify-self: start;
    }

    .table-toolbar {
        flex-direction: column;
    }

    .table-toolbar select {
        max-width: none;
    }

    .directory-row {
        grid-template-columns: 38px 1fr 35px;
    }

    .directory-row>div:nth-child(3),
    .directory-row>div:nth-child(4),
    .directory-row>div:nth-child(5) {
        display: none;
    }

    .attendance-detail-row {
        grid-template-columns: 70px 1fr 75px;
    }

    .attendance-detail-row>div:nth-child(3),
    .attendance-detail-row>div:nth-child(4) {
        display: none;
    }

    .justification-card {
        grid-template-columns: 40px 1fr;
    }

    .justification-card>button {
        grid-column: 2;
        justify-self: start;
    }

    .academic-overview {
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
    }

    .grade-progress-row {
        grid-template-columns: 38px 1fr 50px;
    }

    .grade-progress-row>div:nth-child(3) {
        display: none;
    }

    .grade-progress-row>div:nth-child(4) {
        grid-column: 2;
    }

    .access-row {
        grid-template-columns: 38px 1fr 70px;
    }

    .access-row>div:nth-child(3) {
        display: none;
    }

    .demo-toast {
        left: 14px;
        right: 14px;
        min-width: 0;
    }
}