html {
    scroll-behavior: smooth;
}
/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* ==========================================================================
    ☕ REVISI FINAL NAVBAR: PREMIUM, CERAH, HIDUP & RAMAH LOGO ASLI
   ========================================================================== */
header {
    background-color: #b45b1c; /* Balik ke warna cokelat kopi hangat andalan lu */
    color: white;
    padding: 18px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Bayangan soft biar melayang elegan */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 🌟 BADGE LOGO BEANSELECT BARU: BERSIH & TIDAK MERUSAK WARNA LOGO ASLI */
.logo {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff; /* Mengembalikan teks warna putih bersih */
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.08); /* Kapsul kaca transparan tipis */
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Memastikan warna ikon cangkir kopi asli lu tetep keluar normal */
.logo span, .logo img {
    filter: none !important; 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

/* ✨ MENU NAVIGASI YANG HIDUP DAN INTERAKTIF */
.nav-links li a {
    color: #f5ebe0; /* Putih susu hangat */
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 6px 2px;
    display: inline-block;
    transition: color 0.3s ease;
}

/* Hover teks berubah menjadi putih terang */
.nav-links li a:hover {
    color: #ffffff !important;
    background: transparent !important; /* Hilangkan kotak kaku */
}

/* 🪄 ANIMASI GARIS BAWAH LUNGLUMAN */
.nav-links li::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -4px;
    left: 0;
    background-color: #f5ebe0; /* Garis bawah warna putih susu yang selaras */
    border-radius: 2px;
    transition: width 0.3s ease-in-out;
}

.nav-links li:hover::after {
    width: 100%; /* Garis meluncur anggun pas di-hover */
}

main {
    margin-top: 80px;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    color: white;
    position: relative;
    min-height: 400px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.admin-dashboard-hero {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('../images/dashboard-admin.jpg') center center / cover no-repeat;
    min-height: 380px;
    border-radius: 12px;
    margin-bottom: 40px;
    padding: 80px 20px;
    color: white;
    overflow: hidden;
}

.admin-dashboard-hero .hero-overlay {
    display: none;
}

.admin-dashboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.admin-dashboard-hero .hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.admin-dashboard-hero .hero-text h2 {
    font-size: clamp(2rem, 2.5vw, 3rem);
}

.admin-dashboard-hero .hero-text p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}


.admin-dashboard-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.admin-dashboard-hero .hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
}

.admin-dashboard-hero .hero-text h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.admin-dashboard-hero .hero-text p {
    font-size: 20px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
}

