/* File: assets/css/smart-island.css */

:root {
    --primary-green: #009945;
    --dark-green: #00662e;
    --highlight-green: #80ffaa;
    --transition-bounce: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- 1. GLOBAL RESET & STICKY CONFIG --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { 
    background: white; 
    /* Sticky Footer Requirement: */
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

.main-wrapper {
    /* Sticky Footer Requirement: */
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- 2. AURORA MAIN CARD (White Island) --- */
.aurora-main-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    padding: 30px;
    width: 100%;
    border: none;
    margin-bottom: 25px;
}

.section-title {
    text-align: center;
    color: var(--primary-green);
    margin-bottom: 30px;
    font-size: 1.6rem;
    font-weight: 700;
}

/* --- 3. NAVBAR --- */
.navbar { background: #fff; padding: 10px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }

/* --- 4. SMART LOGISTIK AREA (UPDATED) --- */
/* Container Split (Kiri & Kanan) - Mengatur layout 2 kolom */
.tracking-container-split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    width: 100%; /* Pastikan ini 100% */
}

/* Tab Navigation Pill - Tombol Lacak/Tarif/Pajak */
.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.tab-btn.active {
    background: white;
    color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Efek timbul elegan */
}
.tab-btn:hover {
    color: var(--primary-green);
    background: rgba(255,255,255,0.6);
}

/* Form Container Lacak (Dipercantik) */
.tracking-box {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 13px;
    background: #f6fff7;
}
.tracking-form {
    display: flex;
    gap: 8px;
    background: #fff;
    padding: 5px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); /* Bayangan halus */
    border: 1px solid #f0f0f0;
}
.tracking-form input {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}
.tracking-form button {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.tracking-form button:hover {
    background: var(--dark-green);
}

/* Input Form Khusus (Tarif & Pajak) */
.form-control-aurora {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    background: #f8fafc;
    outline: none;
    transition: 0.3s;
}
.form-control-aurora:focus {
    border-color: var(--primary-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 153, 69, 0.1); /* Glow hijau saat diketik */
}

/* Label Form Kecil di atas Input */
.lbl-aurora {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

/* Tombol Hitung (Full Width) */
.btn-calc-aurora {
    width: 100%;
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0, 153, 69, 0.2);
    margin-top: 10px;
}
.btn-calc-aurora:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 153, 69, 0.3);
}

/* Tombol WA Hasil */
.wa-link-btn {
    display: block;
    margin-top: 15px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s;
}
.wa-link-btn:hover {
    filter: brightness(1.1);
}

