/* Created by Muhammad Johan */

/* ==============================================
   🎨 ZILA FOOD - STYLE.CSS (PENUH & TERKINI)
   ============================================== */

/* ===========================
   1. CSS VARIABLES (ROOT)
   =========================== */
:root {
    --primary: #2E7D32;
    --primary-light: #4CAF50;
    --primary-dark: #1B5E20;
    --accent: #FFD54F;
    --accent-dark: #FFC107;
    --bg: #F5F7F5;
    --card: #FFFFFF;
    --text: #1A1A1A;
    --text-muted: #6B7280;
    --success: #25D366;
    --danger: #EF4444;
    --info: #4285F4;
}

/* ===========================
   2. GLOBAL RESET & BASE
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #E5E7EB;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
}

/* ===========================
   3. PHONE FRAME
   =========================== */
.phone-frame {
    width: 100%;
    max-width: 420px;
    background: var(--bg);
    height: 100vh;
    height: 100dvh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

/* ===========================
   4. APP HEADER - FIXED
   =========================== */
.app-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 20px;
    color: #fff;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    z-index: 100;
}

.header-greeting {
    font-size: 1rem;
    opacity: 0.9;
    font-family: 'Great Vibes', cursive;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.header-name {
    font-size: 1.1rem;
    font-weight: 1000;
    margin-top: 2px;
    font-family: 'Great Vibes', cursive;
    letter-spacing: 1px;
}

/* ===========================
   5. CONTENT & TAB PAGES
   =========================== */

/* CONTENT - PADDING TOP BERUBAH MENGIKUT TICKER */
.content {
    flex: 1;
    overflow-y: auto;
    padding-top: 80px;        /* Ruang untuk header fixed */
    padding-bottom: 90px;     /* Ruang untuk bottom nav */
    -webkit-overflow-scrolling: touch;
}


/* Bila ticker ada, content kena tambah padding */
.content.has-ticker {
    padding-top: 100px; /* header 80px + ticker 50px */
}


.tab-page {
    display: none;
    margin: 0;
    padding: 0;
    animation: fadeIn 0.3s ease;
}

.tab-page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   6. HERO IMAGE & CAPTION
   =========================== */
.hero-image {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    margin-top: -2.6rem;
}

/* ==============================================
   HERO CAPTION - PACIFICO FONT
   ============================================== */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

.hero-caption {
    padding: 16px 20px;
    text-align: center;
    background: var(--card);
    margin: 0;
    
}

.hero-caption h2 {
    
    font-size: 1.2rem;
    font-weight: 1000;
    color: green; 
    margin-bottom: 4px;
    font-family: 'Pacifico', cursive;
    letter-spacing: 0.5px;
}

.hero-caption p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===========================
   7. MENU SECTION
   =========================== */
.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    padding: 16px 20px 12px;
}

.menu-list {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    background: var(--card);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.menu-item.featured {
    background: linear-gradient(135deg, #FFF8E1, #FFFDE7);
    border: 2px solid var(--accent);
}

.menu-item-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
    cursor: pointer;
}

.menu-info {
    flex: 1;
    min-width: 0;
}

.menu-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.menu-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.menu-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 12px;
}

.menu-price {
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.menu-item.featured .menu-price {
    background: var(--accent-dark);
    color: var(--primary-dark);
}

/* ===========================
   8. BUTTONS & QUANTITY
   =========================== */
.add-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.add-btn:active {
    transform: scale(0.8);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F3F4F6;
    border-radius: 10px;
    padding: 3px;
}

.quantity-control button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: var(--card);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.quantity-control .qty-num {
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 20px;
    text-align: center;
}

/* ===========================
   9. CART SUMMARY
   =========================== */
.cart-summary {
    background: var(--card);
    border-radius: 16px;
    padding: 16px;
    margin: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 0.85rem;
}

.cart-item-row:last-child {
    border-bottom: none;
}

.cart-item-name {
    font-weight: 600;
}

.cart-item-qty {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    margin-top: 10px;
    border-top: 2px solid #E5E7EB;
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-size: 0.85rem;
}

/* ===========================
   10. CTA BUTTONS
   =========================== */
.cta-btn {
    padding: 14px;
    border-radius: 50px;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    width: 100%;
    transition: all 0.2s;
}

.cta-btn:active { transform: scale(0.98); }
.cta-wa { background: var(--success); }
.cta-map { background: var(--info); }
.cta-call { background: var(--primary); }

.clear-cart-btn {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    }

/* ===========================
   11. BIZ CARD
   =========================== */
.bizcard-container { padding: 16px; }

.bizcard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: var(--card);
    padding: 4px;
    border-radius: 14px;
}

.bizcard-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.bizcard-tab.active {
    background: var(--primary);
    color: #fff;
}

