/* pengunjung/assets/style.css */
:root {
    --biru: #1e6fd9;
    --biru-tua: #145bb3;
    --putih: #ffffff;
    --abu-muda: #f4f6f8;
    --abu: #e1e5ea;
    --abu-teks: #5a6570;
    --teks: #263238;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--abu-muda);
    color: var(--teks);
    line-height: 1.6;
}

/* HEADER */
.header {
    background: linear-gradient(135deg, var(--biru), var(--biru-tua));
    color: var(--putih);
    text-align: center;
    padding: 40px 20px;
}
.header .coffee { font-size: 48px; }
.header h1 { font-size: 26px; margin: 10px 0; }
.header p { font-size: 15px; opacity: .95; }

/* CONTAINER */
.container { max-width: 800px; margin: 0 auto; padding: 20px; }

/* FLASH */
.flash {
    background: #e7f3ff;
    border: 1px solid var(--biru);
    color: var(--biru-tua);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}
.card {
    background: var(--putih);
    border: 1px solid var(--abu);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.card-icon { font-size: 36px; margin-bottom: 8px; }
.card h2 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--abu-teks); font-size: 14px; margin-bottom: 16px; }

/* BUTTONS */
.btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: .2s;
}
.btn-primary { background: var(--biru); color: #fff; }
.btn-primary:hover { background: var(--biru-tua); }
.btn-secondary { background: var(--abu-teks); color: #fff; }
.btn-secondary:hover { background: #434d57; }
.btn-back {
    background: rgba(255,255,255,.2);
    color: #fff;
    margin-top: 16px;
    border: 1px solid rgba(255,255,255,.5);
}
.btn-back:hover { background: rgba(255,255,255,.3); }

/* FORM */
.form-section {
    background: var(--putih);
    border: 1px solid var(--abu);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}
.form-section h2 { font-size: 18px; margin-bottom: 16px; }
.form-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 12px 0 4px;
}
.form-section input[type="text"],
.form-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--abu);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.form-section input:focus,
.form-section textarea:focus {
    outline: none;
    border-color: var(--biru);
}
.form-section button { margin-top: 16px; }

/* STAR RATING */
.star-rating { font-size: 30px; color: var(--abu); cursor: pointer; user-select: none; }
.star-rating span { transition: color .15s; }
.star-rating span.active { color: #f5b301; }

/* DAFTAR TESTIMONI */
.testi-list { margin: 20px 0; }
.testi-list h2 { font-size: 18px; margin-bottom: 12px; }
.empty { color: var(--abu-teks); font-style: italic; }
.testi-item {
    background: var(--putih);
    border: 1px solid var(--abu);
    border-left: 4px solid var(--biru);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}
.testi-head { display: flex; justify-content: space-between; align-items: center; }
.testi-asal { color: var(--abu-teks); font-size: 13px; }
.testi-stars { color: #f5b301; font-size: 16px; margin: 4px 0; }
.testi-pesan { font-size: 14px; color: var(--teks); }

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--abu-teks);
    font-size: 13px;
}

/* UTIL */
.hidden { display: none; }

/* RESPONSIVE */
@media (max-width: 600px) {
    .cards { grid-template-columns: 1fr; }
    .header h1 { font-size: 22px; }
}

/* Tanggal approve testimoni */
.testi-date {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--biru-tua);
}

/* VISITOR BAR (di atas header) */
.visitor-bar {
    background: var(--biru-tua);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 24px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.visitor-bar span { white-space: nowrap; }

@media (max-width: 600px) {
    .visitor-bar { font-size: 12px; gap: 4px 16px; }
}
