@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --gb-green-dark: #0f5b28;
    --gb-green-primary: #15803d;
    --gb-green-light: #f0fdf4;
    --gb-green-border: #bbf7d0;
    
    --gb-orange-primary: #ea580c;
    --gb-orange-dark: #c2410c;
    --gb-orange-light: #fff7ed;
    --gb-orange-border: #ffedd5;

    --bg-main: #f6f8f5;
    --card-bg: #ffffff;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Clean Uncongested Header Navbar */
.gb-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 500;
    min-height: 76px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}

.gb-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.gb-logo-icon {
    width: 44px;
    height: 44px;
    background: #15803d;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
    flex-shrink: 0;
}

.gb-logo-text {
    display: flex;
    flex-direction: column;
}

.gb-logo-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.gb-logo-title span.green { color: var(--gb-green-primary); }
.gb-logo-title span.orange { color: var(--gb-orange-primary); }

.gb-logo-tagline {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-top: 2px;
}

.gb-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.gb-nav-link {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.gb-nav-link:hover, .gb-nav-link.active {
    color: var(--gb-green-primary);
}

.gb-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gb-orange-primary);
    border-radius: 2px;
}

.mobile-only-actions {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    width: 100%;
}

.desktop-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gb-enroll-btn {
    background: var(--gb-green-primary);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.25);
    transition: all 0.2s ease;
    min-height: 44px;
}

.gb-enroll-btn:hover {
    background: var(--gb-green-dark);
    transform: translateY(-1px);
}

.mobile-toggle-btn {
    display: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px;
    color: #334155;
    cursor: pointer;
    min-height: 42px;
    min-width: 42px;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

/* Target Image 1: Parent Login Layout */
.login-page-container {
    max-width: 1240px;
    margin: 40px auto;
    padding: 0 20px;
}

.login-split-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
}

.login-hero-left {
    display: flex;
    flex-direction: column;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-main-title .green { color: var(--gb-green-primary); }
.hero-main-title .orange { color: var(--gb-orange-primary); }

.hero-sub {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
}

.hero-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gb-green-primary);
    font-size: 18px;
    flex-shrink: 0;
}

.feature-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-kid-image-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 10px;
}

.hero-kid-image-wrap img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
}

.doodle-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 2px dashed var(--gb-green-primary);
    padding: 10px 16px;
    border-radius: 30px;
    color: var(--gb-green-dark);
    font-weight: 800;
    font-size: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: rotate(4deg);
}

