/* ===================================
   SCHOOL ATTENDANCE MANAGEMENT SYSTEM
   style.css — Premium SaaS Design
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== VARIABLES ===== */
:root {
    --primary: #4361ee;
    --primary-light: #6b8cff;
    --primary-dark: #2f48c5;
    --accent: #f72585;
    --accent2: #4cc9f0;
    --success: #06d6a0;
    --warning: #ffd166;
    --danger: #ef233c;
    --bg: #f0f2ff;
    --bg2: #e8eaf6;
    --surface: #ffffff;
    --surface2: #f7f8ff;
    --surface3: #eef0fb;
    --border: #dde1f5;
    --text: #1a1e3c;
    --text2: #4a5080;
    --text3: #8892b0;
    --sidebar-bg: #1a1e3c;
    --sidebar-text: #c8cde8;
    --sidebar-active: #4361ee;
    --shadow-sm: 0 2px 8px rgba(67, 97, 238, 0.08);
    --shadow-md: 0 8px 24px rgba(67, 97, 238, 0.12);
    --shadow-lg: 0 16px 48px rgba(67, 97, 238, 0.16);
    --shadow-xl: 0 32px 80px rgba(67, 97, 238, 0.2);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --sidebar-width: 260px;
    --topbar-height: 68px;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg: #0d0f1e;
    --bg2: #111327;
    --surface: #161929;
    --surface2: #1c2038;
    --surface3: #222540;
    --border: #2a2f52;
    --text: #e8eaf6;
    --text2: #9ba3c8;
    --text3: #5a6080;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --sidebar-bg: #0a0c18;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

input,
select,
textarea,
button {
    font-family: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg2);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 99px;
}

/* ===== LOADER ===== */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--sidebar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.5s, visibility 0.5s;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
}

.loader-logo span {
    color: var(--accent2);
}

.loader-bar {
    width: 180px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-light), var(--accent2));
    border-radius: 99px;
    animation: loaderFill 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderFill {
    to {
        width: 100%;
    }
}

/* ===== TOAST ===== */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: all;
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

.toast.warning {
    border-color: var(--warning);
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast.hide {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* ===== COMMON UTILITIES ===== */
.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid {
    display: grid;
}

.gap-sm {
    gap: 8px;
}

.gap-md {
    gap: 16px;
}

.gap-lg {
    gap: 24px;
}

.mt-sm {
    margin-top: 8px;
}

.mt-md {
    margin-top: 16px;
}

.mt-lg {
    margin-top: 24px;
}

.text-sm {
    font-size: 0.85rem;
}

.text-muted {
    color: var(--text3);
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(67, 97, 238, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(67, 97, 238, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    border: 1.5px solid var(--border);
    color: var(--text2);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(67, 97, 238, 0.06);
}

.btn-danger {
    background: linear-gradient(135deg, #ef233c, #c1121f);
    color: #fff;
    box-shadow: 0 4px 16px rgba(239, 35, 60, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 35, 60, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #06d6a0, #059966);
    color: #fff;
    box-shadow: 0 4px 16px rgba(6, 214, 160, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 15px 32px;
    font-size: 1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #c2185b);
    color: #fff;
    box-shadow: 0 4px 16px rgba(247, 37, 133, 0.35);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(247, 37, 133, 0.45);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text2);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-control {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
}

.form-control::placeholder {
    color: var(--text3);
}

select.form-control {
    cursor: pointer;
}

/* ===== CARD ===== */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text3);
    margin-bottom: 20px;
}

/* ===== BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.badge-primary {
    background: rgba(67, 97, 238, 0.12);
    color: var(--primary);
}

.badge-success {
    background: rgba(6, 214, 160, 0.12);
    color: #059966;
}

.badge-danger {
    background: rgba(239, 35, 60, 0.12);
    color: var(--danger);
}

.badge-warning {
    background: rgba(255, 209, 102, 0.2);
    color: #b7881a;
}

/* ===== TABLE ===== */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table thead {
    background: var(--surface3);
}

.data-table thead th {
    padding: 13px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text3);
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--surface2);
}

.data-table tbody td {
    padding: 13px 18px;
    color: var(--text2);
    vertical-align: middle;
}

.data-table tbody td:first-child {
    color: var(--text);
    font-weight: 500;
}

/* ===== STATUS BADGE ===== */
.status-present {
    color: #059966;
    background: rgba(6, 214, 160, 0.1);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: inline-block;
}

.status-absent {
    color: var(--danger);
    background: rgba(239, 35, 60, 0.1);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: inline-block;
}

.status-late {
    color: #b7881a;
    background: rgba(255, 209, 102, 0.15);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: inline-block;
}

/* ============================
   LANDING PAGE (index.html)
   ============================ */
/* NAVBAR */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 72px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(67, 97, 238, 0.1);
    transition: var(--transition);
}

[data-theme="dark"] .landing-nav {
    background: rgba(13, 15, 30, 0.8);
    border-bottom-color: rgba(67, 97, 238, 0.2);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo .dot {
    color: var(--primary);
}

.nav-logo .icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text2);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dark-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface3);
    color: var(--text2);
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.dark-toggle:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 5% 80px;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(67, 97, 238, 0.12) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(67, 97, 238, 0.08) 1px, transparent 0);
    background-size: 40px 40px;
}

