/* --- BASE STYLES --- */
:root {
    --primary-color: #00ff88;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-light: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    scroll-behavior: smooth;
}

a { text-decoration: none; color: white; transition: 0.3s; }
ul { list-style: none; padding: 0; }

/* --- HEADER & NAV --- */
header {
    background-color: #000;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand { display: flex; align-items: center; gap: 10px; }
.logo { font-size: 1.8rem; color: var(--primary-color); }
.company-name { font-size: 1.5rem; font-weight: bold; }

.search-bar {
    background: var(--bg-card);
    padding: 5px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
}
.search-bar input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    padding-left: 10px;
    width: 250px;
}

.nav-bar ul { display: flex; gap: 20px; align-items: center; }
.nav-bar a:hover { color: var(--primary-color); }

/* Cart Icon Badge */
.cart-icon-container { position: relative; cursor: pointer; }
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 0.7rem;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- HERO --- */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero h1 { font-size: 3rem; margin: 0; text-transform: uppercase; }
.cta-button {
    background-color: var(--primary-color);
    color: black;
    padding: 10px 30px;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    border: none;
    display: inline-block;
}
.cta-button:hover { background-color: white; transform: scale(1.05); }

/* --- PRODUCTS --- */
.products { padding: 40px 50px; max-width: 1200px; margin: 0 auto; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.product-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 0 10px var(--primary-color); }
.product-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 5px; }
.add-to-cart {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}
.add-to-cart:hover { background: var(--primary-color); color: black; }

/* --- MODALS (Cart & Payment) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    background-color: #222;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid var(--primary-color);
    width: 400px;
    border-radius: 10px;
    position: relative;
}
.close-modal {
    position: absolute; top: 10px; right: 20px;
    font-size: 28px; cursor: pointer;
}
.full-width { width: 100%; margin-top: 15px; }

/* Cart Items Style */
.cart-item { display: flex; justify-content: space-between; border-bottom: 1px solid #444; padding: 10px 0; }
.remove-item { color: red; cursor: pointer; margin-left: 10px; }

/* Payment Form */
#paymentForm input {
    width: 100%; padding: 10px; margin: 5px 0 15px 0;
    background: #333; border: 1px solid #555; color: white;
    box-sizing: border-box;
}
.row { display: flex; justify-content: space-between; }

/* --- LIVE CHAT --- */
.live-chat-btn {
    position: fixed; bottom: 30px; right: 30px;
    background-color: var(--primary-color); color: black;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; cursor: pointer; z-index: 2000;
}
.chat-window {
    display: none; position: fixed; bottom: 100px; right: 30px;
    width: 320px; background-color: #222;
    border: 1px solid var(--primary-color); border-radius: 10px; z-index: 2000;
}
.chat-header { background: var(--primary-color); color: black; padding: 10px; display: flex; justify-content: space-between; font-weight: bold;}
.chat-body { padding: 10px; height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-input input { width: 100%; padding: 10px; border: none; outline: none; background: #333; color: white; box-sizing: border-box; }

/* Chat Bubbles */
.message { padding: 8px 12px; border-radius: 15px; max-width: 80%; font-size: 0.9rem; }
.bot-message { background-color: #333; align-self: flex-start; }
.user-message { background-color: var(--primary-color); color: black; align-self: flex-end; }

/* --- FOOTER & TESTIMONIALS --- */
.testimonials { background: #1a1a1a; padding: 40px; text-align: center; }
.testimonial-grid { display: flex; justify-content: center; gap: 20px; }
.testimony-card { background: black; padding: 20px; max-width: 300px; border-left: 3px solid var(--primary-color); }
footer { background: black; padding: 30px; text-align: center; border-top: 1px solid #333; }
.newsletter-form input { padding: 10px; width: 250px; }
.newsletter-form button { padding: 10px; background: var(--primary-color); border: none; cursor: pointer; font-weight: bold; }

/* --- CUSTOM TOAST NOTIFICATION --- */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #1e1e1e;
    color: var(--primary-color);
    border-left: 5px solid var(--primary-color);
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    font-weight: bold;
    min-width: 250px;
    animation: slideIn 0.3s ease forwards, fadeOut 0.5s 2.5s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* --- FIX TAMPILAN LOGIN --- */

/* 1. Membuat Form menjadi Flexbox Vertikal */
#loginForm {
    display: flex;
    flex-direction: column; /* Menyusun elemen dari atas ke bawah */
    gap: 10px; /* Jarak antar elemen */
    text-align: left; /* Rata kiri untuk teks label */
}

/* 2. Merapikan Label */
#loginForm label {
    font-weight: bold;
    color: #ccc;
    margin-bottom: -5px; /* Sedikit mendekatkan label ke inputnya */
}

/* 3. Merapikan Input Box */
#loginForm input {
    width: 100%; /* Lebar penuh */
    padding: 12px; /* Ruang di dalam kotak ketik */
    background: #333;
    border: 1px solid #444;
    color: white;
    border-radius: 5px;
    box-sizing: border-box; /* Agar padding tidak membuat kotak melebar keluar */
    outline: none;
}

#loginForm input:focus {
    border-color: var(--primary-color); /* Warna hijau saat diklik */
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

/* 4. Merapikan Tombol Login */
#loginForm button {
    margin-top: 10px;
    padding: 12px;
    font-size: 1rem;
}