.btn {
    background-color: #8B4513;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #A0522D;
}
/* taruh di bawah .btn:hover lama lu bre */
.hero .btn {
    display: inline-block;
    margin-top: 25px; 
    padding: 15px 38px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff !important;
    text-decoration: none;
    
    /* GRADASI EMAS AMBER PREMIUM */
    background: linear-gradient(135deg, #cd6911 0%, #cb6c19 100%);
    
    border-radius: 50px; 
    box-shadow: 0 6px 20px rgba(162, 99, 43, 0.35); 
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease-in-out !important; 
}

.hero .btn:hover {
    transform: translateY(-4px); 
    background: linear-gradient(135deg, #c27e43 0%, #824D20 100%); 
    box-shadow: 0 10px 25px rgba(162, 99, 43, 0.5); 
}

.hero .btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(162, 99, 43, 0.3);
}

.section {
    padding: 40px 0;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #8B4513;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #A0522D;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th, .table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.table th {
    background-color: #8B4513;
    color: white;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Recommendation Styles */
.recommendation-card {
    background: linear-gradient(135deg, #fffaf2 0%, #fbf1e5 100%);
    border: 1px solid rgba(139, 69, 19, 0.15);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(121, 85, 72, 0.15);
    padding: 28px;
    margin-bottom: 30px;
    text-align: left;
}

.recommendation-card h3 {
    color: #5a341e;
    margin-bottom: 24px;
    font-size: 1.7rem;
    letter-spacing: 0.02em;
}

.coffee-display {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.coffee-summary {
    display: flex;
    gap: 22px;
    flex: 1 1 550px;
    min-width: 0;
}

.coffee-image {
    flex: 0 0 180px;
    min-width: 180px;
    max-height: 220px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0,0,0,0.08);
    background: #f8f0e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coffee-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
}

.coffee-details {
    flex: 1;
    min-width: 260px;
}

.coffee-analysis {
    background: #fff7ef;
    border: 1px solid rgba(194, 145, 96, 0.35);
    border-radius: 18px;
    padding: 22px;
    flex: 0 0 320px;
    min-width: 280px;
    color: #523923;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}

.coffee-analysis h4 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #4b3222;
    font-size: 1.05rem;
}

.coffee-analysis p {
    margin: 0;
    line-height: 1.75;
}

@media (max-width: 900px) {
    .coffee-display,
    .coffee-summary {
        flex-direction: column;
    }
    .coffee-analysis {
        width: 100%;
        min-width: 0;
    }
    .coffee-image {
        width: 100%;
        min-width: 0;
    }
}

.coffee-details h4 {
    margin-top: 0;
    color: #3f2a1a;
    font-size: 1.6rem;
}

.coffee-details p {
    margin: 10px 0;
    color: #4a3a31;
    line-height: 1.55;
}

.coffee-details p strong {
    display: inline-block;
    width: 120px;
    color: #6b442d;
}

.coffee-details .price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.coffee-details .price .currency,
.coffee-details .price .amount {
    white-space: nowrap;
}

.coffee-details .process-text,
.coffee-details .tasted-text {
    display: inline;
    color: #443128;
}

.coffee-details .process-text::before,
.coffee-details .tasted-text::before {
    content: '';
}

@media (max-width: 800px) {
    .coffee-display {
        flex-direction: column;
    }
    .coffee-image {
        flex: 1 1 auto;
    }
}

/* Harga dan deskripsi khusus di rekomendasi */
.price{
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.price .currency, .price .amount{
    white-space: nowrap;
}
.process-text, .tasted-text{
    display: block;
    margin: 4px 0;
}
.table td .process-text, .table td .tasted-text{
    font-size: 0.95em;
}
/* ==========================================================================
☕ SENTUHAN INTERAKTIF MODERN BY GINI (UNTUK DEMO SIDANG SKRIPSI)
   ========================================================================== */

/* 1. Efek Fade-In Halus saat Halaman Dibuka */
main, .section {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Mengubah Dropdown Biasa Menjadi Desain Card Selector Modern */
.card-selector-container {
    display: block; /* Menggunakan block agar aman di WeasyPrint/Web Engine */
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Sembunyikan Radio Button Aslinya */
.card-radio {
    display: none !important;
}

/* Tampilan Kotak/Card Pilihan */
.card-option {
    display: block;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Efek Hover pas Kursor Menyentuh Kotak */
.card-option:hover {
    border-color: #A0522D;
    background-color: #fffaf7;
    transform: translateX(5px);
}

/* Efek pas Kotak DIKLIK (Terpilih) */
.card-radio:checked + .card-option {
    border-color: #8B4513;
    background-color: #f7ede6;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
    font-weight: bold;
}

/* Tambahan Text Angka Biar Keren */
.card-option strong {
    color: #8B4513;
    margin-right: 5px;
}

/* 3. Efek Hover Melayang pada Kartu Hasil Rekomendasi Kopi Peringkat 1 */
.recommendation-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Efek transisi halus premium */
}

.recommendation-card:hover {
    transform: translateY(-8px); /* Kartu otomatis naik melayang ke atas */
    box-shadow: 0 25px 55px rgba(139, 69, 19, 0.22); /* Bayangan cokelat kopi makin tebal & lembut */
    border-color: rgba(139, 69, 19, 0.3); /* Garis tepi border makin tegas pas di-hover */
}

/* Bonus: Efek Hover Halus pada Baris Tabel Rekomendasi Lengkap */
.table tr {
    transition: all 0.2s ease;
}

.table tr:hover {
    background-color: #fff9f2 !important; /* Baris tabel berubah warna krem lembut saat disorot */
}

/* 4. Tampilan Layar Loading "Sedang Meracik Kopi" */
#coffee-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.97);
    z-index: 9999;
    display: none; /* Sembunyikan secara default */
    align-items: center;
    justify-content: center;
    text-align: center;
}

.coffee-loader-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Animasi Cangkir Goyang Lucu */
.loader-cup {
    font-size: 60px;
    animation: cupWobble 1.5s infinite ease-in-out;
    display: inline-block;
}

@keyframes cupWobble {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

.loader-text {
    font-size: 1.2rem;
    color: #6b442d;
    font-weight: bold;
    margin-top: 15px;
    font-family: 'Arial', sans-serif;
}
/* 1. Atur keadaan awal Hero Section agar siap dikasih efek memudar */
.hero {
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Kelas bantu untuk menghilangkan Hero secara halus */
.hero.fade-out {
    opacity: 0;
    transform: scale(0.95); /* Sedikit mengecil anggun pas menghilang */
}

/* 2. Atur keadaan awal Konten Edukasi (Awalnya hilang total secara display dan transparansi) */
.hidden-content {
    display: none;
    opacity: 0;
    transform: translateY(20px); /* Agak turun ke bawah sedikit sebelum muncul */
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

/* Kelas aktif saat gembok dibuka oleh JavaScript */
.hidden-content.show {
    display: block;
}

/* Kelas tambahan untuk memicu animasi muncul perlahan dari bawah ke atas */
.hidden-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}
/* ==========================================================================
    ☕ REVISI FINAL AREA CTA: PALET COKELAT SUSU & LENGKUNGAN SIMETRIS TOTAL
   ========================================================================== */
.cta-section {
    position: relative;
    padding: 100px 20px 100px 20px;
    
    /* GRADASI BARU: Cokelat Susu Hangat (Warm Milk Chocolate & Latte Cream) */
    background: linear-gradient(135deg, #c96615 0%, #aa5717 50%, #a4673a 100%);
    
    text-align: center;
    color: white;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    
    /* KUNCI SAKTI: Atas dan Bawah Dibuat Melengkung Sempurna (Simetris) */
    border-radius: 40px; /* Membuat keempat sudutnya melengkung anggun secara merata */
    box-shadow: 0 15px 35px rgba(111, 78, 55, 0.2); /* Bayangan lembut warna kopi susu */
}

/* Tekstur cahaya halus di tengah agar warna gradasi kopi susunya makin hidup */
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.cta-container {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Desain Tombol Konsultasi Biar Kontras Mewah */
.btn-cta {
    background: #ffffff !important;
    color: #6F4E37 !important; /* Warna teks tombol mengikuti warna cokelat susu pekat */
    padding: 16px 45px;
    font-size: 1.15rem;
    font-weight: bold;
    border-radius: 50px;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out !important;
}

/* Efek interaktif tombol pas didekati kursor */
.btn-cta:hover {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.2);
}