.hero-content {
    position: relative;
    max-width: 860px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(67, 97, 238, 0.1);
    border: 1px solid rgba(67, 97, 238, 0.2);
    border-radius: 99px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 28px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: fadeDown 0.6s ease both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: var(--text);
    margin-bottom: 24px;
    animation: fadeUp 0.7s 0.1s ease both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text2);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeUp 0.7s 0.2s ease both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.7s 0.3s ease both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    animation: fadeUp 0.7s 0.4s ease both;
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.82rem;
    color: var(--text3);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.hero-stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
}

.floating-card {
    position: absolute;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    animation: float 4s ease-in-out infinite;
}

.floating-card-icon {
    font-size: 1.4rem;
}

.floating-card:nth-child(1) {
    top: 25%;
    left: 5%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 30%;
    right: 5%;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 8%;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* SECTIONS COMMON */
.section {
    padding: 96px 5%;
}

.section-alt {
    background: var(--surface2);
}

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text2);
    max-width: 560px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header .section-desc {
    margin: 0 auto;
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent2));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1));
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.7;
}

/* HOW IT WORKS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.step {
    text-align: center;
    position: relative;
}

.step-num {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 8px 24px rgba(67, 97, 238, 0.35);
    position: relative;
    z-index: 1;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.875rem;
    color: var(--text2);
    line-height: 1.7;
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-img-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 3px;
}

.about-img-inner {
    background: var(--surface);
    border-radius: calc(var(--radius-xl) - 3px);
    padding: 40px;
    display: grid;
    gap: 16px;
}

.about-stat-card {
    background: var(--surface2);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
}

.about-stat-icon {
    font-size: 2rem;
}

.about-stat-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.04em;
    line-height: 1;
}

.about-stat-label {
    font-size: 0.8rem;
    color: var(--text3);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text p {
    color: var(--text2);
    line-height: 1.8;
}

.about-text ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-text ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text2);
}

.about-text ul li::before {
    content: '✓';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(6, 214, 160, 0.15);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* DEVELOPER SECTION */
.dev-section {
    background: var(--sidebar-bg);
    padding: 96px 5%;
    text-align: center;
}

.dev-card {
    max-width: 560px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.dev-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.15) 0%, transparent 60%);
}

.dev-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-display);
    letter-spacing: -0.04em;
    box-shadow: 0 12px 40px rgba(67, 97, 238, 0.4);
    position: relative;
}

.dev-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    position: relative;
}

.dev-title {
    color: var(--accent2);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
}

.dev-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.dev-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(200, 205, 232, 0.8);
}

.dev-detail-icon {
    font-size: 1rem;
}

.dev-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 20px auto;
    border-radius: 99px;
    position: relative;
}

/* FOOTER */
footer {
    background: #0a0c18;
    padding: 60px 5% 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(200, 205, 232, 0.6);
    line-height: 1.8;
}

.footer-col-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(200, 205, 232, 0.4);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(200, 205, 232, 0.6);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 0.82rem;
    color: rgba(200, 205, 232, 0.4);
}

.footer-copy span {
    color: var(--primary-light);
    font-weight: 600;
}

/* ============================
   LOGIN PAGE
   ============================ */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-left {
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, #1a2060 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 64px;
}

.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(67, 97, 238, 0.12) 1px, transparent 0);
    background-size: 36px 36px;
}

.login-left-content {
    position: relative;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 64px;
}

.login-brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.login-brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
}

.login-hero-text {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.login-hero-text span {
    color: var(--accent2);
}

.login-hero-sub {
    font-size: 1rem;
    color: rgba(200, 205, 232, 0.7);
    line-height: 1.7;
    margin-bottom: 48px;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(67, 97, 238, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.login-feature-text {
    font-size: 0.9rem;
    color: rgba(200, 205, 232, 0.8);
}

.login-deco {
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.2), transparent);
}

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 64px;
    background: var(--bg);
}

.login-form-wrap {
    width: 100%;
    max-width: 420px;
}

.login-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--text3);
    margin-bottom: 36px;
}

/* Role Tabs */
.role-tabs {
    display: flex;
    gap: 0;
    background: var(--surface3);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 28px;
    border: 1px solid var(--border);
}

.role-tab {
    flex: 1;
    padding: 10px;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.role-tab.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.demo-creds {
    background: var(--surface3);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.demo-creds-title {
    font-weight: 700;
    color: var(--text2);
    margin-bottom: 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.demo-creds code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary);
    background: rgba(67, 97, 238, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.password-wrap {
    position: relative;
}

.password-wrap .form-control {
    padding-right: 44px;
}

.pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text3);
    cursor: pointer;
    transition: color 0.2s;
}

.pwd-toggle:hover {
    color: var(--primary);
}

.login-btn {
    width: 100%;
    padding: 13px;
    font-size: 1rem;
    margin-top: 8px;
}

.login-footer-text {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text3);
    margin-top: 20px;
}

