/* -------------------------------------------------------------
 * Premium Design System - NutriPos Desa Rogo
 * Built using Vanilla CSS with CSS Variables & Glassmorphism
 * ------------------------------------------------------------- */

/* Variables Definition */
:root {
    --primary: #0d9488;
    /* Teal */
    --primary-hover: #0f766e;
    --primary-light: #f0fdfa;
    --secondary: #6366f1;
    /* Indigo */
    --secondary-hover: #4f46e5;
    --dark: #0f172a;
    /* Slate 900 */
    --gray-dark: #334155;
    /* Slate 700 */
    --gray: #64748b;
    /* Slate 500 */
    --gray-light: #cbd5e1;
    /* Slate 300 */
    --gray-soft: #f1f5f9;
    /* Slate 100 */
    --bg-main: #f8fafc;
    /* Page background */
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 15px rgba(13, 148, 136, 0.15);

    /* Health Status HSL Palettes */
    --status-normal-bg: #dcfce7;
    --status-normal-text: #166534;
    --status-warning-bg: #ffedd5;
    --status-warning-text: #9a3412;
    --status-danger-bg: #fee2e2;
    --status-danger-text: #991b1b;
    --status-info-bg: #dbeafe;
    --status-info-text: #1e40af;
    --status-purple-bg: #f3e8ff;
    --status-purple-text: #6b21a8;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Global resets & base setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Base Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
}

/* -------------------------------------------------------------
 * Layout Components
 * ------------------------------------------------------------- */

/* Navigation Bar */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.nav-links a.active {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 600;
}

.nav-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--status-warning-bg);
    color: var(--status-warning-text) !important;
    font-weight: 600 !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: 10px !important;
    border: 1px solid rgba(234, 88, 12, 0.25);
    transition: all 0.25s ease;
}