.bizcard-display {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16/10;
    background: var(--card);
}

.bizcard-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.bizcard-display img.show {
    display: block;
}

.bizcard-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.biz-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.biz-btn.primary { background: var(--primary); color: #fff; }
.biz-btn.secondary { background: var(--accent); color: var(--primary-dark); }

/* ===========================
   12. CONTACT
   =========================== */
.contact-section {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-card {
    background: var(--card);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info { flex: 1; }

.contact-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.contact-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

/* ===========================
   13. LOKASI & PETA (MAP) - AWESOME STYLE
   =========================== */
.map-wrapper {
    margin: 16px 16px 0 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.map-wrapper iframe {
    width: 100%;
    height: 300px;
    border: 0;
    display: block;
}

.location-info {
    text-align: center;
    margin: 24px 16px;
    padding: 16px;
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.location-address {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.location-address i {
    color: var(--danger);
}

.location-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.location-note i {
    color: var(--info);
}

.waktu-operasi {
    background: var(--card);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;

}

.waktu-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 0.85rem;
}

.waktu-row:last-child { border-bottom: none; }

.waktu-hari { font-weight: 600; color: var(--text); }
.waktu-masa { color: var(--primary); font-weight: 700; }

.button-group {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 24px 16px;
}

.btn-map, .btn-waze {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.btn-map {
    background: #ff1493;
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
}

.btn-map:hover {
    background: #e01280;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 20, 147, 0.4);
}

.btn-waze {
    background: #33ccff;
    box-shadow: 0 4px 12px rgba(51, 204, 255, 0.3);
}

.btn-waze:hover {
    background: #1ab3e8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(51, 204, 255, 0.4);
}

.btn-map:active, .btn-waze:active {
    transform: translateY(0);
}

/* ===========================
   14. BOTTOM NAV - FIXED
   =========================== */
.bottom-nav {
    background: var(--card);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0));
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    flex-shrink: 0;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    border-radius: 12px;
    transition: all 0.2s;
    min-width: 50px;
}

.nav-icon {
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.nav-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.2s;
}

.nav-item.active { background: rgba(46, 125, 50, 0.08); }
.nav-item.active .nav-icon { color: var(--primary); transform: translateY(-2px); }
.nav-item.active .nav-label { color: var(--primary); }

/* ===========================
   15. CART BADGE
   =========================== */
.cart-badge {
    position: absolute;
    top: 0;
    right: 2px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    border-radius: 50%;
    font-size: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ===========================
   16. TOAST NOTIFICATION
   =========================== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    z-index: 200;
    opacity: 0;
    transition: all 0.3s;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===========================
   17. POPUP TUTUP
   =========================== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.popup-overlay.show { display: flex; }

.popup-box {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: popIn 0.3s ease;
}

.popup-box .popup-icon { font-size: 3rem; margin-bottom: 12px; }

.popup-box .popup-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #EF4444;
    margin-bottom: 8px;
}

.popup-box .popup-text {
    font-size: 0.85rem;
    color: #6B7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

.popup-box .popup-btn {
    background: #2E7D32;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.popup-box .popup-btn:active { transform: scale(0.95); }

/* ===========================
   18. SHARE BUTTONS
   =========================== */
.share-section { padding: 16px; }

.share-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    text-align: center;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.share-btn:active { transform: scale(0.95); }
.share-btn i { font-size: 1.2rem; }

.share-wa { background: #25D366; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); }
.share-fb { background: #1877F2; box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3); }
.share-tele { background: #0088cc; box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3); }

/* ===========================
   19. AI CHATBOT
   =========================== */
.siti-chat {
    position: fixed;
    bottom: 70px;
    right: 15px;
    z-index: 500;
}

.siti-chat-btn {
    width: auto;
    height: auto;
    padding: 8px 15px;
    border-radius: 50px;
    background: #FF6B6B;
    color: #fff;
    border: none;
    font-size: 0.85rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-style: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.siti-chat-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

.siti-chat-btn i {
    font-size: 1.1rem;
}

.siti-chat-box {
    display: none;
    position: absolute;
    bottom: 2.5rem;
    right: 5px;
    width: 320px;
    height: 70vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    overflow: hidden;
    font-family: 'Playfair Display', serif;
}

.siti-chat-box.show { display: flex; }

.siti-chat-header {
    background: #FF6B6B;
    color: #fff;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    font-family: 'Orbitron', sans-serif;
}

.siti-chat-body {
    height: 100%;
    overflow-y: auto;
    padding: 12px;
    flex: 1;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.siti-chat-input {
    display: flex;
    padding: 8px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.siti-chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.8rem;
    outline: none;
}

.siti-chat-input button {
    background: #FF6B6B;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-left: 8px;
    cursor: pointer;
}

.chat-bubble {
    margin-bottom: 18px;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.82rem;
    max-width: 85%;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.chat-bubble a { color: #2E7D32; word-break: break-all; }

.chat-user {
    background: #FF6B6B;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    display: flex;
    width: fit-content;
    max-width: 80%;
}

.chat-ai {
    background: #F3F4F6;
    color: #1A1A1A;
    border-bottom-left-radius: 4px;
    display: inline-block;
    width: fit-content;
    max-width: 87%;
}

.scroll-bottom-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: #2E7D32;
    color: #fff;
    border: none;
    font-size: 0.7rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-bottom-btn.show { display: flex; animation: fadeInUp 0.3s ease; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   20. ADMIN BUTTON
   =========================== */
.admin-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.admin-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.4);
}

/* ===========================
   21. ADMIN PANEL - STABIL
   =========================== */
.admin-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.admin-overlay.show { display: flex; }

.admin-panel {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 🔥 PENTING - border kekal */
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.admin-header {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-header h3 { font-size: 1.1rem; margin-bottom: 2px; }
.admin-header p { font-size: 0.7rem; opacity: 0.8; }

.admin-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-content {
    padding: 16px;
    overflow-y: auto; /* 🔥 Scroll dalam sini */
    flex: 1;
}

.admin-card {
    background: #F9FAFB;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}

.admin-card-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1A1A1A;
    margin-bottom: 12px;
}

.admin-toggle-group { display: flex; gap: 8px; }

.admin-toggle {
    flex: 1;
    padding: 10px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-toggle.active {
    background: #2E7D32;
    color: #fff;
    border-color: #2E7D32;
}

.admin-card textarea {
    width: 100%;
    height: 80px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    resize: vertical;
    outline: none;
}

.admin-card textarea:focus { border-color: #2E7D32; }

/* ==============================================
   ADMIN MEMO PREVIEW - PLAYFAIR DISPLAY
   ============================================== */
.admin-memo-preview {
    background: #FEF3C7;
    border-radius: 8px;
    padding: 10px;
    margin-top: 8px;
    border: 1px solid #FFC107;
}

.admin-memo-preview small {
    color: #92400E;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: 0.75rem;
}

.admin-memo-preview p {
    color: magenta;
    font-size: 0.75rem;
    margin-top: 4px;
    font-family: 'Playfair Display', serif;
    font-weight: 650;
    font-style: normal;
    letter-spacing: 0.3px;
    background-color: white;
    border-radius: 6px;
    padding: 6px 12px;
    text-align: center; /* TAMBAH - CENTER */
    word-wrap: break-word; /* TAMBAH - BREAK WORD */
    white-space: normal; /* TAMBAH - NORMAL WRAP */
    max-width: 100%;          
}

.admin-save-btn {
    width: 100%;
    padding: 14px;
    background: #2E7D32;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 8px;
}

.admin-save-btn:active { transform: scale(0.98); }

.admin-logout-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #EF4444;
    color: #EF4444;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
}

#adminInfo p { font-size: 0.8rem; margin-bottom: 4px; color: #6B7280; }
#adminInfo strong { color: #1A1A1A; }

/* ===========================
   22. WAKTU OPERASI (ADMIN)
   =========================== */
.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.hours-input-group { display: flex; flex-direction: column; gap: 4px; }

.hours-input-group label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6B7280;
}

.hours-input-group input[type="time"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
}

.hours-input-group input[type="time"]:focus { border-color: #2E7D32; }

.days-selector { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.day-chip {
    padding: 8px 12px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.day-chip.active { background: #EF4444; color: #fff; border-color: #EF4444; }

/* ===========================
   23. ADMIN MENU ITEMS
   =========================== */
.admin-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #E5E7EB;
}

.admin-menu-item:last-child { border-bottom: none; }

.admin-menu-item-info { flex: 1; }

.admin-menu-item-info strong { font-size: 0.85rem; }

.admin-menu-item-info small {
    display: block;
    color: #6B7280;
    font-size: 0.7rem;
}

.admin-menu-item-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 8px;
}

.admin-menu-actions { display: flex; gap: 4px; }

.admin-menu-actions button {
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.7rem;
    cursor: pointer;
}

/* ===========================
   24. MENU FORM
   =========================== */
.menu-form-group { margin-bottom: 10px; }

.menu-form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 4px;
}

.menu-form-group input[type="text"],
.menu-form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
}

.menu-form-group input:focus { border-color: #2E7D32; }

.menu-form-group .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    cursor: pointer;
}

.menu-form-group .checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: #2E7D32;
}

/* ===========================
   25. IMAGE UPLOAD
   =========================== */
.upload-area {
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #FAFAFA;
    position: relative;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #2E7D32;
    background: #F0FDF4;
}

.upload-area.has-image { 
    border-style: solid; 
    border-color: #2E7D32; 
    padding: 8px;
    overflow: hidden !important;
    position: relative;
}

.upload-icon { font-size: 2rem; margin-bottom: 6px; }
.upload-text { font-size: 0.8rem; color: #6B7280; margin-bottom: 4px; }
.upload-hint { font-size: 0.65rem; color: #9CA3AF; }

.upload-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.upload-area.has-image .upload-file-input { display: none; }

.upload-preview-wrap { 
    display: none;
    position: relative;
    overflow: hidden !important;
    border-radius: 8px;
}

.upload-preview-wrap.show { 
    display: block;
    position: relative;
    overflow: hidden !important;
}

.upload-preview-img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 8px;
    background: #F3F4F6;
    display: block;
}

.upload-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.95);
    color: #fff;
    border: none;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10 !important;
    pointer-events: auto;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.upload-preview-remove:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
}

.upload-preview-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 0.7rem;
    color: #6B7280;
}

.upload-progress { display: none; margin-top: 10px; }
.upload-progress.show { display: block; }

.upload-progress-bar {
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2E7D32, #4CAF50);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.upload-progress-text {
    font-size: 0.7rem;
    color: #6B7280;
    margin-top: 4px;
    text-align: center;
}

.or-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    font-size: 0.75rem;
    color: #9CA3AF;
}

.or-divider::before, .or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

.url-input-wrap { display: flex; gap: 6px; }

.url-input-wrap input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    outline: none;
}

.url-input-wrap input:focus { border-color: #2E7D32; }

.url-input-wrap button {
    padding: 10px 14px;
    background: #4285F4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.url-input-wrap button:hover {
    background: #3367D6;
    transform: translateY(-1px);
}

/* ===========================
   26. LIGHTBOX GAMBAR MENU
   =========================== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-overlay.show { display: flex; }

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-caption {
    margin-top: 16px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

/* ===========================
   27. DESKTOP MEDIA QUERY
   =========================== */
@media (min-width: 480px) {
    .phone-frame {
        min-height: 850px;
        max-height: 900px;
        border-radius: 40px;
        overflow: hidden;
        border: 8px solid #1A1A1A;
        margin: 20px auto;
    }
    
    .app-header, .bottom-nav {
        border-radius: 0;
    }
}

/* ==============================================
   28. TICKER / TEKS BERJALAN (AWESOME STYLE)
   ============================================== */

/* TICKER UTAMA */
.ticker-wrap {
    width: 100%;
    max-width: 420px;
    background-color: #F5F7F5;
    color: #92400E; /*#1B5E20;*/
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: none;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    min-height: 0;
    height: 0;
    transition: all 1.0s ease;
    display: none;
}

/* Bila ada teks */
/* TICKER WRAP */
.ticker-wrap {
    width: 100%;
    max-width: 420px;
    background-color: #F5F7F5;
    padding: 0;
    overflow: hidden;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    min-height: 0;
    height: 0;
    display: none;
}

.ticker-wrap.show {
    display: block;
    background-color: #FEF3C7;
    padding: 6px 0px;
    min-height: 10px;
    height: auto;
}

/* TICKER - MARQUEE */
.ticker {
    display: block;
    color: magenta; /*#92400E;*/
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    width: 100%;
}

/* ==============================================
   TICKER PREVIEW (Admin Panel) - STABIL
   ============================================== */
.ticker-preview {
    margin-top: 10px;
    background: #FEF3C7;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #FFC107;
    animation: fadeIn 0.5s ease;
    overflow: hidden;
}

.ticker-preview small {
    color: #92400E;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
}

.ticker-preview div {
    background: white; /*#FFC107;*/
    padding: 4px 12px;
    border-radius: 6px;
    overflow: hidden;
    height: 28px;
    display: flex;
    align-items: center;
}

.ticker-preview marquee {
    display: block;
    color: magenta; /*#1B5E20;*/
    font-weight: 500;
    font-style: italic;
    font-size: 0.75rem;
    width: 100%;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

/* ==============================================
   ANIMATIONS
   ============================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ALL MEMO STUTUS */


/* MEMO - PINK MUDA PUDAR */
#ownerMemo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: none;
    letter-spacing: 0.3px;
    font-size: 0.75rem;
    color: magenta; /*#1B5E20;*/
    background: linear-gradient(135deg,  #F8BBD0, #FEF3C7);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-top: 8px;
    text-align: center;
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-line;
    max-width: 100%;
}


/* MEMO STATUS - OVERRIDE BACKGROUND */
.memo-status-tutup {
    background: #FEF2F2 !important;
    color: #DC2626 !important;
    border-left-color: #DC2626 !important;
}

.memo-status-buka {
    background: #F0FDF4 !important;
    color: #16A34A !important;
    border-left-color: #16A34A !important;
}