.login-card-right {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.login-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-avatar-icon {
    width: 64px;
    height: 64px;
    background: var(--gb-green-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px auto;
    box-shadow: 0 6px 18px rgba(21, 128, 61, 0.3);
}

.login-card-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
}

.login-card-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-group-custom {
    margin-bottom: 20px;
}

.form-label-custom {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

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

.input-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.input-icon-right {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.form-control-custom {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    min-height: 48px;
}

.form-control-custom:focus {
    border-color: var(--gb-green-primary);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.forgot-link {
    display: block;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: var(--gb-green-primary);
    margin-top: 6px;
    margin-bottom: 24px;
    cursor: pointer;
}

.btn-green-submit {
    width: 100%;
    background: var(--gb-green-dark);
    color: #ffffff;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(15, 91, 40, 0.3);
    transition: all 0.2s ease;
    min-height: 48px;
}

.btn-green-submit:hover {
    background: #093b19;
}

.divider-or {
    display: flex;
    align-items: center;
    margin: 22px 0;
    color: #94a3b8;
    font-size: 13px;
}

.divider-or::before, .divider-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider-or span {
    padding: 0 12px;
}

.btn-google {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s ease;
    min-height: 46px;
}

.btn-google:hover {
    background: #f8fafc;
}

.login-card-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.login-card-footer strong {
    color: var(--gb-green-primary);
    cursor: pointer;
}

.trust-badges-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.trust-badge-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0fdf4;
    color: var(--gb-green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.trust-title {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
}

.trust-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* Target Image 2: Weekly Menu Poster Section */
.menu-poster-container {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
}

.poster-card {
    background: #fffdf5;
    border: 4px solid #15803d;
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.poster-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.poster-brand-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.poster-title-box {
    display: flex;
    flex-direction: column;
}

.poster-main-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    color: #15803d;
}

.poster-main-title span { color: #ea580c; }

.poster-subtitle {
    font-weight: 700;
    color: #15803d;
    font-size: 16px;
    letter-spacing: 0.1em;
}

.poster-location-badge {
    background: #15803d;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.poster-contact-box {
    background: #fefce8;
    border: 2px solid #fef08a;
    padding: 10px 18px;
    border-radius: 14px;
    text-align: right;
    font-weight: 800;
    color: #15803d;
}

.poster-highlights-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.highlight-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #15803d;
}

.highlight-pill span.bold { font-size: 12px; color: #0f172a; }

.ribbon-heading {
    background: linear-gradient(90deg, #15803d, #166534);
    color: #ffffff;
    text-align: center;
    padding: 12px;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.1em;
    border-radius: 10px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.2);
}

.weekly-menu-scroll-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.weekly-menu-6col {
    display: grid;
    grid-template-columns: repeat(6, minmax(180px, 1fr));
    gap: 14px;
}

.menu-day-col {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.day-header-badge {
    background: #15803d;
    color: #ffffff;
    text-align: center;
    padding: 8px;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.day-header-badge.orange { background: #ea580c; }

.day-items-list {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    flex: 1;
}

.day-item-name {
    font-weight: 800;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.day-item-sub {
    color: #64748b;
    font-weight: 600;
}

.day-photo-wrap {
    height: 120px;
    background: #f8fafc;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #e2e8f0;
}

.day-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 14px 20px;
    border-radius: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.poster-foot-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 12px;
    color: #15803d;
}

/* Target Image 3: Admin Console Layout */
.admin-shell-layout {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.admin-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 24px;
    flex: 1;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-nav-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.admin-nav-item.active {
    background: #15803d;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.admin-sidebar-promo {
    background: #f0fdf4;
    border: 1px dashed #bbf7d0;
    padding: 14px;
    border-radius: 14px;
    margin-top: auto;
    font-size: 12px;
}

.admin-main-area {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.admin-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-search-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 10px 18px;
    border-radius: 20px;
    width: 320px;
    font-size: 14px;
    outline: none;
}

.admin-header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-badge-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.icon-badge-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 10px;
}

.admin-5stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.admin-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.stat-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.stat-icon-wrap.green { background: #f0fdf4; color: #15803d; }
.stat-icon-wrap.orange { background: #fff7ed; color: #ea580c; }
.stat-icon-wrap.gold { background: #fefce8; color: #d97706; }

.stat-num-val {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label-text {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.stat-trend-text {
    font-size: 11px;
    color: #16a34a;
    font-weight: 700;
    margin-top: 6px;
}

.admin-middle-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.5fr;
    gap: 24px;
    margin-bottom: 28px;
}

.admin-card-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.panel-head-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-title-text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.action-btn-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: #334155;
    transition: all 0.2s ease;
}

.action-btn-card:hover {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.admin-summary-footer {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-stat-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Modal Shell Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Target Image 4: About Us Section */
.about-page-container {
    max-width: 1240px;
    margin: 40px auto;
    padding: 0 20px;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 48px;
}

.about-story-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.leaf-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #15803d;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.about-2x2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.about-card-img {
    height: 140px;
    width: 100%;
    object-fit: cover;
}

.about-card-body {
    padding: 18px;
}

.about-counters-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.counter-num {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 900;
    color: #15803d;
}

/* Target Image 5: Student Registration Page Layout */
.registration-container {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
}

.registration-hero-banner {
    background: linear-gradient(90deg, #fefce8, #f0fdf4);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.reg-layout-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 32px;
}

.reg-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: #15803d;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0fdf4;
}

.reg-sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reg-info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

/* Enhanced Responsive Rules - Clean Mobile Header & Uncluttered Navigation */
@media (max-width: 1024px) {
    .gb-navbar {
        padding: 16px 28px;
    }
    .login-split-card, .about-hero-grid, .reg-layout-grid, .admin-shell-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .admin-5stats-grid, .about-counters-row, .trust-badges-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-middle-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gb-navbar {
        padding: 12px 18px;
        min-height: 64px;
    }
    .gb-logo-title {
        font-size: 22px;
    }
    .gb-logo-tagline {
        font-size: 10px;
    }
    /* Hide right desktop action buttons on mobile to eliminate congestion */
    .desktop-header-actions {
        display: none !important;
    }
    /* Display mobile actions neatly inside the collapsible menu drawer */
    .mobile-only-actions {
        display: flex;
    }
    .gb-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        border-radius: 0 0 20px 20px;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
        z-index: 600;
        gap: 8px;
    }
    .gb-nav-links.mobile-open {
        display: flex;
    }
    .gb-nav-link {
        width: 100%;
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 700;
    }
    .gb-nav-link.active {
        background: #f0fdf4;
        color: #15803d;
    }
    .gb-nav-link.active::after {
        display: none;
    }
    .mobile-toggle-btn {
        display: inline-flex;
    }
    .poster-header-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .poster-highlights-bar {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: 12px;
    }
    .about-2x2-grid {
        grid-template-columns: 1fr;
    }
    .admin-5stats-grid, .about-counters-row, .trust-badges-row {
        grid-template-columns: 1fr;
    }
    .reg-form-card, .login-card-right, .about-story-card, .poster-card {
        padding: 20px;
    }
    .admin-main-area {
        padding: 16px;
    }

    /* 1. Mobile Interface Login: Put Login Form FIRST on mobile */
    .login-split-card {
        display: flex !important;
        flex-direction: column-reverse !important;
        padding: 20px 16px !important;
        gap: 20px !important;
        border-radius: 20px !important;
    }
    .login-card-right {
        width: 100% !important;
        padding: 20px 16px !important;
    }
    .login-hero-left {
        width: 100% !important;
        padding: 0 !important;
    }
    .hero-main-title {
        font-size: 24px !important;
        margin-bottom: 10px !important;
    }
    .hero-sub {
        font-size: 13px !important;
        margin-bottom: 16px !important;
    }
    .hero-kid-image-wrap {
        display: none !important; /* Hide massive hero photo on mobile to keep login form at top */
    }
    .hero-features {
        gap: 12px !important;
        margin-bottom: 16px !important;
    }
    .feature-icon-badge {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    /* 2. Parent Page Mobile Improvements */
    .about-counters-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .parent-header-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .parent-dashboard-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
    }

    /* 3. Admin Page Mobile Improvements */
    .admin-header-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 14px !important;
    }
    .admin-nav-tabs {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding-bottom: 8px !important;
        -webkit-overflow-scrolling: touch;
    }
    .admin-nav-tab {
        flex-shrink: 0 !important;
    }
    .admin-5stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .admin-middle-row {
        grid-template-columns: 1fr !important;
    }
}

/* Calendar View Base / Desktop Styling (> 768px) */
.cal-modal-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 24px;
    max-width: 640px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
}

.cal-grid-wrapper {
    width: 100%;
}

.cal-7col-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 8px;
}

.cal-7col-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-day-cell {
    border-radius: 12px;
    padding: 8px;
    height: 64px;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-sizing: border-box;
}

.cal-day-num {
    font-weight: 800;
    font-size: 13px;
}

.cal-day-badge {
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 800;
    display: block;
    margin-top: 2px;
}

/* 4. Calendar View Full-Screen Mobile Optimization (<= 768px) */
@media (max-width: 768px) {
    .modal-overlay.modal-overlay-fullscreen {
        padding: 0 !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    .cal-modal-card {
        padding: 16px 14px !important;
        border-radius: 0 !important;
        max-width: 100vw !important;
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    .cal-grid-wrapper {
        width: 100% !important;
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .cal-7col-header {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        gap: 6px !important;
        margin-bottom: 8px !important;
        text-align: center !important;
    }
    .cal-7col-grid {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 6px !important;
    }
    .cal-day-cell {
        min-height: 54px !important;
        height: auto !important;
        padding: 5px 3px !important;
        border-radius: 8px !important;
    }
    .cal-day-num {
        font-size: 12px !important;
    }
    .cal-day-badge {
        font-size: 8px !important;
        padding: 2px 3px !important;
        border-radius: 4px !important;
    }
}

@media (max-width: 480px) {
    .about-counters-row, .admin-5stats-grid {
        grid-template-columns: 1fr !important;
    }
}
