body, html { height: 100%; margin: 0; font-family: 'Inter', sans-serif; background-color: #f8f9fa; }
#loader-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgb(255 255 255 / 80%); display: flex;
    flex-direction: column; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.5s, visibility 0.5s;
}
#loader-wrapper.hidden { opacity: 0; visibility: hidden; }
.loader {
    width: 50px; height: 50px; border: 5px solid #f3f3f3;
    border-top: 5px solid #468fea; border-radius: 50%;
    animation: spin 1s linear infinite; margin-bottom: 15px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.custom-css-1 { border-radius: 0 0 1rem 1rem; box-shadow: 0 2px 10px rgb(0 0 0 / 0.1); }
.question-card { border-radius: 0.75rem; background-color: #fff; }
.btn-primary { background-color: #468fea; border-color: #468fea; }

#image-template {
    position: absolute; left: -9999px; width: 1080px; height: 1080px;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 60px; box-sizing: border-box;
}
.template-card { background-color: rgba(255, 255, 255, 0.9); border-radius: 20px; padding: 40px; text-align: center; width: 90%; }
#template-title { font-size: 64px; font-weight: 800; color: #1a2c4e; }
#template-score-value { font-size: 120px; font-weight: 700; color: #468fea; margin: 20px 0; }
#template-interpretation { font-size: 42px; font-weight: 600; }

/* Customisasi Tab Scroll Horizontal */
.nav-pills-scrollable {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
    -ms-overflow-style: none;  
    padding-bottom: 5px; 
}
.nav-pills-scrollable::-webkit-scrollbar { display: none; }
.nav-pills-scrollable .nav-item { flex: 0 0 auto; min-width: 33.9%; }

/* Customisasi Tab Aktif (Border lebih besar & warna nyala) */
#rec-wizard .btn {
    transition: all 0.2s ease-in-out;
    border-width: 1px !important; /* Standar border */
}
#rec-wizard .btn.active {
    border: 2px solid #468fea !important; /* Border lebih tebal dan biru */
    background-color: #f0f7ff !important; /* Biru sangat muda */
    box-shadow: 0 4px 6px rgba(70, 143, 234, 0.15); /* Bayangan lembut */
}
.fab-audio {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(70, 143, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1050;
    font-size:14px;
}

/* Custom CSS untuk Tampilan Laporan Medis */
.medical-report-container {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    border-radius:15px;
}
/* Aksen garis di atas kertas seperti dokumen resmi */
.medical-report-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1b2d62 0%, #468fea 100%);
}
.report-section-title {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #495057;
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-left: 4px solid #468fea;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}
.rx-symbol {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1b2d62;
    font-style: italic;
    line-height: 1;
}
.report-text {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.5;
}
@media(max-width:767px){
    .fab-audio { width:max-content;}
    .medical-report-container {
        border-radius:0;
    }
}