/* --- CSS GLOBAL SODARAH --- */
body {
    background-color: #e9ecef; /* Lebih gelap di luar container agar fokus di tengah */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Membatasi lebar aplikasi menyerupai tampilan HP */
.app-container {
    max-width: 450px;
    margin: 0 auto;
    background-color: #fafbfc; /* bg-light lembut */
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    padding-bottom: 80px; 
    overflow-x: hidden;
}

.bg-sodarah-red { background-color: #DD4124 !important; }
.text-sodarah-red { color: #DD4124 !important; }

/* Marquee / Running Text Ticker Animation */
.ticker-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.ticker-text {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 15s linear infinite;
    padding-left: 100%; /* Mulai dari luar layar kanan */
}
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Custom Action Buttons */
.btn-action-card {
    border-radius: 1.25rem;
    transition: all 0.3s ease;
}
.btn-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
    border-color: #ffcccc !important;
}
.btn-action-card:active { transform: scale(0.96); }

/* Statistic Cards Hover Effect */
.stat-hover { transition: background-color 0.3s; }
.stat-hover:hover { background-color: #f8f9fa !important; }

/* Bottom Navigation Fixed */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    height: 70px;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
    z-index: 1030;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding-bottom: 8px;
    border-radius: 20px 20px 0 0;
}

.bottom-nav-link {
    color: #94a3b8;
    transition: all 0.2s;
    text-decoration: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bottom-nav-link span {
    font-size: 10px;
    font-weight: 500;
}

.bottom-nav-link:hover, .bottom-nav-link.active {
    color: #E53E3E;
    transform: translateY(-2px);
}

/* Floating Center Button */
.fab-home-container {
    position: relative;
    top: -25px;
    width: 60px;
}
.fab-home {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    margin: 0 auto;
    border: 4px solid #f4f7f6;
    box-shadow: 0 5px 15px rgba(229, 62, 62, 0.4);
    transition: transform 0.2s;
}
.fab-home-container:hover .fab-home { transform: scale(1.05); }

/* --- CSS KHUSUS HALAMAN INDEX --- */
.hero-section {
    background: linear-gradient(135deg, #DD4124 0%, #F58232 100%);
    border-radius: 0 0 40px 40px;
    padding-bottom: 70px; /* Ruang untuk floating card */
    box-shadow: 0 10px 20px rgba(221, 65, 36, 0.2);
    position: relative;
}

.floating-main-card {
    margin-top: -55px;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}

/* Ikon menu cepat dalam floating card */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #334155;
    transition: transform 0.2s;
}
.quick-action-btn:active { transform: scale(0.95); }

.icon-circle {
    width: 60px; height: 60px;
    border-radius: 20px; /* Bentuk squircle */
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Horizontal Scroll untuk Kebutuhan Darah */
.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 15px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}
.horizontal-scroll-container::-webkit-scrollbar { display: none; /* Hide scrollbar for Chrome */ }

.urgent-card {
    min-width: 240px;
    scroll-snap-align: center;
    border: 1px solid #fee2e2;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(221, 65, 36, 0.05);
    transition: transform 0.3s;
}
.urgent-card:active { transform: scale(0.98); }

.blood-type-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-weight: 800;
    width: 45px; height: 45px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

/* Background untuk Header yang melengkung standar */
.header-curved {
    background: linear-gradient(135deg, #DD4124 0%, #F58232 100%);
    border-radius: 0 0 30px 30px;
    box-shadow: 0 5px 15px rgba(221, 65, 36, 0.2);
}