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

/* Per-card pastel backgrounds to match Android essentials row */
#ess-card-attendance {
    background: #E6F4EA;
}

#ess-card-schedule {
    background: #E3F2FD;
}

#ess-card-assistant {
    background: #FFF3E0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    background: #0f172a;
}

.hero {
    background: radial-gradient(circle at top left, #38bdf8, #6366f1 45%, #0f172a 80%);
    color: #f9fafb;
    padding: 4rem 1.5rem 3rem;
}

.hero-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    margin-top: 0.75rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

.hero-description {
    margin-top: 1rem;
    max-width: 32rem;
    font-size: 0.98rem;
    opacity: 0.9;
}

.hero-actions {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.btn-primary {
    background: #f97316;
    color: #0f172a;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.5);
}

.btn-outline {
    border: 1px solid rgba(248, 250, 252, 0.5);
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.2);
}

.btn-outline:hover {
    background: rgba(15, 23, 42, 0.4);
}

.btn.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.section {
    background: #020617;
    color: #e5e7eb;
    padding: 3rem 1.5rem;
}

.section-inner {
    max-width: 960px;
    margin: 0 auto;
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    background: #020617;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.2rem 1.3rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: #cbd5f5;
}

.how-it-works {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.steps {
    list-style-position: inside;
    margin-top: 0.5rem;
}

.steps li {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.screenshots .section-inner h2,
.app-details .section-inner h2 {
    margin-bottom: 1rem;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.screenshot-card {
    background: radial-gradient(circle at top left, #1e293b, #020617);
    border-radius: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.2rem 1.3rem 1.4rem;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.screenshot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    border-color: rgba(96, 165, 250, 0.9);
}

.screenshot-mock {
    border-radius: 1rem;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    height: 180px;
    margin-bottom: 0.9rem;
    position: relative;
    overflow: hidden;
}

.screenshot-mock::before,
.screenshot-mock::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.screenshot-mock::after {
    inset: 34px 24px 24px;
    border-radius: 0.6rem;
    border: none;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.02));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 1));
}

.screenshot-mock--dashboard {
    animation: float 7s ease-in-out infinite alternate;
}

.screenshot-mock--timetable {
    animation: float 6s ease-in-out infinite alternate-reverse;
}

.screenshot-mock--analytics {
    animation: float 8s ease-in-out infinite alternate;
}

.screenshot-card h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.screenshot-card p {
    font-size: 0.9rem;
    color: #cbd5f5;
}

.app-details-layout {
    display: flex;
    align-items: stretch;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.app-details-copy {
    flex: 2 1 260px;
}

.app-details-copy p {
    font-size: 0.95rem;
    color: #cbd5f5;
    max-width: 34rem;
}

.app-details-list {
    list-style: none;
    margin-top: 1.3rem;
}

.app-details-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}

.app-details-list .label {
    color: #9ca3af;
}

.app-details-list .value {
    color: #e5e7eb;
    font-weight: 500;
}

/* Student web app specific layouts */

.student-body {
    /* base hook; actual theme applied later in file */
    margin: 0;
}

.student-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.student-section {
    margin-bottom: 2rem;
}

.dashboard-hero-card {
    border-radius: 2rem;
    padding: 1.6rem 1.5rem 1.4rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed 45%, #f59e0b 100%);
    box-shadow: 0 26px 65px rgba(15, 23, 42, 0.45);
    color: #f9fafb;
    position: relative;
    overflow: hidden;
}

.dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.dashboard-main-card {
    margin-top: 0.25rem;
}

.hero-dashboard-main {
    max-width: 80%;
}

.hero-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.4rem;
}

.hero-title {
    font-size: 1.65rem;
    line-height: 1.15;
    font-weight: 700;
}

