﻿:root {
    --primary-color: #b91c1c;
    /* Deep Red */
    --primary: #b91c1c;
    /* Alias */
    --primary-light: #ef4444;
    /* Lighter Red */
    --secondary-color: #1e1e1e;
    /* Dark cards */
    --background: #000000;
    /* Deep Black background */
    --bg: #000000;
    /* Alias */
    --text-primary: #ffffff;
    --text: #ffffff;
    /* Alias */
    --text-secondary: #9ca3af;
    --text-muted: #9ca3af;
    /* Alias */
    --surface: #121212;
    --border: #333333;
    --danger: #ef4444;

    /* Icon Colors - Adjusted for dark theme */
    --icon-blue: #60a5fa;
    --icon-green: #34d399;
    --icon-cyan: #22d3ee;
    --icon-yellow: #facc15;
    --icon-orange: #fb923c;
    --icon-teal: #2dd4bf;
    --icon-red: #f87171;
    --icon-purple: #c084fc;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
}

/* ================= SIDE DRAWER STYLES ================= */
.side-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--surface);
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.side-drawer.open {
    left: 0;
}

.drawer-header {
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.drawer-logo {
    width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
    /* Makes dark logo white */
}

.drawer-menu {
    padding: 20px 0;
}

.drawer-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 25px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    gap: 15px;
}

.drawer-item i {
    width: 24px;
    height: 24px;
}

.drawer-item:active {
    background: #333333;
}

.drawer-divider {
    height: 1px;
    background-color: var(--border);
    margin: 10px 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.text-danger {
    color: var(--danger) !important;
}

/* ================= LIGHTBOX STYLES ================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.lightbox.hidden {
    display: none !important;
}

.lightbox img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 3001;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

.view {
    min-height: 100vh;
    width: 100%;
}

/* ================== AUTH GATE ================== */
@keyframes appLockFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.app-lock-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #7f1d1d, #dc2626);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    letter-spacing: 0.2px;
}

.app-lock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4);
}

.app-lock-btn:active {
    transform: scale(0.97);
}

.app-lock-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ================== LOGIN VIEW ================== */
#view-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    background-color: var(--background);
    padding: 0;
    overflow-y: auto;
}

.login-container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 55px 28px 30px;
    min-height: 100vh;
}

/* Title */
.login-header {
    text-align: center;
    width: 100%;
    margin-bottom: 0;
}

.login-header h2 {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    line-height: 1.35;
    text-transform: uppercase;
    margin-bottom: 0;
}

.login-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 700;
    margin: 0;
}

/* Logo */
.logo-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px 0 30px;
}

.login-logo-img {
    width: 240px;
    height: 240px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Inputs */
.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    width: 100%;
    margin: 0;
}

.input-group input {
    width: 100%;
    padding: 16px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--surface);
    color: var(--text-primary);
    -webkit-appearance: none;
}

