/* =====================================================================
   PALET WARNA CIRI KHAS KAKAO (RICH CACAO PALETTE)
   ===================================================================== */
:root {
    --cacao-dark: #2C1810;
    --cacao-medium: #4A2E2B;
    --cacao-gold: #D4A373;
    --cacao-cream: #FAF6F0;
    --leaf-green: #2E5A44;
    --leaf-green-hover: #224332;
    --muted-gray: #B0BEC5;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cacao-cream);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--cacao-dark);
    margin: 0;
    padding: 0;
}

/* =====================================================================
   HEADER STICKY & NAV
   ===================================================================== */
.header-app {
    background-color: var(--cacao-dark);
    color: var(--cacao-cream);
    padding: 1.2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* =====================================================================
   BAGIAN 1: HERO & OVERVIEW (SPACING DIPERBAIKI SANGAT PROPORSIONAL)
   ===================================================================== */
.section-full {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem 1.5rem;
    box-sizing: border-box;
}

.class-card {
    background: white;
    border: 1px solid rgba(44, 24, 16, 0.08);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    height: 100%;
}

.class-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(44, 24, 16, 0.12);
    border-color: var(--cacao-gold);
}

.btn-mulai {
    background: linear-gradient(135deg, var(--leaf-green), var(--leaf-green-hover));
    color: white;
    font-size: 1.25rem;
    padding: 1rem 3.2rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 6px 20px rgba(46, 90, 68, 0.3);
    transition: all 0.3s ease;
}

.btn-mulai:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(46, 90, 68, 0.45);
    color: white;
}

/* =====================================================================
   BAR STAGE BERBASIS IKON + GARIS PROGRES (4 TAHAPAN)
   ===================================================================== */
.stepper-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
}

/* Garis penghubung di belakang ikon */
.stepper-container::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 3px;
    background-color: #E0D6C8;
    z-index: 1;
}

.stage-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.stage-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--cacao-cream);
    border: 3px solid #D5C8B8;
    color: var(--muted-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.4s ease;
}

.stage-node.active .stage-icon-circle {
    border-color: var(--leaf-green);
    background-color: var(--leaf-green);
    color: white;
    box-shadow: 0 0 0 5px rgba(46, 90, 68, 0.2);
}

.stage-node.completed .stage-icon-circle {
    border-color: var(--cacao-gold);
    background-color: var(--cacao-gold);
    color: white;
}

.stage-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
    color: var(--muted-gray);
}

.stage-node.active .stage-label {
    color: var(--cacao-dark);
}

/* =====================================================================
   SHAPE BOX NAMA TAHAPAN & DESKRIPSI (CARD 2)
   ===================================================================== */
.stage-title-box {
    background-color: #F7F2EA;
    border: 1px solid #E6DAC8;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

/* =====================================================================
   AREA UPLOAD & PREVIEW ZOOM
   ===================================================================== */
.upload-dropzone {
    border: 2px dashed var(--cacao-gold);
    border-radius: 16px;
    background-color: white;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-dropzone.has-file {
    cursor: default;
    border-style: solid;
    border-color: #E0D6C8;
    padding: 1.5rem;
}

.upload-dropzone:not(.has-file):hover, 
.upload-dropzone:not(.has-file).dragover {
    background-color: #F4ECE1;
    border-color: var(--cacao-dark);
}

/* Pratinjau Gambar */
.preview-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.preview-img-element {
    max-height: 360px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    cursor: zoom-in;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.25s ease;
}

.preview-img-element:hover {
    transform: scale(1.02);
}

/* Animasi Kemunculan Tombol Aksi */
.action-buttons-container {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden;
}

.action-buttons-container.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.btn-hapus {
    border: 2px solid #DC3545;
    color: #DC3545;
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    transition: all 0.25s ease;
}

.btn-hapus:hover {
    background-color: #DC3545;
    color: white;
}

/* =====================================================================
   STYLING TAHAP 2 (OBSERVATION FORM & NAVIGASI B1)
   ===================================================================== */
.btn-reset {
    border: 2px solid var(--cacao-gold);
    color: var(--cacao-dark);
    background-color: transparent;
    transition: all 0.25s ease;
}

.btn-reset:hover {
    background-color: var(--cacao-gold);
    color: white;
}

.extra-small {
    font-size: 0.75rem;
}

/* =====================================================================
   WIDESCREEN CONTAINER (LEBAR MAKSIMAL 1480px UNTUK RUANG LENGANG)
   ===================================================================== */
.container-widescreen {
    max-width: 1480px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Penyesuaian Padding Card Gejala agar Selaras & Tidak Sesak */
.list-group-item {
    background-color: #FAFAFA;
    transition: background-color 0.2s ease;
}

.list-group-item:hover {
    background-color: #F0EDE6;
}

/* Tombol Toggle Mode Hover */
#btn-toggle-gejala {
    color: var(--cacao-dark) !important;
    font-weight: 600;
}

#btn-toggle-gejala:hover {
    color: var(--leaf-green) !important;
}

/* Atur batas tinggi gambar pratinjau di Stage 2 agar pas & ringkas */
#stage2-preview-img {
    max-height: 280px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}