.hero-subtitle {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-meta {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    opacity: 0.85;
}

.hero-actions-row {
    margin-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-primary-btn {
    background: #f9fafb;
    color: #1f2933;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.45);
}

.hero-logout-btn {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.55);
    background: rgba(15, 23, 42, 0.2);
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
}

.student-app-bar {
    background: transparent;
    border-bottom: none;
    padding: 0.85rem 1.1rem 0.2rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.student-app-bar-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.student-app-logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, #38bdf8, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f9fafb;
}

.student-app-bar-text {
    display: flex;
    flex-direction: column;
}

.student-app-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e5e7eb;
}

.student-app-subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
}

.dashboard-block {
    margin-top: 1rem;
}

.dashboard-block-header h3 {
    font-size: 1rem;
}

.essentials-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.6rem;
}

.essential-card {
    border-radius: 1.2rem;
    border: none;
    padding: 0.75rem 0.9rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.essential-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #111827;
}

.essential-subtitle {
    font-size: 0.78rem;
    color: #4b5563;
    opacity: 0.9;
}

.gamification-card {
    border-radius: 1.1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #EEF2FF, #E0F2FE);
    border: 1px solid rgba(129, 140, 248, 0.55);
}

.tab-row {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.9rem;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    margin-top: 0;
    z-index: 40;
}

.tab-button {
    border-radius: 999px;
    border: none;
    padding: 0.4rem 0.95rem;
    font-size: 0.85rem;
    cursor: pointer;
    background: transparent;
    color: rgba(15, 23, 42, 0.7);
}

.tab-button.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #f9fafb;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.35);
}

.tab-panel {
    margin-top: 1.2rem;
}

.assistant-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.assistant-personas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.assistant-persona-btn {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    padding: 0.2rem 0.7rem;
    font-size: 0.75rem;
    cursor: pointer;
}

.assistant-persona-btn.active {
    border-color: #6366f1;
    background: rgba(79, 70, 229, 0.35);
    color: #e0e7ff;
}

.assistant-messages {
    max-height: 260px;
    overflow-y: auto;
    padding: 0.6rem 0.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(30, 64, 175, 0.6);
    background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.35), #020617);
    margin-bottom: 0.6rem;
}

.assistant-message {
    display: flex;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.assistant-message.user {
    justify-content: flex-end;
}

.assistant-message.assistant {
    justify-content: flex-start;
}

.assistant-bubble {
    max-width: 85%;
    padding: 0.45rem 0.7rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.assistant-message.user .assistant-bubble {
    background: #4f46e5;
    border-color: rgba(191, 219, 254, 0.7);
}

.assistant-input-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.assistant-input {
    flex: 1;
    min-height: 2.2rem;
    max-height: 120px;
    resize: none;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.assistant-send-btn {
    border-radius: 999px;
    border: none;
    background: #f97316;
    color: #0f172a;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.assistant-bubble.typing {
    display: inline-flex;
    gap: 0.18rem;
}

.assistant-bubble.typing .dot {
    width: 0.22rem;
    height: 0.22rem;
    border-radius: 999px;
    background: #e5e7eb;
    opacity: 0.6;
    animation: typing-bounce 1s infinite ease-in-out;
}

.assistant-bubble.typing .dot:nth-child(2) {
    animation-delay: 0.15s;
}

.assistant-bubble.typing .dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

.app-details-highlight {
    flex: 1.2 1 220px;
    border-radius: 1.5rem;
    background: radial-gradient(circle at top left, #38bdf8, #6366f1 50%, #020617 100%);
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #f9fafb;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
    position: relative;
    overflow: hidden;
}

.app-details-highlight::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 0% 0%, rgba(248, 250, 252, 0.18), transparent 55%);
    opacity: 0.7;
    transform: translate3d(-15%, -15%, 0);
    pointer-events: none;
}

.badge-pill {
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.7);
    margin-bottom: 0.7rem;
}

.badge-main {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.badge-sub {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-10px);
    }
}

.footer {
    background: #F3F4F8;
    border-top: 1px solid rgba(148, 163, 184, 0.5);
    padding: 1.5rem 1.5rem 2rem;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    color: #6b7280;
    font-size: 0.85rem;
}