/* Animasi Panel (Fade In saat ganti tab) */
.panel-content {
    animation: fadeSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 5. SIDE NAV DOCK (Hover & Effects) --- */
.nav-dock-item.active-green {
    width: 45px; height: 45px;
    background: var(--primary-green); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative;
    transition: var(--transition-bounce);
    margin-bottom: 5px;
}
.nav-dock-item.active-green:hover {
    background: var(--dark-green);
    transform: scale(1.15) translateX(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.nav-dock-item:hover svg { transform: rotate(-10deg); transition: 0.2s; }

.nav-toast {
    position: absolute; right: 130%; background: rgba(0, 0, 0, 0.85);
    color: white; padding: 6px 14px; border-radius: 6px;
    font-size: 0.75rem; font-weight: 600; white-space: nowrap;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.nav-dock-item:hover .nav-toast { opacity: 1; visibility: visible; right: 115%; }

/* --- 6. POPUP SCROLLING SYSTEM --- */
.aurora-modal {
    display: none; position: fixed; z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
}
.modal-content {
    margin: 30px auto; 
    width: 95%; max-width: 900px;
    animation: clingPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.modal-body-scroll {
    width: 100%; height: 80vh; 
    border: none; border-radius: 8px;
    background: white;
}
.close-btn { 
    float: right; font-size: 30px; font-weight: bold; 
    color: var(--primary-green); cursor: pointer; line-height: 1;
}

@keyframes clingPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- 7. TIMELINE & GRID (REVISED: PRESISI & RATA KANAN) --- */
.aurora-timeline { margin-top: 25px; position: relative; }
.aurora-timeline ul { list-style: none; padding: 0; margin: 0; }

/* Menggunakan 3-kolom flex agar DOT presisi otomatis di tengah GARIS */
.timeline-item { 
    display: flex; 
    position: relative; 
    margin-bottom: 0; 
    align-items: stretch; 
}

/* Kolom 1: WAKTU - RATA KANAN */
.timeline-time { 
    flex: 0 0 100px; 
    text-align: right; 
    padding-right: 20px; 
    padding-top: 5px;
    line-height: 1.3;
}
.timeline-time span { display: block; font-size: 13px; font-weight: 700; color: #333; }
.timeline-time .small-date { font-size: 10px; color: #999; font-weight: 400; }

/* --- 7. TIMELINE REVISION: VISIBLE LINE & SMALLER DOT --- */
.aurora-timeline ul { 
    list-style: none; padding: 0; margin: 0; 
}

/* Mematikan garis absolute lama */
.aurora-timeline ul::before { display: none !important; }

.timeline-item { 
    display: flex; 
    align-items: stretch; 
    margin-bottom: 0; 
}

/* ZONA 1: WAKTU (RATA KANAN) */
.tl-time-box {
    flex: 0 0 100px;
    text-align: right;
    padding-right: 15px;
    padding-top: 8px; /* Sesuaikan dengan posisi dot */
    line-height: 1.3;
}
.tl-time-box strong { display: block; font-size: 13px; color: #333; }
.tl-time-box span { font-size: 10px; color: #999; }

/* ZONA 2: MARKER (GARIS & TITIK) */
.tl-marker-box {
    flex: 0 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Menjamin titik & garis lurus sempurna */
    position: relative;
}

/* Ukuran Dot Diperkecil */
.tl-dot-custom {
    width: 10px;      /* Ukuran lebih kecil (sebelumnya 14px) */
    height: 10px;
    background: #bbb;
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 2;
    margin-top: 12px; /* Posisi titik sejajar baris pertama teks */
    flex-shrink: 0;
}

.timeline-item.active .tl-dot-custom {
    background: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(12, 161, 74, 0.2);
}

/* Warna Garis Dipergelap agar Terlihat */
.tl-line-custom {
    width: 2px;
    background: #ccc; /* Lebih gelap dari #f0f0f0 agar tidak hilang */
    flex-grow: 1;     /* Menarik garis otomatis ke bawah */
}
.timeline-item:last-child .tl-line-custom { background: transparent; }

/* ZONA 3: KONTEN */
.tl-content-box {
    flex: 1;
    padding-left: 15px;
    padding-bottom: 25px;
    text-align: left;
}
.tl-content-box h4 { font-size: 13px; font-weight: 700; color: #333; margin: 0 0 3px 0; text-transform: uppercase; }
.tl-content-box p { font-size: 11px; color: #666; margin: 0; line-height: 1.4; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-item { text-align: center; padding: 25px; border: 1px solid #f0f0f0; border-radius: 12px; background: #fafafa; transition: 0.3s; }

/* --- 8. GALLERY (FINAL FIX ZOOM) --- */
.gallery-track { display: flex; overflow-x: hidden; scroll-behavior: smooth; }

/* Padding tebal ditaruh DISINI */
.slide-group { 
    flex: 0 0 100%; 
    padding: 30px 10px; 
}

.gallery-grid { display: flex; justify-content: space-between; gap: 10px; }

.img-box { 
    width: 23%; 
    text-align: center; 
    background: white; 
    padding: 10px; 
    border-radius: 12px; 
    border: 1px solid #eee; 
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease; 
    cursor: pointer; 
    position: relative; 
    z-index: 1; 
}

.img-box:hover {
    transform: scale(1.13); 
    z-index: 10; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); 
    border-color: var(--primary-green); 
}

.img-box img { width: 100%; border-radius: 8px; border: 2px solid #333; aspect-ratio: 9/19; object-fit: cover; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: var(--primary-green); color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; z-index: 5; }

/* MEMBUAT TEKS LABEL HIDUP */
.img-box span { 
    display: block; 
    margin-top: 8px; 
    font-size: 0.75rem; 
    font-weight: 600; 
    color: #555; 
    transition: all 0.3s ease;
}

.img-box:hover span {
    color: var(--primary-green);
    letter-spacing: 0.5px;
    transform: translateY(3px);
}

.nav-btn { transition: all 0.2s ease; }
.nav-btn:hover { transform: translateY(-50%) scale(1.15); box-shadow: 0 0 15px var(--primary-green); }
.nav-btn:active { transform: translateY(-50%) scale(0.9); }

/* --- 9. RESPONSIVE --- */
@media (max-width: 768px) {
    .tracking-container-split { flex-direction: column !important; }
    .side-nav-dock { flex-direction: row !important; justify-content: center !important; width: 100% !important; margin-top: 15px; }
    .nav-toast { display: none; }
    .img-box { width: 48%; }
    .gallery-grid { flex-wrap: wrap; }
    .timeline-time { flex: 0 0 75px; padding-right: 10px; }
}

/* ======================================================= */
/* PROJECT GEMINI - SMART ISLAND UI STYLE */
/* File: assets/css/smart-island.css */
/* ======================================================= */

/* 1. TOMBOL UTAMA (FLOATING ACTION BUTTON) */
#smart-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0052FF 0%, #00C6FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: pulse-blue 2s infinite;
}

#smart-fab:hover {
    transform: scale(1.1) rotate(-10deg);
}

/* 2. CHAT BOX CONTAINER (THE ISLAND) */
#smart-chat-box {
    display: none; /* Default Hidden */
    flex-direction: column;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    height: 520px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 9999;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid #f0f0f0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Animasi muncul */
#smart-chat-box.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3. HEADER */
.smart-header {
    background: linear-gradient(135deg, #0052FF 0%, #0044cc 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smart-avatar {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
}

/* 4. BODY (CHAT AREA) */
.smart-body {
    flex: 1;
    background: #F5F7FB;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Bubble Chat */
.smart-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.bot-msg {
    align-self: flex-start;
    background: white;
    color: #333;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user-msg {
    align-self: flex-end;
    background: #0052FF;
    color: white;
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 82, 255, 0.2);
}

.system-msg {
    align-self: center;
    font-size: 12px;
    color: #FF3B30;
    background: #FFF0F0;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Typing Indicator */
.typing-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
    margin: 0 2px;
}
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

/* 5. FOOTER (INPUT) */
.smart-footer {
    padding: 12px;
    background: white;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

#smart-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border 0.2s;
}

#smart-input:focus {
    border-color: #0052FF;
}

#smart-send-btn {
    width: 40px;
    height: 40px;
    background: #0052FF;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
#smart-send-btn:hover { transform: scale(1.05); }

/* Animation Keyframes */
@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 82, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0); }
}
@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Markdown Styling */
.smart-msg strong { font-weight: 700; color: inherit; }
.smart-msg ul { padding-left: 20px; margin: 5px 0; }
.smart-msg li { margin-bottom: 4px; }