/* =========================================
   1. SCROLLBAR 
   ========================================= */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #84A98C transparent;
}
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #84A98C; border-radius: 999px; }

/* =========================================
   2. GLASSMORPHISM
   ========================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 40px -10px rgba(132, 169, 140, 0.15);
}

/* =========================================
   3. NAVIGASI
   ========================================= */
.nav-link.tab-active {
    background: #52796F;
    color: white !important;
    box-shadow: 0 4px 15px rgba(82, 121, 111, 0.25);
    transform: translateY(-1px);
}

/* =========================================
   4. ANIMASI ANTREAN 
   ========================================= */
@keyframes queuePulse {
    0% { transform: scale(0.9); color: #354F52; }
    50% { transform: scale(1.05); color: #52796F; } 
    100% { transform: scale(1); color: #354F52; }
}
.queue-pulse { animation: queuePulse 0.6s ease-out; }

/* =========================================
   5. VIEW TRANSITIONS 
   ========================================= */
@keyframes fade-in-up-short {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fade-in-up-short 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
/* =========================================
   6. CTA BUTTON
   ========================================= */
.cta-button {
    background: linear-gradient(135deg, #52796F, #84A98C);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(82, 121, 111, 0.3);
    transition: all 0.3s ease;
    font-size: 0.875rem;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 121, 111, 0.4);
}
@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Konfigurasi API View Transition Browser */
::view-transition-old(root) { animation: 90ms ease-out both fade-out; }
::view-transition-new(root) { animation: 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both fade-in-up-short; }
 
/* Aksesibilitas: Matikan animasi jika user tidak suka gerakan */
@media (prefers-reduced-motion) {
    *, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================
   6. ANIMASI TERAPI NAPAS
   ========================================= */
/* Ini kode kunci agar lingkaran membesar/mengecil dengan mulus */
.breathe-transition {
    transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1), opacity 4s ease-in-out !important;
    will-change: transform, opacity;
}

/* Rotasi pelan untuk garis putus-putus */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spin-slow 12s linear infinite;
}

/* Glow Effect saat bernapas */
.breathing-glow {
    box-shadow: 0 0 60px 20px rgba(132, 169, 140, 0.4);
}



/* Indikator Centang di Kartu Layanan */
.service-card.selected-service .check-indicator {
    opacity: 1;
    transform: scale(1);
}

/* =========================================
   7. ANATOMY CALLOUT STYLE (Gaya Penunjuk Garis)
   ========================================= */

/* Container Tombol Utama (Wrapper) */
.anatomy-group {
    position: absolute;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    /* Titik pusat transformasi di ujung titik */
    transform-origin: center center; 
}

/* Titik Cincin (Target Ring) */
.anatomy-ring {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    border: 2px solid currentColor; /* Warna ngikut text parent */
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

/* Titik Tengah Kecil */
.anatomy-ring::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 4px; height: 4px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Garis Penghubung (Hanya Desktop) */
.anatomy-line {
    height: 1px;
    width: 0px; /* Default 0, memanjang saat hover/desktop */
    background-color: currentColor; /* Warna sama dengan ring */
    transition: width 0.4s ease;
    opacity: 0.7;
    margin: 0 2px;
}

/* Teks Label (Hanya Desktop) */
.anatomy-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    white-space: nowrap;
    opacity: 0; /* Default sembunyi */
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

/* --- STATE HOVER & DESKTOP --- */

/* Di Desktop, Teks & Garis Selalu Muncul (Opsional: atau pas hover aja) */
@media (min-width: 768px) {
    .anatomy-line { width: 40px; } /* Panjang garis */
    .anatomy-label { opacity: 1; transform: translateX(0); }
    
    /* Hover Effect: Scale up */
    .anatomy-group:hover .anatomy-ring { transform: scale(1.2); }
    .anatomy-group:hover .anatomy-label { background: #2F3E46; color: white !important; }
}

/* Ripple Animation tetap ada */
.anatomy-ring::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0.3;
    animation: ping 2s infinite;
}

/* =========================================
   8. UTILITIES TAMBAHAN
   ========================================= */
/* Sembunyikan Scrollbar tapi tetap bisa discroll */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========================================
   9. ANIMASI ANATOMI POP-OUT
   ========================================= */
@keyframes floatUpFade {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    20% { transform: translate(-50%, -80%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -200%) scale(1); opacity: 0; }
}

.animate-float-up {
    animation: floatUpFade 1s ease-out forwards;
    position: absolute;
    z-index: 50;
    pointer-events: none; /* Agar tidak mengganggu klik */
}

/* Memastikan tinggi card konsisten */
.anatomy-card-height {
    height: 450px; /* Tinggi fix agar kanan & kiri sama persis */
}