/* Student portal styles – gradient home like Photos 3 & 4 */
.student-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 0% 0%, rgba(248, 250, 252, 0.35), transparent 55%),
        linear-gradient(180deg, #4f46e5 0%, #7c3aed 35%, #f97316 100%);
    color: #0f172a;
}

.student-main {
flex: 1;
width: 100%;
max-width: 960px;
margin: 0 auto;
padding: 2rem 1.5rem 4.5rem;
}

.student-section {
margin-bottom: 1.75rem;
}

.student-card {
    background: linear-gradient(135deg, #f9fafb, #eef2ff);
    border-radius: 1.8rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 1.6rem 1.5rem 1.5rem;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.recovery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.recovery-card {
    width: 100%;
    max-width: 420px;
}

.student-card-title {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
    color: #111827;
}

.student-card-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.1rem;
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.field-label {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: #4b5563;
}

.field-input {
    padding: 0.55rem 0.7rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: #ffffff;
    color: #111827;
    font-size: 0.95rem;
}

.field-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.6);
}

.field-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.student-message {
    min-height: 1.3rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.student-message.error {
    color: #fca5a5;
}

.student-message.success {
    color: #4ade80;
}

.button-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.link-button {
    background: transparent;
    border: none;
    color: #93c5fd;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.dashboard-info {
    font-size: 0.9rem;
    color: #cbd5f5;
}

.student-divider {
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.5);
    margin: 1.25rem 0 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 1rem;
}

.dashboard-block {
    background: linear-gradient(135deg, #fefce8, #eff6ff);
    border-radius: 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 1.1rem 1.2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.dashboard-block-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.muted-text {
    color: #9ca3af;
    font-size: 0.85rem;
}

.list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.class-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 0.95rem;
    border-radius: 1.3rem;
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.class-main {
    display: flex;
    flex-direction: column;
}

.class-time {
    font-size: 0.8rem;
    color: #4b5563;
}

.class-subject {
    font-weight: 600;
}

.class-tags {
    margin-top: 0.15rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.class-tag {
    font-size: 0.7rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
}

.class-tag.lab {
    background: #ede9fe;
    color: #5b21b6;
}

.class-tag.theory {
    background: #e0f2fe;
    color: #0369a1;
}

.class-tag-meta {
    font-size: 0.7rem;
    color: #6b7280;
}

.class-actions {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.attendance-btn {
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
    cursor: pointer;
}

.attendance-btn.loading {
    opacity: 0.7;
    cursor: wait;
    position: relative;
}

.attendance-btn.loading::after {
    content: "";
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.7);
    border-top-color: transparent;
    margin-left: 0.25rem;
    animation: attendance-spin 0.6s linear infinite;
}

@keyframes attendance-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.attendance-btn.present {
    border-color: #22c55e;
    color: #166534;
}

.attendance-btn.absent {
    border-color: #f97373;
    color: #b91c1c;
}

.attendance-btn.clear {
    border-style: dashed;
    color: #6b7280;
}

.status-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(255, 255, 255, 0.95);
}

.status-tag.present {
    border-color: #16a34a;
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
}

.status-tag.absent {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.bunk-guidance {
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

.bunk-guidance.bunk-safe {
    color: #15803d;
}

.bunk-guidance.bunk-risk {
    color: #b91c1c;
}

.subject-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.subject-main {
    display: flex;
    flex-direction: column;
}

.subject-name {
    font-weight: 500;
}

.subject-meta {
    font-size: 0.8rem;
    color: #9ca3af;
}

.percent-badge {
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
}

/* Tab navigation */
.tab-row {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.18);
    margin-top: 1.1rem;
}

.tab-button {
    border-radius: 999px;
    border: none;
    padding: 0.4rem 0.95rem;
    font-size: 0.85rem;
    cursor: pointer;
    background: transparent;
    color: rgba(15, 23, 42, 0.7);
}

.tab-button.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #f9fafb;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.35);
}

.tab-panel {
    margin-top: 1.2rem;
}

.schedule-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.schedule-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.schedule-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.schedule-date {
    flex: 1;
    text-align: left;
}

.schedule-day-strip {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: space-between;
}

.schedule-day-pill {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.25rem;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.04);
    cursor: pointer;
}

.schedule-day-pill-label {
    font-size: 0.7rem;
    color: #6b7280;
}

.schedule-day-pill-date {
    margin-top: 0.1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #111827;
}

.schedule-day-pill.selected {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.schedule-day-pill.selected .schedule-day-pill-label,
.schedule-day-pill.selected .schedule-day-pill-date {
    color: #f9fafb;
}

.icon-button {
    border: none;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    cursor: pointer;
    font-size: 1rem;
}

.icon-button:hover {
    background: rgba(15, 23, 42, 0.08);
}

.chip-button {
    font-size: 0.8rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    cursor: pointer;
}

.chip-button:hover {
    background: rgba(191, 219, 254, 0.8);
}

.visually-hidden-date-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.login-loading {
    margin-top: 0.5rem;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.4);
    border-top-color: #4f46e5;
    animation: spin 0.8s linear infinite;
}

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

/* Bottom navigation mirroring student app tabs */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.4rem 1rem 0.9rem;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    display: flex;
    justify-content: center;
    z-index: 40;
}