.input-group input::placeholder {
    color: #6b7280;
    font-size: 0.82rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* LOGIN button */
.login-btn {
    width: 100%;
    padding: 14px;
    margin-top: 18px;
    border: none;
    border-radius: 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

/* LOGIN AS button */
.login-as-btn {
    width: 100%;
    padding: 14px;
    margin-top: 18px;
    border: none;
    border-radius: 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.login-as-btn:active {
    opacity: 0.9;
    transform: scale(0.99);
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(185, 28, 28, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.mt-4 {
    margin-top: 24px;
}

/* Powered By */
.login-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 40px;
    padding-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.powered-logo {
    width: 90px;
    height: auto;
    opacity: 0.75;
    filter: brightness(0.8);
}

/* ================== MAIN APP (INNOVIA) ================== */
#main-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--background);
}

.top-header {
    background: var(--primary-color);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: var(--shadow-md);
}

#header-title {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    flex: 1;
    text-align: left;
    margin-left: 15px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-right {
    display: flex;
    gap: 15px;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
}

/* DASHBOARD VIEW */
.profile-card {
    margin: 20px;
    background: var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.profile-card-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    color: var(--text-secondary);
}

.profile-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-info p {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.profile-info .sub-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Grid Menu */
.grid-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 20px 20px;
}

.grid-item {
    background: var(--secondary-color);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.grid-item:active {
    transform: scale(0.95);
}

.grid-item span {
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 2px solid;
}

.icon-wrapper.color-blue {
    border-color: var(--icon-blue);
    color: var(--icon-blue);
}

.icon-wrapper.color-green {
    border-color: var(--icon-green);
    color: var(--icon-green);
}

.icon-wrapper.color-cyan {
    border-color: var(--icon-cyan);
    color: var(--icon-cyan);
}

.icon-wrapper.color-yellow {
    border-color: var(--icon-yellow);
    color: var(--icon-yellow);
}

.icon-wrapper.color-orange {
    border-color: var(--icon-orange);
    color: var(--icon-orange);
}

.icon-wrapper.color-teal {
    border-color: var(--icon-teal);
    color: var(--icon-teal);
}

.icon-wrapper.color-red {
    border-color: var(--icon-red);
    color: var(--icon-red);
}

.icon-wrapper.color-purple {
    border-color: var(--icon-purple);
    color: var(--icon-purple);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.bottom-nav .nav-item {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
}

.bottom-nav .nav-item.active {
    color: white;
    font-weight: 600;
}

/* PROFILE VIEW */
#view-profile {
    background: var(--background);
    min-height: 100%;
}

.profile-section {
    background: var(--secondary-color);
    padding: 0 20px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    padding: 15px 0;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 0;
    color: var(--text-primary);
}

.detail-row {
    display: flex;
    flex-direction: row;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
    gap: 4px;
}

.detail-row:last-of-type {
    border-bottom: none;
}

.detail-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    min-width: 120px;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 400;
}

.btn-text-danger {
    background: transparent;
    border: none;
    color: var(--danger);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    display: block;
}

/* NEWS VIEW */
.news-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card-solid {
    border-radius: 18px;
    padding: 18px 20px;
    color: white;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.3s ease-out forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-date-solid {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.news-content-solid {
    font-size: 0.95rem;
    line-height: 1.6;
    color: white;
}

.news-content-solid b {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.news-tap-solid {
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================= LOGIN AS MODAL ================= */
.la-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.la-modal {
    background: var(--secondary-color);
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border);
    animation: laFadeIn 0.25s ease-out;
}

@keyframes laFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

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

.la-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.la-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.la-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.la-close-btn:hover {
    background: #333;
    color: #fff;
}

.la-body {
    padding: 16px;
}

.la-search-wrap {
    position: relative;
    margin-bottom: 12px;
}

.la-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.la-input {
    width: 100%;
    padding: 14px 14px 14px 42px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    background: var(--surface);
    color: var(--text-primary);
}

.la-input:focus {
    border-color: var(--primary-color);
}

.la-select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    background: var(--surface);
    color: var(--text-primary);
    cursor: pointer;
    appearance: auto;
}

.la-results {
    max-height: 340px;
    overflow-y: auto;
}

.la-hint,
.la-loading {
    text-align: center;
    padding: 30px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
}

.la-loading {
    color: var(--primary-color);
}

.la-empty {
    text-align: center;
    padding: 30px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
}

.la-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
    margin-bottom: 6px;
}

.la-item:hover {
    background: #2a1111;
    border-color: #4a1c1c;
}

.la-item:active {
    transform: scale(0.98);
}

.la-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
}

.la-item-info {
    flex: 1;
    min-width: 0;
}

.la-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.la-item-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    margin-top: 2px;
}

.la-item-reg {
    font-size: 0.78rem;
    color: #f87171;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    background: #3f1d1d;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ================= HOMEWORK STYLES ================= */
.homework-controls {
    padding: 20px;
    display: flex;
    gap: 10px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.date-picker {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--text-primary);
}

.homework-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.homework-card {
    background: var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    border: 1px solid var(--border);
    border-left-width: 4px;
}

.homework-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-light);
}

/* ================= GALLERY STYLES ================= */
.gallery-albums {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.album-card {
    background: var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid var(--border);
}

.album-card:active {
    transform: scale(0.98);
}

.album-title {
    font-weight: 600;
    color: var(--text-primary);
}

.gallery-photos {
    padding: 20px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    background-color: var(--surface);
}

/* ================= FEES STYLES ================= */
.fees-list {
    padding: 0;
    background: var(--background);
    min-height: 100%;
}

.fees-session {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 20px 20px 12px;
}

.fees-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 16px 16px;
}

.fee-tile {
    background: var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.fee-tile-amount {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.fee-tile-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.fees-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 16px 20px;
    padding: 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}

.fees-history-header {
    padding: 0 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.fees-history-divider {
    margin-top: 8px;
    border: none;
    border-top: 1px solid var(--border);
}

/* ================= ACADEMICS GRID STYLES ================= */
.academics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 20px;
    background: var(--background);
}

.academic-item {
    background: var(--secondary-color);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.academic-item:active {
    transform: scale(0.95);
}

.academic-item span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface);
    border: 2px solid transparent;
}

.border-green {
    border-color: var(--icon-green);
}

.color-green {
    stroke: var(--icon-green);
}

.border-teal {
    border-color: var(--icon-teal);
}

.color-teal {
    stroke: var(--icon-teal);
}

.border-red {
    border-color: var(--icon-red);
}

.color-red {
    stroke: var(--icon-red);
}

.border-yellow {
    border-color: var(--icon-yellow);
}

.color-yellow {
    stroke: var(--icon-yellow);
}

.border-purple {
    border-color: var(--icon-purple);
}

.color-purple {
    stroke: var(--icon-purple);
}

.border-cyan {
    border-color: var(--icon-cyan);
}

.color-cyan {
    stroke: var(--icon-cyan);
}

.border-brown {
    border-color: #d97706;
}

.color-brown {
    stroke: #d97706;
}

/* ================= SUB MODULE STYLES ================= */
.attendance-controls,
.timetable-controls {
    padding: 20px;
    display: flex;
    gap: 10px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.attendance-list,
.remarks-list,
.timetable-list,
.weeklyplan-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.attendance-card,
.remark-card,
.timetable-card,
.weeklyplan-card {
    background: var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary-color);
}

.attendance-card.present {
    border-left-color: var(--icon-green);
}

.attendance-card.absent {
    border-left-color: var(--icon-red);
}

.attendance-card.holiday {
    border-left-color: var(--icon-yellow);
}

.weeklyplan-details {
    padding: 20px;
}

.weeklyplan-details-container {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.plan-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.plan-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.plan-subject {
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 5px;
}

/* ================= SWITCH STUDENTS STYLES ================= */
.switch-student-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--background);
    min-height: 100%;
}

.student-card {
    background: var(--secondary-color);
    border-radius: 40px;
    padding: 12px 24px 12px 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.student-card.active {
    background: #3f1d1d;
    border: 1px solid var(--primary-color);
    cursor: default;
}

.student-card-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.student-card-info {
    flex: 1;
}

.student-card-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.student-card-admno {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.student-card-status {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--icon-green);
}

.student-card-arrow {
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.btn-text-secondary {
    background: transparent;
    border: none;
    color: var(--icon-red);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    display: block;
}