/* =================================================== */
/* 1. DESIGN TOKENS & RESET NORMALIZATION              */
/* =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300..900;1,300..900&display=swap');

:root {
--primary: #128AA1;         /* Warna Teal / Tosca Utama */
    --primary-dark: #128AA1;    /* Warna Teal Gelap (Latar Container Menu) */
    --primary-light: #C8F6FF;   /* Warna Biru/Cyan Muda (Latar Input) */
    --bg-app: #E0F2FE;          /* Warna Latar Paling Luar (Cyan Sangat Muda) */
    --bg-card: #FFFFFF;         /* Warna Kartu Putih */
    --radius-card: 24px;        /* Kelengkungan kotak menu besar */
    --radius-pill: 50px;        /* Kelengkungan tombol & input kapsul */
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Hanken Grotesk', sans-serif !important;
}   

h1, h2, h3, h4, .logo-text, .hero-badge {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

body, .app-container, .page {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 230px, #10A8A7 230px, #10A8A7 100%) !important;
    background-color: #FFFFFF;
    color: #1E293B;
    overflow-x: hidden;
}

/* =================================================== */
/* 2. CONTAINER RESPONSIVE (ANTI-BORDER DI HP!)        */
/* =================================================== */
.app-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #FFFFFF !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}
.logo-wrapper { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 24px; }
.logo-text { font-size: 18px; font-weight: 800; color: var(--primary); }
.status-badge { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.status-badge.online { background-color: #D1FAE5; color: #065F46; }
.status-badge.offline { background-color: #FEE2E2; color: #991B1B; }

/* ROUTING SPA ANIMATION */
.page { display: none; flex-grow: 1; }
.page.active { 
    display: flex !important; 
    flex-direction: column !important; 
    flex-grow: 1 !important; 
    width: 100%;
    animation: fadeIn 0.25s ease-in-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* =================================================== */
/* 3. HERO BANNER & DASHBOARD HOME (TAMPILAN MENARIK) */
/* =================================================== */
.hero-banner {
    background: linear-gradient(135deg, #128AA1 0%, #128AA1 50%, #14B8A6 100%);
    border-radius: 20px;
    padding: 24px;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.3);
    position: relative;
    overflow: hidden;
}
.hero-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}
.hero-content h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.hero-content p { font-size: 14px; opacity: 0.9; line-height: 1.4; max-width: 500px; }

.section-title { margin-bottom: 14px; }
.section-title h4 { font-size: 16px; color: var(--text-main); font-weight: 700; }

/* KARTU MENU UTAMA (GLOW-UP DESIGN) */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.service-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}
.service-card:hover, .service-card:active {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(13, 148, 136, 0.15);
}
.card-balita:hover { background: linear-gradient(to right, #FFFFFF, #F0FDFA); }
.card-bumil:hover { background: linear-gradient(to right, #FFFFFF, #FDF2F8); }

.card-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: #F1F5F9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.card-info { flex-grow: 1; }
.badge-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 4px;
}
.card-balita .badge-tag { background-color: #C8F6FF; color: #128AA1; }
.card-bumil .badge-tag { background-color: #FCE7F3; color: #9D174D; }

.card-info h3 { font-size: 17px; color: var(--text-main); margin-bottom: 4px; }
.card-info p { font-size: 13px; color: var(--text-muted); line-height: 1.3; }
.card-arrow { font-size: 20px; opacity: 0.5; transition: transform 0.2s; }
.service-card:hover .card-arrow { transform: translateX(4px); opacity: 1; }

/* KARTU ADMIN BIDAN DI BAWAH */
.admin-card {
    background-color: #FEF3C7;
    border: 2px dashed #F59E0B;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.admin-card:hover { background-color: #FDE68A; transform: scale(0.99); }
.admin-icon { font-size: 32px; }
.admin-text strong { display: block; font-size: 15px; color: #92400E; margin-bottom: 2px; }
.admin-text small { font-size: 12px; color: #78350F; line-height: 1.3; display: block; }

/* =================================================== */
/* 4. STYLING FORM & INPUT PRESISE                     */
/* =================================================== */
.form-container-desktop {
    max-width: 760px;           /* Agar form tidak terlalu melar lebar di layar PC */
    margin: 0 auto;
    width: 100%;
}
.nav-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}
.btn-back {
    padding: 8px 14px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px; font-weight: 700; cursor: pointer;
}
.nav-top h3 { font-size: 18px; }

.form-card {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.card-highlight-teal { border-color: var(--primary); background-color: #F0FDFA; }
.form-card h4 { font-size: 16px; color: var(--primary-dark); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px dashed var(--border-color); }

.form-group { margin-bottom: 14px; }
.form-group label, .label-main { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text-main); }
.wajib { color: var(--danger); }
.form-group input, .form-group select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;            /* Wajib 16px anti-zoom iPhone & ramah lansia */
    background-color: var(--bg-card);
}
.form-group input:focus, .form-group select:focus, textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.row-inputs { display: flex; gap: 12px; margin-bottom: 6px; }
.row-inputs .half { width: 50%; }

.input-unit { position: relative; display: flex; align-items: center; }
.input-unit input { padding-right: 60px !important; }
.input-unit span { position: absolute; right: 14px; font-size: 13px; font-weight: 700; color: var(--text-muted); pointer-events: none; }

.hint-text { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; display: block; }

/* BANNER PASIEN AKTIF DI LANGKAH 2 */
.patient-banner {
    background: linear-gradient(to right, #C8F6FF, #E0F2FE);
    border: 1.5px solid var(--primary);
    padding: 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.banner-icon { font-size: 28px; }
.banner-text strong { display: block; font-size: 16px; color: var(--primary-dark); }
.banner-text small { font-size: 13px; color: #0369A1; font-weight: 600; }

/* TOMBOL AKSI */
.btn-primary-action, .btn-sticky-simpan {
    width: 100%;
    padding: 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px; font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3);
    transition: all 0.2s;
    margin-top: 10px;
}
.btn-sticky-simpan { position: sticky; bottom: 16px; z-index: 50; }
.btn-primary-action:hover, .btn-sticky-simpan:hover { background-color: var(--primary-dark); transform: translateY(-2px); }

/* =================================================== */
/* 5. TABEL ADMIN & MODAL                              */
/* =================================================== */
.admin-toolbar { background: white; border: 1.5px solid var(--border-color); padding: 14px; border-radius: 12px; margin-bottom: 16px; }
.filter-box { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.action-buttons { display: flex; gap: 10px; }
.btn-export-excel { flex: 1; padding: 12px; background: #10B981; color: white; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; }
.btn-sync { background: #0284C7; }
.btn-clear-db { padding: 12px; background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; border-radius: 8px; font-weight: 700; cursor: pointer; }

.table-responsive { width: 100%; overflow-x: auto; background: white; border: 1.5px solid var(--border-color); border-radius: 12px; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 800px; font-size: 13px; }
.admin-table th { background: #F1F5F9; padding: 12px; text-align: left; font-weight: 800; border-bottom: 2px solid var(--border-color); }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--border-color); }
.badge-status { padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.badge-status.aman { background: #D1FAE5; color: #065F46; }
.badge-status.waspada { background: #FEF3C7; color: #92400E; }
.badge-status.bahaya { background: #FEE2E2; color: #991B1B; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.75); z-index: 1000; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-card { background: white; width: 100%; max-width: 420px; border-radius: 20px; padding: 24px; text-align: center; border-top: 8px solid var(--primary); max-height: 90vh; overflow-y: auto; }
.modal-icon-wrapper { font-size: 50px; margin-bottom: 10px; }
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.modal-patient-info { background: #F8FAFC; padding: 8px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.modal-detail-box { background: #F1F5F9; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.modal-saran-box { text-align: left; background: #FEF3C7; border-left: 4px solid #F59E0B; padding: 12px; border-radius: 8px; font-size: 13px; color: #92400E; margin-bottom: 18px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-modal-simpan { padding: 14px; background: var(--primary); color: white; border: none; border-radius: 12px; font-weight: 800; cursor: pointer; }
.btn-modal-batal { padding: 12px; background: transparent; border: 1px solid var(--border-color); border-radius: 12px; font-weight: 700; cursor: pointer; }
.modal-card.status-aman { border-top-color: var(--success); }
.modal-card.status-waspada { border-top-color: var(--warning); }
.modal-card.status-bahaya { border-top-color: var(--danger); }
.modal-card.status-bahaya .btn-modal-simpan { background: var(--danger); }

/* =================================================== */
/* 6. RAHASIA RESPONSIF SEJATI (PC DESKTOP MONITOR)   */
/* =================================================== */
@media screen and (min-width: 768px) {
    /* Saat dibuka di layar PC/Tablet lebar (> 768px), Menu Home Otomatis Jadi 2 Kolom! */
    .menu-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .hero-banner { padding: 36px; }
    .hero-content h2 { font-size: 28px; }
    .hero-content p { font-size: 16px; }
    .filter-box { flex-direction: row; }
}

@media screen and (min-width: 1024px) {
    /* Saat di monitor Laptop yang sangat lebar (> 1024px) */
    .app-container { padding: 24px 36px; }
}

/* Container Teal Besar Penampung Menu (Seperti di Frame 2 & 7) */
.menu-grid, .form-container-desktop {
    background-color: var(--primary-dark);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.2);
}

/* Mengubah Semua Kolom Input & Select Menjadi Bentuk Kapsul Putih */
.form-group input, .form-group select {
    background-color: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-pill) !important; /* Rahasia bentuk kapsul */
    padding: 14px 20px;
    font-size: 15px;
    color: #1E293B;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Mengubah Tombol "Lanjut" & "Simpan" Menjadi Kapsul Cyan Bersinar */
.btn-primary-action, .btn-sticky-simpan {
    background-color: #A5F3FC !important; /* Warna cyan terang dari Figma */
    color: #128AA1 !important;            /* Teks hijau tosca gelap */
    border-radius: var(--radius-pill) !important;
    padding: 16px 24px;
    font-weight: 800;
    text-transform: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
/* =================================================== */
/* ATURAN UKURAN GAMBAR ASLI DARI FIGMA                */
/* =================================================== */

/* 1. Logo di Header */
.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* 2. Ilustrasi Kartu Menu Home (Balita & Bumil) */
.card-icon-box {
    width: 70px;
    height: 70px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 3. Ilustrasi Kartu Admin Bidan */
.admin-icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 4. Ikon Kecil di Banner Pasien */
.banner-icon-box {
    width: 40px;
    height: 40px;
    min-width: 40px;
}
.banner-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* =================================================== */
/* KODE KHUSUS HOME SCREEN PRESISI FIGMA (360x800)     */
/* =================================================== */

/* 1. Header Logo Tengah (Bersih Tanpa Badge Online) */
.figma-top-header {
    background-color: #FFFFFF !important;
    padding: 43px 16px 42px 16px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.figma-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Ukuran Presisi Figma: persis 74px x 96.37px */
.figma-main-logo {
    width: 74px !important;
    height: 96.37px !important;
    object-fit: contain;
}

/* 2. Wadah Gradasi Resmi (Proporsi Figma 360x621) */
.home-figma-container {
    background: linear-gradient(180deg, #171D43 0%, #118DA2 50%, #10A8A7 100%) !important;
    border-top-left-radius: 40px !important;
    border-top-right-radius: 40px !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    
    /* Padding: Atas(28px) | Kanan(16px) | Bawah(15px) | Kiri(16px) */
    padding: 28px 16px 15px 16px !important;
    margin: 0 !important;
    width: 100%;
    
    min-height: calc(100vh - 181px) !important;
    height: auto !important;
    flex-grow: 1 !important;
    
    box-shadow: 0 -4px 20px rgba(16, 168, 167, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
}

/* 3. Judul "Selamat Datang!" & Pill Kategori */
.welcome-title {
    color: #FFFFFF !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
    letter-spacing: 0.3px;
}

/* Font Figma: Bold (700) ukuran 15px */
.welcome-pill {
    background-color: #C8F6FF !important;
    color: #128AA1 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 10px 0 !important;
    border-radius: 50px !important;
    display: block !important;
    width: 100% !important;
    max-width: 335px !important;      /* 👈 Disamakan lebar maksimalnya agar sejajar lurus */
    margin: 0 auto 20px auto !important; /* Memaksa posisi tepat di tengah */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center !important;
    box-sizing: border-box !important;
}

/* 4. Grid Kartu */
.figma-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 14px !important;
    width: 100%;
    max-width: 335px !important;      /* 👈 Kunci lebar dudukan kartu */
    margin: 0 auto !important;        /* 👈 MEMBUAT KARTU OTOMATIS RATA TENGAH SEMPURNA */
    position: relative !important;
    left: 0 !important;               /* 👈 PERBAIKAN: Menghapus nilai minus (-20px) yang bikin miring */
}

/* 5. Desain Kartu Utama (Putih Melengkung) */
.figma-card {
    background-color: #FFFFFF;
    border-radius: 32px !important; /* 👈 Mengubah lengkungan menjadi lebih membulat ala Figma */
    overflow: hidden;
    cursor: pointer;
    width: 100% !important;
    max-width: 335px !important;
    height: 131px !important;
    margin: 0 auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    zoom: 1 !important;
}

.figma-card:hover, .figma-card:active {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* 6. Isi Kartu (Teks Kiri, Gambar Kanan) */
.figma-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: calc(100% - 24px) !important;
    padding: 10px 12px 6px 14px !important;
}

.figma-card-text {
    flex: 1;
    padding-right: 8px;
}

/* Font Figma: Semibold (600), Size 20px, Line-height 20px */
.figma-card-text h3 {
    color: #128AA1 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    margin-bottom: -2px !important;
}

/* Font Figma: Semibold (600), Size 10px, Line-height 20px */
.figma-badge {
    background-color: #E2E8F0;
    color: #128AA1;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 15px !important;
    /* 👇 INI RAHASIANYA BIAR PANJANG KOTAK ABU-ABUNYA SAMA PERSIS KAYA DI FIGMA */
    width: 92px !important;          /* Kunci panjang kotaknya (bisa kamu ubah misal 90px, 92px, atau 95px) */
    text-align: left !important;     /* Rata kiri dulu */
    padding-left: 6px !important;
    border-radius: 10px;
    display: inline-block;
    margin-top: 2px !important;
    margin-bottom : 2px !important;
    text-transform: uppercase;
}

/* Font Figma: Semibold (600), Size 10px, Line-height 10px (diatur ke 11px agar bagian bawah huruf 'g/j/p' tidak terpotong sistem browser) */
.figma-card-text p {
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 11px !important;
    color: #128AA1 !important;
    margin: 0 !important;
}

/* Ilustrasi Lingkaran di Kanan */
.figma-card-img {
    width: 91px !important;
    height: 91px !important;
    min-width: 91px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px !important;   /* 👈 Menambahkan jarak di sebelah kanan ilustrasi */
}

.figma-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.figma-card-img.img-admin {
    width: 91px !important;
    height: 109px !important;
    min-width: 91px !important;
    margin-right: 12px !important;   /* 👈 Jarak untuk ilustrasi admin */
}

/* Strip Footer Abu-Abu & Tombol Panah Overlap ala Figma */
.figma-card-footer {
    background-color: #E2E8F0;
    height: 24px !important;
    min-height: 24px !important;
    width: 100%;
    position: relative;
}

.figma-arrow-btn {
    width: 32px;
    height: 32px;
    background-color: #10A8A7;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
    position: absolute;
    right: 16px;
    top: -12px;
    box-shadow: 0 4px 10px rgba(16, 168, 167, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.figma-card:hover .figma-arrow-btn {
    background-color: #128AA1;
    transform: translateX(4px);
}

/* =================================================== */
/* 7. POSISI BARU STATUS ONLINE (DI BAWAH KARTU ADMIN) */
/* =================================================== */
.status-footer-container {
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.badge-in-gradient {
    /* Membersihkan kotak tebal, membuatnya lebih rapi dan menyatu dengan gradien */
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    padding: 6px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    display: inline-block !important;
    position: static !important;
    box-shadow: none !important;
}

/* =================================================== */
/* OTOMATIS MELEBAR RAPI DI DESKTOP PC                 */
/* =================================================== */
@media screen and (min-width: 768px) {
    .app-container { padding: 24px !important; }
    .figma-cards-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        max-width: 960px;
        gap: 20px;
    }
    .home-figma-container {
        padding: 40px 36px !important;
        border-radius: 8px !important;
    }
    .welcome-title { font-size: 32px !important; }
    .welcome-pill { font-size: 15px !important; }
}

/* =================================================== */
/* KODE KHUSUS FORM REGISTRASI (100% MIRIP FIGMA)      */
/* =================================================== */

.figma-form-container {
    width: 100%;
    max-width: 360px !important;     /* Kunci ukuran sama dengan kartu di homescreen */
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px !important;            /* 👈 Dikecilkan dari 14px agar susunan input lebih rapat/kompak */
}

.figma-form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.figma-form-group.half {
    width: 50%;
}

/* 3. Label Teks Putih: Ukuran sedikit dikecilkan agar proporsional */
.figma-form-group label {
    color: #FFFFFF !important;
    font-size: 12px !important;      /* 👈 Dikecilkan dari 13px agar lebih rapi */
    font-weight: 700 !important;
    margin-bottom: 4px !important;   /* Jarak ke kotak input diperdekat */
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* 4. Baris 2 Kolom Sejajar */
.figma-row-inputs {
    display: flex;
    gap: 10px !important;            /* Jarak tengah antara kolom kiri & kanan */
    width: 100%;
}

/* 5. Input Kapsul Putih: Dibuat lebih ramping (Dikecilkan ukurannya) */
.figma-input-pill {
    width: 100%;
    background-color: #FFFFFF !important;
    border: 1.5px solid transparent !important;
    border-radius: 50px !important;
    padding: 10px 14px !important;   /* 👈 Dikecilkan dari 12px 18px agar tidak terlalu gendut */
    font-size: 12px !important;
    font-weight: 600 !important;
    height: 38px !important;         /* Kunci tinggi input pas di 38px */
    color: #128AA1 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box !important;
}

.figma-input-pill::placeholder {
    color: #128AA1 !important;
    opacity: 0.75;
    font-weight: 500;
}

.figma-input-pill:focus {
    border-color: #C8F6FF !important;
    box-shadow: 0 0 0 3px rgba(204, 251, 241, 0.3);
}

/* 6. Unit Input (Tahun & Bulan) */
.figma-input-unit {
    position: relative;
    display: flex;
    align-items: center;
    width: 50%;
}

.figma-input-unit input {
    padding-right: 55px !important;
}

.figma-input-unit span {
    position: absolute;
    right: 14px;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #128AA1 !important;
    pointer-events: none;
}

/* 7. Dropdown Select Kapsul */
.figma-select-wrapper {
    position: relative;
    width: 100%;
}

.figma-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 32px !important;
}

.figma-select-wrapper::after {
    content: "❯";
    font-size: 11px;
    font-weight: 800;
    color: #128AA1;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    pointer-events: none;
}

.figma-form-footer {
    margin-top: 179px !important;    /* 👈 KUNCI MUTLAK: Jarak pas 179px dari baris RT/RW di atasnya! */
    margin-bottom: 8px !important;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Tombol Lanjut Kapsul Cyan: Lebar disamakan 300px */
.figma-btn-action {
    width: 100% !important;
    max-width: 360px !important;     /* Lebar tombol pas sama kayak input dan kapsul Identitas */
    background-color: #C8F6FF !important;
    color: #128AA1 !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 0 !important;      /* Tinggi tombol proporsional */
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.figma-btn-action:hover, .figma-btn-action:active {
    background-color: #99F6E4 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.figma-btn-action .btn-arrow {
    font-size: 14px;
    font-weight: 900;
    transition: transform 0.2s ease;
}

.figma-btn-action:hover .btn-arrow {
    transform: translateX(4px);
}
/* =================================================== */
/* SPLASH SCREEN STYLING (100% FIGMA & ANIMASI HALUS)  */
/* =================================================== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #DFF5F7; /* Warna latar menyatu dengan manifest.json */
    z-index: 999999;           /* Posisi paling atas menutupi semua menu */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

/* Kelas tambahan untuk menghilangkan layar setelah 2.5 detik */
#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: zoomInLogo 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomInLogo {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.splash-logo {
    width: 130px;
    height: auto;
    margin-bottom: 16px;
    object-fit: contain;
}

.splash-text-group {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.splash-title {
    font-size: 40px;
    font-weight: 800;
    color: #128AA1;
    margin: 0;
    line-height: 1;
}

.splash-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #128AA1;
    margin: 0;
    line-height: 1.25;
    border-left: 2.5px solid #128AA1;
    padding-left: 12px;
}

/* Animasi Bar Loading Bergerak */
.loading-bar {
    width: 150px;
    height: 5px;
    background: rgba(13, 148, 136, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    width: 50%;
    height: 100%;
    background: #128AA1;
    border-radius: 10px;
    position: absolute;
    animation: loadBarAnim 1.2s infinite ease-in-out;
}

@keyframes loadBarAnim {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* =================================================== */
/* KODE KHUSUS PENGUKURAN FISIK BALITA (100% FIGMA)    */
/* =================================================== */

/* =================================================== */
/* KODE PENGUKURAN FISIK BALITA (100% PRESISI FIGMA)   */
/* =================================================== */

/* 1. Header Logo Horizontal (Gambar 2): Atas 32px, Bawah 22px */
.figma-header-horizontal {
    background-color: #FFFFFF !important;
    padding: 32px 16px 22px 16px !important; /* 👈 KUNCI PRESISI: Jarak Atas 32px, Bawah 22px */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.logo-title-main {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #128AA1 !important;
    line-height: 1;
    letter-spacing: 0.5px;
}

.logo-title-sub {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #128AA1 !important;
    margin-top: 3px !important;
}

/* 2. Kontainer Gradasi: Kunci Tinggi 708px (Sesuai rasio Frame 360x800) */
.home-figma-container.ukur-container {
    min-height: calc(100vh - 181px) !important;            /* 👈 KUNCI TINGGI GRADASI 708PX */
    height: auto !important;
    padding: 24px 16px 24px 16px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
}

/* 3. Tombol Kembali "❮ Edit Identitas" */
.figma-back-title {
    color: #FFFFFF !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    margin-bottom: 14px !important;
    cursor: pointer;
    text-align: center !important;
    width: 100%;
}

/* 4. RAHASIA KUNCI 300PX: Kapsul Pengukuran, Ketiga Kartu, dan Tombol Simpan */
.welcome-pill.ukur-pill {
    width: 325px !important;                 /* 👈 KUNCI LEBAR 300PX SAMA DENGAN KARTU */
    max-width: 325px !important;
    margin: 0 auto 18px auto !important;
    display: block !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.ukur-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 14px !important;
    width: 100%;
    max-width: 300px !important;             /* 👈 KUNCI LEBAR GRID 300PX */
    margin: 0 auto !important;
}

.ukur-card, .figma-card.ukur-summary-card {
    width: 300px !important;                 /* 👈 KUNCI LEBAR KARTU 300PX */
    max-width: 300px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.figma-form-footer.ukur-footer {
    width: 100%;
    max-width: 300px !important;             /* 👈 KUNCI LEBAR WADAH TOMBOL 300PX */
    margin: 22px auto 8px auto !important;
    display: flex;
    justify-content: center;
}

.figma-btn-action.ukur-btn {
    width: 300px !important;                 /* 👈 KUNCI LEBAR TOMBOL SIMPAN 300PX */
    max-width: 300px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* 5. Desain Kartu Ringkasan Atas (Nama & Ibu) */
.figma-card.ukur-summary-card {
    background-color: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    text-align: left;
}
.figma-card.ukur-summary-card .figma-card-body {
    padding: 14px 14px 14px 18px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 6. Desain Kartu Form Pengukuran (Putih Melengkung 20px) */
.ukur-card {
    background-color: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.ukur-card-header {
    background-color: #E2E8F0 !important;
    color: #128AA1 !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    padding: 8px 14px !important;
    letter-spacing: 0.2px;
}

.ukur-card-body {
    padding: 12px 14px 14px 14px !important;
    display: flex;
    flex-direction: column;
    gap: 10px !important;
}

.ukur-instruction {
    color: #128AA1 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    margin: 0 0 2px 0 !important;
}

.ukur-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.ukur-group.half { width: 50%; }
.ukur-group.full { width: 100%; }

.ukur-group label {
    color: #128AA1 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

/* 7. Input Kapsul Teal Gelap (#118DA2) */
.teal-input-pill {
    width: 100%;
    background-color: #118DA2 !important;
    border: 1.5px solid transparent !important;
    border-radius: 50px !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    height: 34px !important;
    color: #FFFFFF !important;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box !important;
}

.teal-input-pill::placeholder {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
}

.teal-input-pill:focus {
    background-color: #128AA1 !important;
    border-color: #C8F6FF !important;
}

/* Satuan Unit (kg / cm) Warna Putih */
.teal-input-unit {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.teal-input-unit input {
    padding-right: 38px !important;
}
.teal-input-unit span {
    position: absolute;
    right: 12px;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    pointer-events: none;
}

/* Dropdown Select Kapsul Teal */
.teal-select-wrapper {
    position: relative;
    width: 100%;
}
.teal-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 28px !important;
}
.teal-select-wrapper::after {
    content: "❯";
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    pointer-events: none;
}

/* =================================================== */
/* KODE PRESISI FINAL: HAPUS LOGO GANDA & JARAK 22PX   */
/* =================================================== */

/* 1. Header Logo Atas: Jarak ke ujung atas layar 32px, jarak ke Card Gradient tepat 22px */
.figma-top-header {
    background-color: #FFFFFF !important;
    padding: 43px 16px 42px 16px !important; /* 👈 ANGKA 22PX DI BAWAH MENJAMIN JARAK KE CARD PAS 22PX! */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* 2. Card Gradient: Kunci Tinggi 708px (Sesuai rasio 360x708) & Sudut Melengkung 40px */
.home-figma-container.ukur-container {
    background: linear-gradient(180deg, #171D43 0%, #118DA2 50%, #10A8A7 100%) !important;
    border-top-left-radius: 40px !important;
    border-top-right-radius: 40px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding: 24px 16px 24px 16px !important;
    margin: 0 !important;
    width: 100%;
    min-height: calc(100vh - 160px) !important;           /* 👈 KUNCI TINGGI GRADASI 708PX */
    height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
}

/* 3. Tombol Kembali "❮ Edit Identitas" */
.figma-back-title {
    color: #FFFFFF !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    margin-bottom: 14px !important;
    cursor: pointer;
    text-align: center !important;
    width: 100%;
}

/* 4. RAHASIA KUNCI RATA 300PX: Pill, Grid, Ketiga Kartu, dan Tombol Simpan Sejajar Lurus */
.welcome-pill.ukur-pill {
    width: 325px !important;                 /* Lebar dikunci persis 300px */
    max-width: 325px !important;
    margin: 0 auto 16px auto !important;
    display: block !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.ukur-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 14px !important;
    width: 100%;
    max-width: 300px !important;             /* Lebar grid dikunci persis 300px */
    margin: 0 auto !important;
}

/* =================================================== */
/* 3 KARTU PENGUKURAN (TERPISAH TOTAL & TIDAK DIGABUNG)*/
/* =================================================== */

/* --- KARTU 1 (ATAS): IDENTITAS ANAK --- */
.card-ukur-1 {
    background-color: #FFFFFF !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    width: 320px !important;                 /* 👈 Lebar dikunci pas 300px */
    max-width: 320px !important;
    margin: 0 auto !important;               /* Posisi otomatis di tengah */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
    text-align: left !important;
    box-sizing: border-box !important;       /* Mencegah padding melebarkan kartu */
    position: relative !important;
    /* Kalau mau geser Kartu 1 sendiri, aktifkan kode di bawah ini: */
    left: -10px !important; 
}

.card-ukur-1 .figma-card-body {
    padding: 14px 14px 14px 18px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}


/* --- KARTU 2 (TENGAH): FORM HASIL UKUR --- */
.card-ukur-2 {
    background-color: #FFFFFF !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    width: 325px !important;                 /* 👈 Lebar dikunci pas 300px */
    max-width: 325px !important;
    margin: 0 auto !important;               /* Posisi otomatis di tengah */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;       /* Mencegah padding melebarkan kartu */
    position: relative !important;
    /* Kalau mau geser Kartu 2 sendiri, aktifkan kode di bawah ini: */
    left: -10px !important; 
}


/* --- KARTU 3 (BAWAH): TINDAKAN MEDIS & VITAMIN --- */
.card-ukur-3 {
    background-color: #FFFFFF !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    width: 325px !important;                 /* 👈 Lebar dikunci pas 300px */
    max-width: 325px !important;
    margin: 0 auto !important;               /* Posisi otomatis di tengah */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;       /* Mencegah padding melebarkan kartu */
    position: relative !important;
    /* Kalau mau geser Kartu 3 sendiri, aktifkan kode di bawah ini: */
    left: -10px !important; 
}

.figma-form-footer.ukur-footer {
    width: 100%;
    max-width: 300px !important;
    margin: 20px auto 8px auto !important;
    display: flex;
    justify-content: center;
}

.figma-btn-action.ukur-btn {
    width: 335px !important;                 /* Lebar tombol simpan dikunci persis 300px */
    max-width: 335px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* =================================================== */
/* KODE KHUSUS BIAR CUMAN PAGE UKUR BALITA YANG NAIK   */
/* =================================================== */

/* 1. Potong latar belakang KHUSUS di halaman ukur balita pada angka 160px (1/4 layar) */
#page-ukur-balita {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 160px, #10A8A7 160px, #10A8A7 100%) !important;
}

/* 2. Pangkas jarak header atas KHUSUS di halaman ukur balita agar kartunya naik */
#page-ukur-balita .figma-top-header {
    padding: 16px 16px 10px 16px !important;
}

/* 3. Tarik card gradient KHUSUS halaman ukur agar mengisi 3/4 layar ke bawah */
#page-ukur-balita .home-figma-container.ukur-container,
.home-figma-container.ukur-container {
    min-height: calc(100vh - 160px) !important;
    padding: 24px 16px 90px 16px !important;
}

/* =================================================== */
/* REVISI FINAL: PAGE UKUR BALITA NAIK PRESISI 1/4 LAYAR*/
/* =================================================== */

/* 1. Latar Belakang: Putih diperpanjang sampai 280px agar TIDAK AKAN PERNAH ada garis teal bocor di atas kartu! */
#page-ukur-balita {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 280px, #10A8A7 280px, #10A8A7 100%) !important;
}

/* 2. Header Logo Atas: Dibuat kompak & otomatis pas agar putih yang tersisa nyaman di mata (~1/4 layar) */
#page-ukur-balita .figma-top-header {
    padding: 16px 16px 10px 16px !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}

/* 3. Ukuran Logo ASIH: Proporsional untuk area atas yang rapi */
#page-ukur-balita .figma-main-logo {
    width: 64px !important;
    height: 82px !important;
    object-fit: contain !important;
}

/* 4. WADAH GRADASI BIRU: Langsung naik menempel di bawah logo & mengisi sisa layar dengan mulus */
#page-ukur-balita .home-figma-container.ukur-container,
#page-ukur-balita .home-figma-container {
    margin: 0 !important;
    padding: 24px 16px 40px 16px !important; /* Padding bawah 40px memberi ruang nafas pas untuk tombol simpan */
    width: 100% !important;
    
    /* 👇 RAHASIA NAIK KE ATAS & ANTI-MELAR: Mengisi sisa layar pas di bawah logo (~108px) */
    height: auto !important;
    min-height: calc(100vh - 108px) !important;
    flex-grow: 1 !important;
    
    border-top-left-radius: 40px !important;
    border-top-right-radius: 40px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* =================================================== */
/* 5. PENGUNCI PRESISI 300PX (AGAR SEMUA KARTU SEJAJAR)  */
/* =================================================== */
#page-ukur-balita .welcome-pill.ukur-pill {
    width: 300px !important;
    max-width: 300px !important;
    margin: 0 auto 16px auto !important;
}

#page-ukur-balita .ukur-cards-grid {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

#page-ukur-balita .card-ukur-1,
#page-ukur-balita .card-ukur-2,
#page-ukur-balita .card-ukur-3,
#page-ukur-balita .ukur-card,
#page-ukur-balita .figma-card.ukur-summary-card {
    width: 300px !important;
    max-width: 300px !important;
    margin: 0 auto !important;
    left: 0 !important; /* Membatalkan geseran kiri/kanan lama yang bikin tidak rata */
}

#page-ukur-balita .figma-form-footer.ukur-footer {
    width: 100% !important;
    max-width: 300px !important;
    margin: 20px auto 10px auto !important;
}

#page-ukur-balita .figma-btn-action.ukur-btn {
    width: 300px !important;
    max-width: 300px !important;
    margin: 0 auto !important;
}

/* =================================================== */
/* KODE PENGUKURAN FISIK BALITA (100% PRESISI FIGMA)   */
/* =================================================== */

/* 1. Header Logo Atas: Jarak ke ujung atas layar 32px, jarak ke Card Gradient tepat 22px */
.figma-top-header {
    background-color: #FFFFFF !important;
    padding: 43px 16px 42px 16px !important; /* Jarak 22px di bawah menjamin jarak ke Card Pas 22px! */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* 2. Header Logo Horizontal: Logo horizontal centered di white background */
.figma-header-horizontal {
    background-color: #FFFFFF !important;
    padding: 32px 16px 22px 16px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.logo-title-main {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #128AA1 !important;
    line-height: 1;
    letter-spacing: 0.5px;
}

.logo-title-sub {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #128AA1 !important;
    margin-top: 3px !important;
}

/* 3. Latar Belakang Putih: Diperpanjang agar tidak ada garis teal bocor di atas kartu! */
#page-ukur-balita {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 160px, #10A8A7 160px, #10A8A7 100%) !important;
}

/* 4. Pangkas jarak header atas: Khusus di halaman ukur balita agar kartunya naik */
#page-ukur-balita .figma-top-header {
    padding: 16px 16px 10px 16px !important;
}

/* 5. Tarik card gradient khusus halaman ukur: Agar mengisi 3/4 layar ke bawah */
#page-ukur-balita .home-figma-container.ukur-container,
#page-ukur-balita .home-figma-container {
    min-height: calc(100vh - 160px) !important;
    padding: 24px 16px 14px 16px !important; /* Padding bawah dikecilkan dari 90px agar tombol lebih dekat ke konten */
    height: auto !important;
}

/* 6. Tombol Kembali "❮ Edit Identitas" */
.figma-back-title {
    color: #FFFFFF !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    margin-bottom: 14px !important;
    cursor: pointer;
    text-align: center !important;
    width: 100%;
}

/* 7. RAHASIA KUNCI 300PX: Pill, Grid, Ketiga Kartu, dan Tombol Simpan Lurus Sejajar */
#page-ukur-balita .welcome-pill.ukur-pill {
    width: 325px !important;
    max-width: 325px !important;
    margin: 0 auto 18px auto !important;
    display: block !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

#page-ukur-balita .ukur-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 14px !important;
    width: 100%;
    max-width: 300px !important;
    margin: 0 auto !important;
}

#page-ukur-balita .ukur-footer {
    width: 100%;
    max-width: 300px !important;
    margin: 22px auto 8px auto !important;
    display: flex;
    justify-content: center;
}

#page-ukur-balita .figma-btn-action.ukur-btn {
    width: 335px !important;
    max-width: 335px !important;
    margin: 0 auto !important;
}

/* --- KARTU 1 (ATAS): IDENTITAS ANAK --- */
#page-ukur-balita .card-ukur-1 {
    background-color: #FFFFFF !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    width: 320px !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
    text-align: left !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: -10px !important; /* Geser kartu sedikit ke kiri untuk rata tengah di HP */
}

#page-ukur-balita .card-ukur-1 .figma-card-body {
    padding: 14px 14px 14px 18px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#page-ukur-balita .figma-card-text {
    flex: 1;
    padding-right: 12px;
}

/* Nama Anak Besar */
#page-ukur-balita .figma-card-text h3 {
    color: #128AA1 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 24px !important;
    margin-bottom: 6px !important;
}

/* Pill Abu-abu untuk Nama Ibu */
.figma-mother-pill {
    background-color: #E2E8F0;
    color: #128AA1;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 15px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 2px 8px !important;
    border-radius: 10px;
    margin: 0 !important;
    text-transform: none;
}

.mother-label {
    opacity: 0.7;
    font-weight: 500;
}

#page-ukur-balita .figma-card-img {
    width: 91px !important;
    height: 91px !important;
    min-width: 91px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.figma-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ukur-card-footer-strip {
    background-color: #E2E8F0;
    height: 12px !important;
    min-height: 12px !important;
    width: 100%;
    position: relative;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}


/* --- KARTU 2 & 3: FORM HASIL UKUR & TINDAKAN --- */
#page-ukur-balita .card-ukur-2,
#page-ukur-balita .card-ukur-3 {
    background-color: #FFFFFF !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    width: 325px !important;
    max-width: 325px !important;
    margin: 0 auto !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: -10px !important; /* Geser kartu sedikit ke kiri untuk rata tengah di HP */
}

.ukur-card-header {
    background-color: #E2E8F0 !important;
    color: #128AA1 !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    padding: 8px 14px !important;
    letter-spacing: 0.2px;
}

.ukur-card-body {
    padding: 12px 14px 14px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.ukur-instruction {
    color: #128AA1 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    margin: 0 0 2px 0 !important;
}

.ukur-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.ukur-group.half { width: 50%; }
.ukur-group.full { width: 100%; }

.ukur-group label {
    color: #128AA1 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

/* 7. Input Kapsul Teal Gelap (#118DA2) */
.teal-input-pill {
    width: 100%;
    background-color: #118DA2 !important;
    border: 1.5px solid transparent !important;
    border-radius: 50px !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    height: 34px !important;
    color: #FFFFFF !important;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box !important;
}

.teal-input-pill::placeholder {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
}

.teal-input-pill:focus {
    background-color: #128AA1 !important;
    border-color: #C8F6FF !important;
}

/* Satuan Unit (kg / cm) Warna Putih */
.teal-input-unit {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.teal-input-unit input {
    padding-right: 38px !important;
}
.teal-input-unit span {
    position: absolute;
    right: 12px;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    pointer-events: none;
}

/* Dropdown Select Kapsul Teal */
.teal-select-wrapper {
    position: relative;
    width: 100%;
}
.teal-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 28px !important;
}
.teal-select-wrapper::after {
    content: "❯";
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    pointer-events: none;
}

/* Catatan Keluhan / Resep Bidan: Textarea Gelap */
.teal-textarea-pill {
    width: 100%;
    background-color: #118DA2 !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    padding: 8px 14px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    height: 60px !important;
    color: #FFFFFF !important;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box !important;
    resize: none;
}

.teal-textarea-pill::placeholder {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
}

.teal-textarea-pill:focus {
    background-color: #128AA1 !important;
    border-color: #C8F6FF !important;
}


/* =================================================== */
/* 8. POSISI BARU TOMBOL SIMPAN UKUR (BIRU MUDA)      */
/* =================================================== */
#page-ukur-balita .figma-form-footer.ukur-footer {
    width: 100% !important;
    max-width: 300px !important;
    margin: 20px auto 10px auto !important;
}

#page-ukur-balita .figma-btn-action.ukur-btn {
    width: 300px !important;
    max-width: 300px !important;
    margin: 0 auto !important;
    background-color: #C8F6FF !important;
    color: #128AA1 !important;
    border-radius: 50px !important;
    border: none !important;
}

/* =================================================== */
/* KODE PENGUKURAN FISIK BALITA (100% PRESISI FIGMA)   */
/* =================================================== */

/* 1. Sembunyikan TOTAL logo vertikal bawaan (Hapus Double Logo) */
body:has(#page-ukur-balita.active) .figma-top-header {
    display: none !important;
}

/* 2. Background dasar bersih (Putih) */
#page-ukur-balita {
    background: #FFFFFF !important;
    min-height: 100vh;
}

/* Pastikan tata letak (flex) HANYA berjalan saat halaman dipanggil/aktif */
#page-ukur-balita.active {
    display: flex !important;
    flex-direction: column;
}

/* 3. Header Logo Horizontal: Presisi tepat di atas layar */
.figma-header-horizontal {
    background-color: #FFFFFF !important;
    padding: 24px 16px 18px 16px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.logo-title-main {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #128AA1 !important;
    line-height: 1;
    letter-spacing: 0.5px;
}

.logo-title-sub {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #128AA1 !important;
    margin-top: 3px !important;
}

/* 4. Container Gradien: Ditarik ke atas & melengkung 30px seperti Figma */
#page-ukur-balita .home-figma-container.ukur-container {
    background: linear-gradient(180deg, #112347 0%, #10A8A7 100%) !important;
    border-top-left-radius: 30px !important;
    border-top-right-radius: 30px !important;
    margin-top: 0 !important;
    padding: 24px 16px 20px 16px !important;
    flex: 1;
    min-height: calc(100vh - 84px) !important;
    box-shadow: 0px -4px 20px rgba(0, 0, 0, 0.1) !important;
    height: auto !important;
}

/* 5. Tombol Kembali "❮ Edit Identitas" */
.figma-back-title {
    color: #FFFFFF !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    margin-bottom: 16px !important;
    cursor: pointer;
    text-align: center !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 6. Pill Kategori (Biru Muda) */
#page-ukur-balita .welcome-pill.ukur-pill {
    width: 100% !important;
    max-width: 335px !important;
    margin: 0 auto 16px auto !important;
    display: block !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* 7. Pengaturan Grid dan Lebar Semua Kartu agar Rata Tengah */
#page-ukur-balita .ukur-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 14px !important;
    width: 100%;
    margin: 0 auto !important;
}

#page-ukur-balita .card-ukur-1,
#page-ukur-balita .card-ukur-2,
#page-ukur-balita .card-ukur-3 {
    position: relative !important;
    left: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 335px !important;
    background-color: #FFFFFF !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
    box-sizing: border-box !important;
}

/* --- KARTU 1 (ATAS): IDENTITAS ANAK --- */
#page-ukur-balita .card-ukur-1 .figma-card-body {
    padding: 14px 14px 14px 18px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#page-ukur-balita .figma-card-text {
    flex: 1;
    padding-right: 12px;
}

#page-ukur-balita .figma-card-text h3 {
    color: #128AA1 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 24px !important;
    margin-bottom: 6px !important;
}

.figma-mother-pill {
    background-color: #E2E8F0;
    color: #128AA1;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 15px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 2px 8px !important;
    border-radius: 10px;
    margin: 0 !important;
    text-transform: none;
}

.mother-label {
    opacity: 0.7;
    font-weight: 500;
}

#page-ukur-balita .figma-card-img {
    width: 91px !important;
    height: 91px !important;
    min-width: 91px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.figma-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ukur-card-footer-strip {
    background-color: #E2E8F0;
    height: 12px !important;
    min-height: 12px !important;
    width: 100%;
    position: relative;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* --- KARTU 2 & 3: FORM HASIL UKUR & TINDAKAN --- */
#page-ukur-balita .card-ukur-2,
#page-ukur-balita .card-ukur-3 {
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
}

.ukur-card-header {
    background-color: #E2E8F0 !important;
    color: #128AA1 !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    padding: 8px 14px !important;
    letter-spacing: 0.2px;
}

.ukur-card-body {
    padding: 12px 14px 14px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.ukur-instruction {
    color: #128AA1 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    margin: 0 0 2px 0 !important;
}

.figma-row-inputs {
    display: flex;
    gap: 10px;
    width: 100%;
}

.ukur-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.ukur-group.half { width: 50%; }
.ukur-group.full { width: 100%; }

.ukur-group label {
    color: #128AA1 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

/* Input Kapsul Teal Gelap (#118DA2) */
.teal-input-pill {
    width: 100%;
    background-color: #118DA2 !important;
    border: 1.5px solid transparent !important;
    border-radius: 50px !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    height: 34px !important;
    color: #FFFFFF !important;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box !important;
}

.teal-input-pill::placeholder {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
}

.teal-input-pill:focus {
    background-color: #128AA1 !important;
    border-color: #C8F6FF !important;
}

/* Satuan Unit (kg / cm) Warna Putih */
.teal-input-unit {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.teal-input-unit input {
    padding-right: 38px !important;
}
.teal-input-unit span {
    position: absolute;
    right: 12px;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    pointer-events: none;
}

/* Dropdown Select Kapsul Teal */
.teal-select-wrapper {
    position: relative;
    width: 100%;
}
.teal-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 28px !important;
}
.teal-select-wrapper::after {
    content: "❯";
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    pointer-events: none;
}

/* Catatan Keluhan / Resep Bidan: Textarea Gelap */
.teal-textarea-pill {
    width: 100%;
    background-color: #118DA2 !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    padding: 8px 14px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    height: 60px !important;
    color: #FFFFFF !important;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box !important;
    resize: none;
}

.teal-textarea-pill::placeholder {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
}

.teal-textarea-pill:focus {
    background-color: #128AA1 !important;
    border-color: #C8F6FF !important;
}

/* 8. POSISI BARU TOMBOL SIMPAN UKUR (BIRU MUDA) */
#page-ukur-balita .figma-form-footer.ukur-footer {
    width: 100% !important;
    max-width: 335px !important;
    margin: 20px auto 10px auto !important;
    display: flex;
    justify-content: center;
}

#page-ukur-balita .figma-btn-action.ukur-btn {
    width: 100% !important;
    max-width: 335px !important;
    margin: 0 auto !important;
    background-color: #C8F6FF !important;
    color: #128AA1 !important;
    border-radius: 50px !important;
    border: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    font-weight: 800 !important;
    font-size: 14px !important;
    cursor: pointer;
}

/* Pengaturan Ukuran File SVG Logo Horizontal */
.logo-horiz-svg {
    height: 38px !important; /* Sesuaikan angka ini jika logonya terasa kekecilan/kebesaran */
    width: auto !important;
    object-fit: contain;
}

/* =================================================== */
/* MODAL DIAGNOSIS ALA FIGMA FRAME 5                  */
/* =================================================== */

/* Overlay Background Latar Belakang Blur */
.modal-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 35, 71, 0.6) !important; /* Warna navy transparan */
    backdrop-filter: blur(5px);
    display: none; /* Diatur active via JS */
    justify-content: center;
    align-items: center;
    z-index: 9999 !important;
    padding: 16px;
    box-sizing: border-box;
}

/* Tampilkan modal dengan flex saat class active dipanggil */
.modal-overlay.active {
    display: flex !important;
}

/* Kartu Putih Utama Modal */
.modal-card-figma {
    background-color: #FFFFFF !important;
    width: 100%;
    max-width: 335px; /* Lebar presisi mengikuti card figma */
    border-radius: 30px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 24px 20px 0 20px !important;
    box-sizing: border-box !important;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* 1. Logo Atas Mini */
.modal-figma-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.modal-figma-logo img {
    height: 28px !important;
    width: auto;
    object-fit: contain;
}

/* 2. Judul Status Gizi */
.modal-figma-title {
    color: #128AA1 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    margin: 0 0 14px 0 !important;
    letter-spacing: 0.5px;
}

/* 3. Lingkaran Ilustrasi Bayi */
.modal-figma-avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.modal-figma-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 1.5px solid #10A8A7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background-color: #FFFFFF;
}
.modal-figma-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 4. Pill Pasien (Teal Gelap) */
.modal-figma-pill-dark {
    background-color: #118DA2 !important;
    color: #FFFFFF !important;
    border-radius: 50px !important;
    padding: 8px 16px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* 5. Pill Hasil Angka (Teal Muda) */
.modal-figma-pill-light {
    background-color: #C8F6FF !important;
    color: #128AA1 !important;
    border-radius: 50px !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* 6. Kotak Abu-abu Saran Medis */
.modal-figma-saran-box {
    background-color: #E2E8F0 !important; /* Warna abu-abu halus figma */
    border-radius: 18px !important;
    padding: 12px 14px !important;
    text-align: left !important;
    margin-bottom: 16px !important;
    width: 100%;
    box-sizing: border-box;
    min-height: 70px;
}
.modal-figma-saran-box .saran-title {
    color: #128AA1 !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    margin-bottom: 4px;
}
#modal-saran {
    color: #475569 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 14px !important;
    margin: 0 !important;
}

/* 7. Tombol Kapsul Vertikal */
.modal-figma-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.btn-figma-save {
    background-color: #118DA2 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 11px 16px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}
.btn-figma-save:hover {
    background-color: #128AA1 !important;
}

.btn-figma-back {
    background-color: #C8F6FF !important;
    color: #128AA1 !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 11px 16px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}
.btn-figma-back:hover {
    background-color: #B2F5EA !important;
}

/* 8. Strip Abu di Paling Bawah */
.modal-figma-footer-strip {
    background-color: #E2E8F0 !important;
    height: 14px !important;
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-top: 10px;
}

.figma-admin-line {
    width: 45px !important;          /* Panjang garis */
    height: 4px !important;          /* Ketebalan garis */
    background-color: #128AA1 !important; /* Warna sesuai tema teks */
    border-radius: 4px !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
}

/* =================================================== */
/* KARTU DASHBOARD ADMIN BIDAN DESA (GROUP 64.PNG)     */
/* =================================================== */
/* =================================================== */
/* KARTU DASHBOARD ADMIN BIDAN DESA (REVISI)           */
/* =================================================== */

/* =================================================== */
/* KARTU MENU UTAMA (BALITA, BUMIL, ADMIN)             */
/* =================================================== */

.menu-card {
    background-color: #FFFFFF;
    border-radius: 20px; /* Lengkungan yang seragam dan pas */
    width: 100%;
    max-width: 330px; /* Ukuran lebar dikunci agar tidak kebesaran */
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    margin: 0 auto 1px auto; /* Jarak antar kartu */
    display: flex;
    flex-direction: column;
}

.menu-card-body {
    padding: 8px 8px 8px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Memastikan teks dan gambar sejajar di tengah */
    flex: 1;
}

.menu-card-text {
    text-align: left;
    flex: 1;
    padding-right: 8px;
}

.menu-card-text h3 {
    color: #118A9E; /* Warna Tosca */
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

/* Kapsul untuk Balita & Bumil */
.menu-badge {
    background-color: #E6E6E6;
    color: #118A9E;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

/* Garis pemisah khusus untuk Admin */
.menu-admin-line {
    width: 60px;
    height: 2px;
    background-color: #118A9E;
    margin-bottom: 8px;
    margin-top: 2px;
}

.menu-card-text p {
    color: #118A9E;
    font-size: 11px;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

/* Kontainer Gambar/Ikon */
.menu-card-icon {
    width: 95px; 
    height: 95px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Bagian Abu-abu di bawah kartu */
.menu-card-footer {
    background-color: #E5E5E5;
    height: 24px; /* Dibuat lebih tipis sesuai Frame 13_2 */
    width: 100%;
}

/* Tombol Panah */
.menu-card-btn {
    position: absolute;
    bottom: 8px; /* Mengatur posisi agar pas menimpa batas putih dan abu-abu */
    right: 16px;
    width: 32px;
    height: 32px;
    background-color: #118A9E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.menu-card:active .menu-card-btn {
    transform: scale(0.95);
}

/* =================================================== */
/* KODE FINAL PRESISI 100% FIGMA HOME (FRAME 13.PNG)   */
/* =================================================== */

/* 1. Header Putih Atas (Logo ASIH): Bersih dan Presisi */
.figma-top-header {
    background-color: #FFFFFF !important;
    padding: 36px 16px 28px 16px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}
.figma-main-logo {
    width: 70px !important;
    height: auto !important;
    object-fit: contain !important;
}

/* 2. Wadah Gradasi Teal to Navy: Sudut atas bulat 36px */
.home-figma-container {
    background: linear-gradient(180deg, #112347 0%, #118DA2 50%, #10A8A7 100%) !important;
    border-top-left-radius: 36px !important;
    border-top-right-radius: 36px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding: 24px 16px 30px 16px !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: calc(100vh - 180px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* 3. Judul "❮ Selamat Datang!" */
.home-header-title {
    color: #FFFFFF !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    margin-bottom: 14px !important;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.title-arrow {
    font-size: 18px !important;
    font-weight: 900 !important;
}

/* 4. Kapsul Kategori: Lebar dikunci 320px agar sejajar dengan kartu */
.home-category-pill {
    background-color: #C8F6FF !important;
    color: #128AA1 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 10px 0 !important;
    border-radius: 50px !important;
    width: 100% !important;
    max-width: 320px !important;
    text-align: center !important;
    margin: 0 auto 32px auto !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box !important;
}

/* 5. Grid Kartu: Kunci lebar mutlak 320px */
.home-cards-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
}

/* 6. Desain Kartu Putih Melengkung 24px */
.home-card {
    background-color: #FFFFFF !important;
    border-radius: 24px !important;
    width: 100% !important;
    max-width: 320px !important;
    height: 136px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    cursor: pointer;
    box-sizing: border-box !important;
    transition: transform 0.2s ease;
}
.home-card:active {
    transform: scale(0.98);
}

/* 7. Isi Kartu (Teks Kiri, Gambar Kanan) */
.home-card-body {
    padding: 12px 14px 6px 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: calc(100% - 24px) !important;
}
.home-card-text {
    flex: 1;
    text-align: left !important;
    padding-right: 8px;
}
.home-card-text h3 {
    color: #128AA1 !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    margin: 0 0 4px 0 !important;
}

/* Badge Kapsul Abu-abu (KMS & GIZI / SKRINING KEK) */
.home-badge {
    background-color: #E2E8F0 !important;
    color: #128AA1 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 8px !important;
    display: inline-block !important;
    margin-bottom: 4px !important;
    text-transform: uppercase;
}

/* Garis Teal Khusus Admin (Pengganti Badge) */
.home-admin-line {
    width: 55px !important;
    height: 2.5px !important;
    background-color: #128AA1 !important;
    margin: 4px 0 6px 0 !important;
    border-radius: 4px;
}

/* Teks Penjelasan Kecil di Bawah */
.home-card-text p {
    color: #128AA1 !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    line-height: 12.5px !important;
    margin: 0 !important;
}

/* Ilustrasi Lingkaran Kanan */
.home-card-img {
    width: 86px !important;
    height: 86px !important;
    min-width: 86px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.home-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.home-card-img.img-admin {
    width: 86px !important;
    height: 98px !important;
}

/* 8. Strip Abu-abu Bawah Kartu */
.home-card-footer {
    background-color: #E2E8F0 !important;
    height: 24px !important;
    min-height: 24px !important;
    width: 100% !important;
}

/* =================================================== */
/* RAHASIA FIGMA: TOMBOL PANAH OVERLAP MELAYANG        */
/* =================================================== */
.home-card-arrow {
    width: 32px !important;
    height: 32px !important;
    background-color: #128AA1 !important;
    color: #FFFFFF !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    font-weight: bold !important;
    position: absolute !important;
    right: 16px !important;
    
    /* 👇 KUNCI MATEMATIKA OVERLAP: 
       Tinggi strip abu-abu adalah 24px. Dengan bottom 8px, titik tengah tombol 
       (32px / 2 = 16px + 8px = 24px) berada tepat di garis batas putih & abu-abu! */
    bottom: 8px !important; 
    
    box-shadow: 0 4px 8px rgba(16, 168, 167, 0.3) !important;
}

/* 9. BAR STATUS OFFLINE DI PALING BAWAH LAYAR */
.home-status-bar {
    background-color: #E2E8F0 !important;
    width: 100% !important;
    padding: 8px 0 !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.status-text {
    color: #128AA1 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
}

/* =================================================== */
/* 1. REVISI SUDUT BAWAH KONTAINER (SEDIKIT MELENGKUNG)*/
/* =================================================== */
.home-figma-container {
    border-top-left-radius: 36px !important;
    border-top-right-radius: 36px !important;
    /* 👇 RAHASIA SUDUT SEDIKIT MELENGKUNG: Pakai 8px (Jangan minus!) */
    border-bottom-left-radius: 8px !important;  
    border-bottom-right-radius: 8px !important; 
    
    /* 👇 RAHASIA JARAK BAWAH: Padding bawah dibuat 32px agar seimbang dengan atasnya */
    padding: 24px 16px 32px 16px !important;
    margin-bottom: 0 !important;
}

/* =================================================== */
/* 2. GARIS DASHBOARD ADMIN (TIPIS & PANJANG PAS)      */
/* =================================================== */
.home-admin-line {
    width: 135px !important;  /* 👈 REVISI: Panjang pas sampai di ujung kata "Admin" */
    height: 2px !important;   /* 👈 REVISI: Lebih tipis & elegan (2px) */
    background-color: #128AA1 !important;
    margin: 4px 0 6px 0 !important;
    border-radius: 2px;
}

/* =================================================== */
/* 3. BAR STATUS FULL-WIDTH (ONLINE VS OFFLINE FIGMA)  */
/* =================================================== */
.home-status-bar {
    width: 100% !important;
    padding: 5px 0 !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Gambar 2 (Group 72 1): Kondisi Online (Latar Biru Es / Cyan Muda) */
.home-status-bar.online {
    background-color: #D5F5F6 !important; 
    color: #128AA1 !important;
}

/* Gambar 3 (Group 72): Kondisi Offline (Latar Abu-abu Halus) */
.home-status-bar.offline {
    background-color: #DCE3E8 !important; 
    color: #128AA1 !important;
}

/* =================================================== */
/* KODE KHUSUS REGISTRASI IBU HAMIL (FIGMA FRAME 8)   */
/* =================================================== */

/* 1. Kontainer Utama: Mengisi layar secara presisi dengan sudut bawah halus (8px) */
#page-reg-bumil .bumil-reg-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-height: calc(100vh - 140px) !important;
    padding: 24px 16px 24px 16px !important;
    border-top-left-radius: 36px !important;
    border-top-right-radius: 36px !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    margin: 0 !important;
    width: 100% !important;
}

/* 2. Judul "❮ Registrasi Ibu Hamil" Rata Tengah */
#page-reg-bumil .figma-back-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    margin-bottom: 16px !important;
    cursor: pointer;
}

/* 3. Pengunci Lebar Form (Maksimal 335px agar sejajar dengan kapsul atas) */
#page-reg-bumil .reg-bumil-form {
    width: 100% !important;
    max-width: 335px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important; /* Memaksa form mengisi sisa tinggi layar */
    gap: 12px !important;    /* Jarak antar baris input yang pas dan kompak */
}

/* 4. Rahasia Tombol Melayang di Bawah: Menggunakan margin-top auto */
#page-reg-bumil .reg-bumil-footer {
    margin-top: auto !important; /* Dorong tombol otomatis ke dasar layar */
    padding-top: 32px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

#page-reg-bumil .reg-bumil-footer .figma-btn-action {
    width: 100% !important;
    max-width: 335px !important;
    margin: 0 auto !important;
}

/* =================================================== */
/* KODE KHUSUS PENGUKURAN IBU HAMIL (FIGMA FRAME 9)    */
/* =================================================== */

/* 1. Sembunyikan Logo Utama Saat Halaman Ini Aktif (Anti Double Logo) */
body:has(#page-ukur-bumil.active) .figma-top-header {
    display: none !important;
}

/* 2. Background Dasar Bersih & Tata Letak Flex */
#page-ukur-bumil {
    background: #FFFFFF !important;
    min-height: 100vh;
}

#page-ukur-bumil.active {
    display: flex !important;
    flex-direction: column !important;
}

/* 3. Container Gradien: Melengkung Atas 30px & Mengisi Sisa Layar */
#page-ukur-bumil .home-figma-container.ukur-container {
    background: linear-gradient(180deg, #112347 0%, #10A8A7 100%) !important;
    border-top-left-radius: 30px !important;
    border-top-right-radius: 30px !important;
    margin-top: 0 !important;
    padding: 24px 16px 20px 16px !important;
    flex: 1;
    min-height: calc(100vh - 84px) !important;
    box-shadow: 0px -4px 20px rgba(0, 0, 0, 0.1) !important;
    height: auto !important;
}

/* 4. Pengunci Presisi Lebar (Max 325px) Agar Semua Kartu & Tombol Sejajar Lurus */
#page-ukur-bumil .welcome-pill.ukur-pill {
    width: 100% !important;
    max-width: 325px !important;
    margin: 0 auto 16px auto !important;
    display: block !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

#page-ukur-bumil .ukur-cards-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 325px !important;
    margin: 0 auto !important;
}

#page-ukur-bumil .card-ukur-1,
#page-ukur-bumil .card-ukur-2,
#page-ukur-bumil .card-ukur-3 {
    position: relative !important;
    left: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 325px !important;
    background-color: #FFFFFF !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

/* 5. Khusus Kartu 1 (Ringkasan Identitas Ibu Hamil) */
#page-ukur-bumil .card-ukur-1 .figma-card-body {
    padding: 14px 14px 14px 18px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#page-ukur-bumil .figma-card-text {
    flex: 1;
    padding-right: 12px;
}

#page-ukur-bumil .figma-card-text h3 {
    color: #128AA1 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 24px !important;
    margin-bottom: 4px !important;
}

#page-ukur-bumil .figma-card-img {
    width: 91px !important;
    height: 91px !important;
    min-width: 91px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 6. Tombol Simpan Kapsul Biru Muda di Bawah */
#page-ukur-bumil .figma-form-footer.ukur-footer {
    width: 100% !important;
    max-width: 325px !important;
    margin: 20px auto 10px auto !important;
    display: flex !important;
    justify-content: center !important;
}

#page-ukur-bumil .figma-btn-action.ukur-btn {
    width: 100% !important;
    max-width: 325px !important;
    margin: 0 auto !important;
    background-color: #C8F6FF !important;
    color: #128AA1 !important;
    border-radius: 50px !important;
    border: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 14px 16px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    cursor: pointer;
}

/* =================================================== */
/* REVISI STATUS BAR & KARTU 1 IBU HAMIL               */
/* =================================================== */

/* 1. Memastikan teks Nama di Kartu 1 Ibu Hamil sejajar vertikal di tengah */
#page-ukur-bumil .card-ukur-1 .figma-card-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    height: 100% !important;
}

/* 2. Memastikan Bar Status di halaman Bumil persis seperti di Home */
#page-reg-bumil .home-status-bar,
#page-ukur-bumil .home-status-bar {
    width: 100% !important;
    padding: 5px 0 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: auto !important; /* Mendorong bar status tepat ke lantai layar */
}

/* =================================================== */
/* REVISI FINAL POP-UP MODAL (FIGMA FRAME 11)          */
/* =================================================== */

/* 1. Memastikan Kartu Modal Tidak Kelebaran di HP & Sudut Bulat Halus */
.modal-card-figma {
    width: 100% !important;
    max-width: 335px !important;     /* Lebar dikunci pas ala kartu Figma */
    border-radius: 30px !important;  /* Kelengkungan kartu 30px */
    padding: 24px 20px 0 20px !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;     /* 👈 RAHASIA: Mencegah strip abu-abu bawah bocor dari sudut */
    margin: auto !important;
}

/* 2. Ukuran Teks Kapsul Angka (BB | TB | LiLA) agar Tidak Pecah/Turun Baris */
.modal-figma-pill-light {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    padding: 10px 12px !important;
    background-color: #C8F6FF !important;
    color: #128AA1 !important;
    border-radius: 50px !important;
    margin-bottom: 14px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    text-align: center !important;
}

/* 3. Strip Abu-abu di Bawah Kartu Sejajar Sempurna */
.modal-figma-footer-strip {
    background-color: #E2E8F0 !important;
    height: 16px !important;
    width: calc(100% + 40px) !important;
    margin-left: -20px !important;
    margin-top: 10px !important;
    border-bottom-left-radius: 30px !important;  /* Menyesuaikan sudut kartu */
    border-bottom-right-radius: 30px !important; /* Menyesuaikan sudut kartu */
}

/* 4. Efek Tekan (Active) pada Tombol Modal */
.btn-figma-save:active, .btn-figma-back:active {
    transform: scale(0.97) !important;
}

/* =================================================== */
/* PERBAIKAN POSISI TEKS KAPSUL MODAL (RATA KIRI FIGMA) */
/* =================================================== */

/* 1. Kapsul Gelap (Pasien) & Kapsul Muda (BB | TB | LiLA) Rata Kiri Sejajar */
.modal-figma-pill-dark,
.modal-figma-pill-light {
    display: flex !important;
    justify-content: flex-start !important; /* 👈 RAHASIA FIGMA: Mengubah dari center ke kiri (flex-start) */
    align-items: center !important;
    text-align: left !important;            /* 👈 Memaksa teks dimulai dari kiri */
    padding: 10px 20px !important;          /* 👈 Jarak kiri 20px agar huruf pertama 'P' dan 'B' sejajar lurus */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Styling Khusus Kapsul Angka (BB | TB | LiLA) agar Spasi Lega & Rapi */
.modal-figma-pill-light {
    background-color: #C8F6FF !important;
    color: #128AA1 !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
    letter-spacing: 0.5px !important;       /* 👈 Memberi rongga antar angka & garis '|' agar tidak dempet */
    gap: 8px !important;
}

/* 3. Styling Khusus Kapsul Gelap (Pasien) */
.modal-figma-pill-dark {
    background-color: #118DA2 !important;
    color: #FFFFFF !important;
    border-radius: 50px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    gap: 6px !important;
}

/* =================================================== */
/* KODE KHUSUS DASHBOARD ADMIN (FIGMA FRAME 14)        */
/* =================================================== */

/* 1. Kontainer Admin: Gradasi teal to navy dan mengisi layar */
#page-admin .home-figma-container.admin-container {
    background: linear-gradient(180deg, #112347 0%, #10A8A7 100%) !important;
    border-top-left-radius: 30px !important;
    border-top-right-radius: 30px !important;
    margin-top: 0 !important;
    padding: 24px 16px 20px 16px !important;
    flex: 1;
    min-height: calc(100vh - 84px) !important;
    box-shadow: 0px -4px 20px rgba(0, 0, 0, 0.1) !important;
    height: auto !important;
}

/* 2. Pengunci Lebar Kapsul Cari & Filter (Max 335px) */
.admin-filter-section {
    width: 100% !important;
    max-width: 335px !important;
    margin: 0 auto !important;
}

/* 3. Grid 3 Tombol Aksi (Sync | Download | Reset) Sejajar Sempurna */
.admin-action-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 335px !important;
    margin: 0 auto 16px auto !important;
}

.btn-admin-action {
    background-color: #C8F6FF !important;
    color: #128AA1 !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 10px 4px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 13px !important;
    text-align: center !important;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-admin-action:hover, .btn-admin-action:active {
    background-color: #99F6E4 !important;
    transform: translateY(-2px);
}

/* 4. Kartu Tabel Melengkung Putih Ala Figma */
.admin-table-card {
    background-color: #FFFFFF !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 335px !important;
    margin: 0 auto !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Scroll Horisontal Halus untuk Tabel Data */
.table-responsive-figma {
    width: 100% !important;
    overflow-x: auto !important;
    max-height: 420px !important;
    overflow-y: auto !important;
}

.admin-table-figma {
    width: 100% !important;
    min-width: 680px !important; /* Mencegah teks tabel gencet di HP */
    border-collapse: collapse !important;
    font-size: 11.5px !important;
    text-align: left !important;
}

/* Header Tabel Abu-abu #E2E8F0 persis Frame 14 */
.admin-table-figma thead th {
    background-color: #D9D9D9 !important;
    color: #128AA1 !important;
    font-weight: 800 !important;
    padding: 12px 10px !important;
    border-bottom: 2px solid #CBD5E1 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    white-space: nowrap !important;
}

.admin-table-figma tbody td {
    padding: 10px !important;
    border-bottom: 1px solid #F1F5F9 !important;
    color: #334155 !important;
    vertical-align: middle !important;
}

.admin-table-figma tbody tr:hover {
    background-color: #F8FAFC !important;
}

/* Pesan Kosong */
.empty-state-figma {
    padding: 30px 16px !important;
    text-align: center !important;
    color: #64748B !important;
    font-size: 13px !important;
}

/* Tombol Hapus Kecil di Dalam Tabel */
.btn-del-mini {
    background-color: #FEE2E2 !important;
    color: #991B1B !important;
    border: 1px solid #FCA5A5 !important;
    padding: 4px 10px !important;
    border-radius: 50px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    cursor: pointer;
}
.btn-del-mini:active { transform: scale(0.95); }

/* Sembunyikan logo utama jika halaman Admin sedang aktif */
body:has(#page-admin.active) .figma-top-header {
    display: none !important;
}

/* Mengatur kontainer gambar ikon */
.search-icon-wrapper {
    position: absolute !important;
    right: 16px !important;       /* 👈 Jarak pas dari lengkungan kanan kapsul */
    top: 50% !important;          /* 👈 KUNCI MUTLAK: Wajib 50% agar berada tepat di garis tengah */
    transform: translateY(-50%) !important; /* 👈 Menarik ikon tepat ke tengah vertikal */
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
    height: 100% !important;
}

.search-icon-wrapper img {
    width: 18px !important;       /* 👈 Ukuran 18px paling proporsional untuk tinggi kapsul 38px */
    height: 18px !important;
    object-fit: contain !important;
    opacity: 0.85 !important;
}

/* Memastikan teks yang diketik tidak menabrak ikon search di kanan */
#cariPasien {
    padding-right: 42px !important;
}

/* =================================================== */
/* KUNCI POSISI PANAH DROPDOWN (SEJAJAR IKON SEARCH)   */
/* =================================================== */

/* 1. Mengunci posisi ikon panah dropdown agar sama persis dengan ikon search */
.figma-select-wrapper::after {
    position: absolute !important;
    right: 19px !important;       /* 👈 Disamakan persis dengan right: 16px milik ikon search */
    top: 50% !important;          /* 👈 Wajib 50% agar tepat di tengah vertikal */
    transform: translateY(-50%) rotate(90deg) !important; /* 👈 Menarik ke tengah dan memutar tanda ❯ ke bawah */
    pointer-events: none !important;
    font-size: 14px !important;   /* 👈 Ukuran disesuaikan agar seimbang dengan ikon search 18px */
    color: #128AA1 !important;
    font-weight: 800 !important;
}

/* 2. Memberi jarak aman agar teks kategori tidak menabrak panah saat dipilih */
.figma-select-wrapper select {
    padding-right: 42px !important; /* 👈 Disamakan dengan padding input pencarian */
}

/* =========================================
   KODE KHUSUS HALAMAN ADMIN DASHBOARD
========================================= */

/* 1. Mengubah warna teks input pencarian, dropdown, dan teks tombol menjadi #128AA1 */
.page-admin input, 
.page-admin select, 
.page-admin button, 
.page-admin .btn {
    color: #128AA1 !important;
}

/* Mengubah warna tulisan bayangan (placeholder) "Cari Nama Pasien / RT" */
.page-admin input::placeholder {
    color: #128AA1 !important;
    opacity: 0.8;
}

/* 2. Mengubah background tombol (Sync, Download, Reset) menjadi #C8F6FF */
.page-admin button, 
.page-admin .btn {
    background-color: #C8F6FF !important;
    /* Tambahan opsional: memastikan tidak ada garis batas (border) bawaan */
    border: none !important; 
}

/* 3. Mengubah background judul tabel menjadi #D9D9D9 dan teksnya #128AA1 */
/* (Biasanya judul tabel menggunakan tag <th>) */
.page-admin table th,
.page-admin thead th {
    background-color: #D9D9D9 !important;
    color: #128AA1 !important;
}

/* 1. Mengubah warna teks placeholder saat belum diketik */
.figma-input-pill::placeholder,
#search-input::placeholder {
    color: #128AA1 !important;
    opacity: 1 !important; /* Memastikan warna tajam/tidak pudar */
}

/* 2. Mengubah warna teks utama & ikon di dalam input (opsional jika dibutuhkan) */
.figma-input-pill,
#search-input {
    color: #128AA1 !important;
}