.nav-pdf-btn:hover {
    background-color: #fed7aa !important;
    color: #9a3412 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

.btn-login {
    margin-left: 0.5rem;
}

/* Main Content Wrapper */
.main-container {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Footer Section */
.footer {
    background-color: var(--dark);
    color: var(--gray-light);
    padding: 2.5rem 1.5rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer p {
    font-size: 0.95rem;
    color: #94a3b8;
}

.footer .sub-footer {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* -------------------------------------------------------------
 * UI Components & Buttons
 * ------------------------------------------------------------- */

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Buttons Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    text-decoration: none;
    text-align: center;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--gray-light);
    color: var(--gray-dark);
}

.btn-outline:hover {
    background-color: var(--gray-soft);
    border-color: var(--gray);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 6px;
    font-weight: 500;
}

.btn-blue {
    color: #2563eb;
    border-color: #bfdbfe;
}

.btn-blue:hover {
    background-color: #eff6ff;
}

.btn-orange {
    color: #ea580c;
    border-color: #fed7aa;
}

.btn-orange:hover {
    background-color: #fff7ed;
}

.btn-red {
    color: #dc2626;
    border-color: #fecaca;
}

.btn-red:hover {
    background-color: #fef2f2;
}

/* -------------------------------------------------------------
 * Notifications & Alerts
 * ------------------------------------------------------------- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background-color: var(--status-normal-bg);
    color: var(--status-normal-text);
    border: 1px solid rgba(22, 101, 52, 0.2);
}

.alert-danger {
    background-color: var(--status-danger-bg);
    color: var(--status-danger-text);
    border: 1px solid rgba(153, 27, 27, 0.2);
}

.alert-icon {
    font-weight: 700;
    font-size: 1.2rem;
}

.alert-message {
    font-size: 0.95rem;
    list-style-position: inside;
}

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

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

/* -------------------------------------------------------------
 * Hero & Search Sections (Public Beranda)
 * ------------------------------------------------------------- */
.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 2.5rem auto 3rem auto;
}

.hero-section h1 {
    font-size: 2.75rem;
    background: linear-gradient(135deg, var(--dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.15rem;
    color: var(--gray);
}

.search-container-box {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.search-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.search-help {
    color: var(--gray);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 2rem;
}

.search-form {
    display: block;
}

.input-group-search {
    display: flex;
    background-color: var(--bg-white);
    border: 1px solid var(--gray-light);
    border-radius: 16px;
    overflow: hidden;
    padding: 0.25rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.input-group-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    font-family: inherit;
}

.input-group-search button {
    border-radius: 12px;
}

/* Search results output */
.search-results-section {
    margin-top: 2.5rem;
    border-top: 1px solid var(--gray-soft);
    padding-top: 2rem;
}

.search-results-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.search-results-section .highlight {
    color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.05rem;
    font-weight: 500;
}

.empty-state .sub-empty {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.result-card {
    background-color: var(--bg-white);
    border: 1px solid var(--gray-soft);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.child-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.avatar-boy {
    background-color: #eff6ff;
}

.avatar-girl {
    background-color: #fdf2f8;
}

.child-info {
    flex: 1;
    min-width: 200px;
}

.child-info h4 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.child-nik {
    font-size: 0.85rem;
    color: var(--gray);
}

.child-meta {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.child-dusun {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Info Cards Block */
.info-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background-color: var(--bg-white);
    border: 1px solid var(--gray-soft);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.info-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* -------------------------------------------------------------
 * Child Profile View (Public / Admin)
 * ------------------------------------------------------------- */
.back-nav {
    margin-bottom: 1.5rem;
}

.btn-back {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.btn-back:hover {
    color: var(--primary);
}

.profile-header-container {
    margin-bottom: 2rem;
}

.child-profile-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 253, 250, 0.7));
}

.profile-main-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: var(--shadow-sm);
}

.profile-avatar.boy {
    background-color: #dbeafe;
}

.profile-avatar.girl {
    background-color: #fce7f3;
}

.profile-details {
    flex: 1;
    min-width: 250px;
}

.badge-gender {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gender-boy {
    background-color: #dbeafe;
    color: #1e40af;
}

.gender-girl {
    background-color: #fce7f3;
    color: #9d174d;
}

.profile-details h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.profile-nik {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.meta-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 500;
}

.meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-dark);
}

/* Status summary boxes */
.status-summary-grid {
    margin-bottom: 2.5rem;
}

.status-summary-card {
    border-left: 5px solid var(--primary);
}

.status-summary-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.status-date {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-box {
    background-color: var(--gray-soft);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.metric-icon {
    position: absolute;
    right: 0.75rem;
    bottom: 0.25rem;
    font-size: 2.5rem;
    opacity: 0.1;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}

.metric-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 0.25rem;
}

.metric-sub {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray);
}

.status-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    border-top: 1px solid var(--gray-light);
    padding-top: 1.5rem;
}

.status-badge-box {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.badge-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-dark);
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

.zscore-sub {
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

/* Badge colors mapping */
.status-normal,
.status-gizi-baik-normal {
    background-color: var(--status-normal-bg);
    color: var(--status-normal-text);
}

.status-kurang,
.status-pendek,
.status-gizi-kurang {
    background-color: var(--status-warning-bg);
    color: var(--status-warning-text);
}

.status-sangat-kurang,
.status-sangat-pendek,
.status-gizi-buruk {
    background-color: var(--status-danger-bg);
    color: var(--status-danger-text);
}

.status-risiko-berat-badan-lebih,
.status-tinggi,
.status-berisiko-gizi-lebih {
    background-color: var(--status-info-bg);
    color: var(--status-info-text);
}

.status-gizi-lebih,
.status-obesitas {
    background-color: var(--status-purple-bg);
    color: var(--status-purple-text);
}

/* Tabs navigation */
.dashboard-section-tabs {
    margin-bottom: 2rem;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--gray-soft);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tab-button {
    background: transparent;
    border: none;
    outline: none;
    padding: 0.75rem 1rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: var(--primary);
}

.tab-button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Interactive growth charts styles */
.chart-dashboard {
    background-color: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--gray-soft);
    box-shadow: var(--shadow-sm);
}

.chart-nav-subtabs {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--gray-soft);
    border-radius: 12px;
    padding: 0.35rem;
    gap: 0.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.subtab-button {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-dark);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.subtab-button.active {
    background-color: var(--bg-white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.chart-canvas-wrapper {
    width: 100%;
    max-height: 450px;
}

.chart-title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--gray-dark);
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* History table styled */
.table-card {
    padding: 1.5rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.data-table th {
    background-color: var(--gray-soft);
    color: var(--gray-dark);
    padding: 0.85rem 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-bottom: 2px solid var(--gray-light);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-soft);
    vertical-align: middle;
}

.data-table tr:hover td {
    background-color: rgba(13, 148, 136, 0.02);
}

.status-pill {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.zscore-text {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 0.15rem;
}

/* -------------------------------------------------------------
 * Admin Specific Forms & Layouts
 * ------------------------------------------------------------- */
.admin-dashboard-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.header-text h1 {
    font-size: 2.25rem;
    margin-bottom: 0.25rem;
}

.header-text p {
    color: var(--gray);
}

/* Stats panel cards */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
    margin-top: 0.25rem;
}

.card-blue {
    border-bottom: 4px solid #3b82f6;
}

.card-purple {
    border-bottom: 4px solid #8b5cf6;
}

.card-red {
    border-bottom: 4px solid #ef4444;
}

.card-orange {
    border-bottom: 4px solid #f97316;
}

.card-yellow {
    border-bottom: 4px solid #eab308;
}

.table-section-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.25rem;
}

.section-desc {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Badges count indicators */
.badge {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: var(--status-normal-bg);
    color: var(--status-normal-text);
}

.badge-warning {
    background-color: var(--status-warning-bg);
    color: var(--status-warning-text);
}

.badge-danger {
    background-color: var(--status-danger-bg);
    color: var(--status-danger-text);
}

/* Dashboard split grid */
.dashboard-split-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.activity-card {
    padding: 1.5rem;
}

.activity-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--gray-soft);
    padding-bottom: 0.75rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--gray-soft);
    padding-bottom: 0.75rem;
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.activity-avatar.boy {
    background-color: #dbeafe;
}

.activity-avatar.girl {
    background-color: #fce7f3;
}

.activity-avatar.bg-gray {
    background-color: var(--gray-soft);
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
}

.activity-title:hover {
    color: var(--primary);
}

.activity-subtitle {
    font-size: 0.75rem;
    color: var(--gray);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--gray-light);
}

.card-footer-action {
    margin-top: 1rem;
    text-align: center;
}

/* Admin Filters */
.filter-card {
    padding: 1.25rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: center;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

/* Forms layout and styles */
.form-wrapper-box {
    max-width: 800px;
    margin: 0 auto;
}

.form-card-standard h2 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.form-desc {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.form-standard {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group.mb-0 {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-dark);
}

.form-group .required {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--gray-light);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--gray);
    line-height: 1.3;
}

.radio-group-horizontal {
    display: flex;
    gap: 1.5rem;
    padding: 0.65rem 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

.radio-label input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
}

.form-actions-row {
    display: flex;
    gap: 1rem;
    border-top: 1px solid var(--gray-soft);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

/* Info Box / Tips */
.info-box-tips {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.info-tips-icon {
    font-size: 1.25rem;
}

.info-tips-content h5 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--primary-hover);
}

.info-tips-content ul {
    font-size: 0.8rem;
    color: var(--gray-dark);
    list-style-position: inside;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* -------------------------------------------------------------
 * Auth & Login Pages
 * ------------------------------------------------------------- */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
}

.login-card {
    max-width: 450px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.lock-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.login-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.login-header p {
    font-size: 0.85rem;
    color: var(--gray);
}

.form-check-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.form-check-group input {
    accent-color: var(--primary);
    width: 1rem;
    height: 1rem;
}

.login-footer-info {
    margin-top: 2rem;
    border-top: 1px solid var(--gray-soft);
    padding-top: 1.25rem;
    text-align: center;
}

.login-footer-info p {
    font-size: 0.8rem;
    color: var(--gray);
}

/* -------------------------------------------------------------
 * Pagination
 * ------------------------------------------------------------- */
.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination-wrapper nav {
    display: inline-flex;
    gap: 0.25rem;
}

.pagination-wrapper nav span,
.pagination-wrapper nav a {
    display: inline-flex;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.pagination-wrapper nav a:hover {
    background-color: var(--gray-soft);
}

.pagination-wrapper nav .active {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

/* Custom back nav alignment */
.back-nav-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.header-actions-standard {
    display: flex;
    gap: 0.75rem;
}

.child-link-name {
    text-decoration: none;
    color: var(--dark);
    transition: color 0.2s ease;
}

.child-link-name:hover {
    color: var(--primary);
}

.gender-indicator {
    display: inline-flex;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

.gender-indicator.boy {
    background-color: #dbeafe;
    color: #1e40af;
}

.gender-indicator.girl {
    background-color: #fce7f3;
    color: #9d174d;
}

.table-actions {
    display: inline-flex;
    gap: 0.35rem;
}

.text-right {
    text-align: right;
}

.font-large {
    font-size: 4rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .profile-main-info {
        flex-direction: column;
        text-align: center;
    }

    .profile-meta-grid {
        text-align: left;
    }

    .back-nav-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
}