.bottom-nav-inner {
    width: 100%;
    max-width: 960px;
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
}

.bottom-nav-button {
    flex: 1;
    border: none;
    border-radius: 999px;
    padding: 0.35rem 0.5rem;
    background: transparent;
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
}

.bottom-nav-button.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #f9fafb;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.5);
}

/* Theme variants controlled from config/global.currentTheme
   The admin app writes config/global.currentTheme (e.g. NEON_TECH, MIDNIGHT_BLUE).
   student.js maps that to body classes like theme-neon-tech, theme-midnight-blue, etc. */

.student-body.theme-neon-tech {
    background:
        radial-gradient(circle at 0% 0%, rgba(248, 250, 252, 0.35), transparent 55%),
        linear-gradient(180deg, #4f46e5 0%, #7c3aed 35%, #0f172a 100%);
    color: #0f172a;
}

.student-body.theme-neon-tech .dashboard-hero-card {
    background: linear-gradient(135deg, #4f46e5, #7c3aed 45%, #22c55e 100%);
}

.student-body.theme-neon-tech .student-card {
    background: linear-gradient(135deg, #f9fafb, #eef2ff);
}

.student-body.theme-neon-tech .btn-primary {
    background: #22c55e;
    color: #0f172a;
}

.student-body.theme-neon-tech .percent-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

.student-body.theme-midnight-blue {
    background:
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.45), transparent 55%),
        linear-gradient(180deg, #020617 0%, #020617 35%, #000000 100%);
    color: #e5e7eb;
}

.student-body.theme-midnight-blue .dashboard-hero-card {
    background: linear-gradient(135deg, #0ea5e9, #1d4ed8 45%, #020617 100%);
}

.student-body.theme-midnight-blue .student-card {
    background: linear-gradient(135deg, #020617, #111827);
}

.student-body.theme-royal-gold {
    background:
        radial-gradient(circle at 0% 0%, rgba(250, 204, 21, 0.35), transparent 55%),
        linear-gradient(180deg, #facc15 0%, #f97316 40%, #0f172a 100%);
    color: #111827;
}

.student-body.theme-royal-gold .dashboard-hero-card {
    background: linear-gradient(135deg, #facc15, #f97316 40%, #0f172a 100%);
}

.student-body.theme-royal-gold .student-card {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.student-update-banner {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: #1e1b4b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.student-update-text {
    flex: 1;
}

.student-update-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
}

.student-update-message {
    font-size: 0.8rem;
    color: #c7d2fe;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 3.5rem;
    }

    .hero-inner {
        text-align: left;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .app-details-layout {
        flex-direction: column;
    }
}

/* Student portal mobile tuning */
@media (max-width: 640px) {
    .student-main {
        padding: 1.25rem 0.9rem 2.25rem;
    }

    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .essentials-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .schedule-header {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-actions {
        flex-wrap: wrap;
    }
}