/* ============================
   DASHBOARD LAYOUT
   ============================ */
.dashboard-body {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.12), transparent);
    pointer-events: none;
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sidebar-logo-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.sidebar-logo-text small {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(200, 205, 232, 0.45);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sidebar-close {
    display: none;
    margin-left: auto;
    color: rgba(200, 205, 232, 0.5);
    font-size: 1.4rem;
    cursor: pointer;
}

.sidebar-user {
    margin: 16px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.sidebar-user-role {
    font-size: 0.7rem;
    color: rgba(200, 205, 232, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 12px 0;
}

.nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(200, 205, 232, 0.3);
    padding: 12px 12px 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sidebar-text);
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 2px;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.nav-item.active {
    background: rgba(67, 97, 238, 0.25);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--primary);
}

.nav-item.active .nav-item-icon {
    color: var(--primary-light);
}

.nav-item-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item-badge {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    border-radius: 99px;
    padding: 2px 7px;
    font-size: 0.65rem;
    font-weight: 700;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* TOPBAR */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    height: var(--topbar-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text2);
    background: var(--surface3);
    border: 1px solid var(--border);
    cursor: pointer;
}

.page-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text3);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text2);
    background: var(--surface3);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.topbar-btn:hover {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.08);
    border-color: var(--primary);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 14px 6px 8px;
    cursor: pointer;
    transition: var(--transition);
}

.topbar-user:hover {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.06);
}

.topbar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.topbar-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

/* DASHBOARD MAIN */
.page-content {
    padding: 32px;
    flex: 1;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* STAT CARDS */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.stat-card:nth-child(1) .stat-card-accent {
    background: radial-gradient(circle, rgba(67, 97, 238, 0.15), transparent);
}

.stat-card:nth-child(2) .stat-card-accent {
    background: radial-gradient(circle, rgba(6, 214, 160, 0.15), transparent);
}

.stat-card:nth-child(3) .stat-card-accent {
    background: radial-gradient(circle, rgba(247, 37, 133, 0.15), transparent);
}

.stat-card:nth-child(4) .stat-card-accent {
    background: radial-gradient(circle, rgba(255, 209, 102, 0.2), transparent);
}

.stat-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.stat-card:nth-child(1) .stat-card-icon {
    background: rgba(67, 97, 238, 0.1);
}

.stat-card:nth-child(2) .stat-card-icon {
    background: rgba(6, 214, 160, 0.1);
}

.stat-card:nth-child(3) .stat-card-icon {
    background: rgba(247, 37, 133, 0.1);
}

.stat-card:nth-child(4) .stat-card-icon {
    background: rgba(255, 209, 102, 0.15);
}

.stat-card-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-card-label {
    font-size: 0.82rem;
    color: var(--text3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-card-change {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
}

.stat-card-change.up {
    color: var(--success);
}

.stat-card-change.down {
    color: var(--danger);
}

/* FORM GRID */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.col-span-2 {
    grid-column: span 2;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* ATTENDANCE MARK TABLE */
.attend-table {
    width: 100%;
}

.attend-table-row {
    display: grid;
    grid-template-columns: 50px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.attend-table-row:hover {
    background: var(--surface2);
}

.attend-table-row.header {
    background: var(--surface3);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text3);
    padding: 11px 18px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.student-num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text3);
}

.student-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.status-toggle {
    display: flex;
    gap: 0;
    background: var(--surface3);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.status-btn {
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text3);
}

.status-btn.present-btn.active {
    background: rgba(6, 214, 160, 0.15);
    color: #059966;
}

.status-btn.absent-btn.active {
    background: rgba(239, 35, 60, 0.12);
    color: var(--danger);
}

.status-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
}

/* SECTION CONTENT GRID */
.content-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.content-full {
    grid-column: span 2;
}

/* FILTERS */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text3);
    white-space: nowrap;
}

.filter-select {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.875rem;
    cursor: pointer;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 64px 32px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text2);
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 0.9rem;
    color: var(--text3);
}

/* SIDEBAR OVERLAY (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.sidebar-overlay.show {
    display: block;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-grid-2 {
        grid-template-columns: 1fr;
    }

    .content-full {
        grid-column: span 1;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .login-page {
        grid-template-columns: 1fr;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 48px 32px;
    }

    .sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }

    .sidebar-close {
        display: flex;
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .topbar {
        padding: 0 20px;
    }

    .page-content {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .hero-stats {
        gap: 24px;
    }

    .stat-cards {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .col-span-2 {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .attend-table-row {
        grid-template-columns: 40px 1fr;
        gap: 8px;
    }

    .attend-table-row .status-toggle {
        grid-column: span 2;
    }

    .filters-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 400px) {
    .stat-cards {
        grid-template-columns: 1fr;
    }
}