/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6B4226;
    --secondary-color: #D4A574;
    --accent-color: #8B5E3C;
    --text-color: #333;
    --light-bg: #FAF3E6;
    --white: #FFFFFF;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== NAVBAR ========== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.cart-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-left: 5px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 2px 0;
    transition: 0.3s;
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--accent-color);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: #ccc;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 10px;
}

/* ========== ABOUT ========== */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ========== MENU SECTION ========== */
.menu-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.menu-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.menu-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.menu-card:hover {
    transform: translateY(-5px);
}

.menu-image {
    height: 200px;
    overflow: hidden;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.menu-card:hover .menu-image img {
    transform: scale(1.1);
}

.menu-info {
    padding: 20px;
}

.menu-info h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.menu-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.btn-add-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background: var(--accent-color);
}

/* ========== CART SECTION ========== */
.cart-section {
    padding: 80px 0;
    min-height: 60vh;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.empty-cart p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #666;
}

.cart-items {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.cart-item-price {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.btn-qty {
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.btn-qty:hover {
    background: var(--primary-color);
}

.quantity-display {
    font-size: 1.1rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.cart-item-subtotal {
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}

.btn-remove {
    background: #ff4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-remove:hover {
    background: #cc0000;
}

.cart-summary {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.total-section {
    text-align: right;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* ========== FORM ========== */
.checkout-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: #000;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal p {
    margin-bottom: 10px;
    color: #666;
}

/* ========== NOTIFICATION ========== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 3000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-error {
    background: #dc3545;
}

/* ========== LOCATION PAGE ========== */
.location-section {
    padding: 80px 0;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 40px;
}

.location-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.info-item p {
    margin: 0;
    line-height: 1.6;
}

.location-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.location-map iframe {
    border-radius: 10px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 8px;
    opacity: 0.9;
}

/* ========== SOCIAL ICONS ========== */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    color: white;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.social-icons a:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.3);
}

/* ========== SHARE BUTTON ========== */
.btn-share {
    background: #25D366;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.3s;
}

.btn-share:hover {
    background: #128C7E;
}

/* ========== ADMIN STYLES ========== */
.admin-header {
    background: #6B4226;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header a {
    color: white;
    text-decoration: underline;
}

.admin-menu {
    background: white;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-menu a {
    color: #6B4226;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
}

.admin-menu a:hover {
    text-decoration: underline;
}

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card h3 {
    color: #6B4226;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: bold;
    color: #8B5E3C;
}

/* ========== CHART & RECENT ORDERS ========== */
.chart-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.recent-orders {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* ========== TABLE ========== */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #6B4226;
    color: white;
    font-weight: 500;
}

tr:hover {
    background: #f9f9f9;
}

/* ========== STATUS BADGE ========== */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background: #FFF3CD;
    color: #856404;
}

.status-diproses {
    background: #CCE5FF;
    color: #004085;
}

.status-selesai {
    background: #D4EDDA;
    color: #155724;
}

/* ========== STATUS SELECT ========== */
.status-select {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
}

/* ========== FORM EDIT ========== */
.form-edit {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.form-edit h3 {
    color: #6B4226;
    margin-bottom: 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .cart-item {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cart-item-info {
        grid-column: 1 / -1;
    }

    .cart-item-subtotal {
        text-align: left;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}