main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.badge-role {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-weight: 600;
}

.card-paper {
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid #e2e8f0;
}

.card-paper:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.card-paper.active {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.status-btn {
    width: 38px;
    height: 38px;
    font-weight: 700;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.status-btn.btn-p { background-color: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.status-btn.btn-p.active { background-color: #16a34a; color: #ffffff; }

.status-btn.btn-a { background-color: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.status-btn.btn-a.active { background-color: #dc2626; color: #ffffff; }

.status-btn.btn-l { background-color: #fef3c7; color: #b45309; border-color: #fde68a; }
.status-btn.btn-l.active { background-color: #d97706; color: #ffffff; }

.status-btn.btn-e { background-color: #e0e7ff; color: #4338ca; border-color: #c7d2fe; }
.status-btn.btn-e.active { background-color: #4f46e5; color: #ffffff; }

/* === STYLISH HOME LOGIN PAGE STYLES === */
.home-login-wrapper {
    min-height: calc(100vh - 170px);
    display: flex;
    align-items: center;
}

.hero-showcase-panel {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.4), 0 8px 10px -6px rgba(15, 23, 42, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-showcase-panel::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.feature-pill-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    transition: all 0.2s ease;
}

.feature-pill-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(129, 140, 248, 0.4);
}

.login-glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2.25rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    position: relative;
}

.login-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4f46e5, #6366f1, #3b82f6);
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 1.25rem;
}

.form-control-modern {
    border: 1.5px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-modern:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.1rem;
    z-index: 5;
}

.quick-role-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #334155;
    transition: all 0.15s ease;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.quick-role-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
    transform: translateY(-1px);
}

.quick-role-btn.active {
    background: #e0e7ff;
    border-color: #818cf8;
    color: #312e81;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}


/* === LEAVE status button === */
.status-btn.btn-lv { background-color: #f3e8ff; color: #7e22ce; border-color: #e9d5ff; font-size: 0.8rem; }
.status-btn.btn-lv.active { background-color: #9333ea; color: #ffffff; }
.status-btn:disabled { cursor: not-allowed; }
.status-btn:disabled:not(.active) { opacity: 0.35; }
.status-btn.active:disabled { opacity: 1; }

/* === Mark Attendance: live summary bar === */
.att-summary { position: sticky; top: 0; z-index: 5; background: #ffffff; }
.att-tile {
    min-width: 84px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    line-height: 1.15;
}
.att-tile-num { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.att-tile-num .bi { font-size: 0.85rem; vertical-align: 0.15em; }
.att-tile-lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; color: #6b7280; }
.att-tile-t   { background: #f1f5f9; color: #0f172a; }
.att-tile-p   { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.att-tile-a   { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.att-tile-l   { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.att-tile-e   { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }
.att-tile-lv  { background: #faf5ff; border-color: #e9d5ff; color: #7e22ce; }
.att-tile-u   { background: #ffffff; border-style: dashed; color: #64748b; }
.att-tile-pct { background: #0f172a; border-color: #0f172a; color: #ffffff; }
.att-tile-pct .att-tile-lbl { color: #cbd5e1; }
.att-progress { height: 6px; background: #f1f5f9; }
.att-progress .progress-bar { transition: width .25s ease; }
.att-progress .att-bar-p  { background-color: #16a34a; }
.att-progress .att-bar-l  { background-color: #d97706; }
.att-progress .att-bar-e  { background-color: #4f46e5; }
.att-progress .att-bar-lv { background-color: #9333ea; }
.att-progress .att-bar-a  { background-color: #dc2626; }

/* Row of a student on Advance Leave */
.att-row-leave > td { background-color: #faf5ff !important; }
.att-leave-badge { background: #9333ea; color: #fff; font-weight: 600; font-size: 0.7rem; }
@media (max-width: 576px) {
    .att-tile { min-width: 0; flex: 1 1 22%; padding: 4px 6px; }
    .att-tile-num { font-size: 1rem; }
    .att-tile-num .bi { display: none; }
    .att-tile-lbl { font-size: 0.6rem; }
    .att-tile-pct { flex-basis: 100%; display: flex; align-items: baseline; gap: 8px; }
}

/* === Mark Attendance: sortable column headers === */
.att-sort { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: inherit; white-space: nowrap; cursor: pointer; }
.att-sort .bi { font-size: 0.8em; margin-left: 2px; opacity: 0.35; }
.att-sort:hover .bi, .att-sort.active .bi { opacity: 1; }
.att-sort.active { color: #0d6efd; }

/* === Mark Attendance: search box === */
.att-search { max-width: 340px; }
@media (max-width: 576px) { .att-search { max-width: none; } }
