:root {
    --primary-color: #1a1a1a;
    --accent-color: #c5a059; /* Elegant Gold */
    --accent-hover: #b38f4d;
    --secondary-color: #4a4a4a;
    --dark-color: #111111;
    --light-color: #ffffff;
    --bg-color: #fdfdfd;
    --gray-light: #f4f4f4;
    --gray-medium: #888888;
    --success-color: #27ae60;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 25px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    min-height: 100vh;
    color: var(--primary-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

#cart-count {
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 50%;
    position: relative;
    top: -10px;
    left: -5px;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    margin-bottom: 4rem;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h3 {
    font-size: 1.1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
}

/* Menu Section */
.menu-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.menu-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.menu-image {
    width: 100%;
    aspect-ratio: 3 / 4; /* Portrait ratio */
    position: relative;
    overflow: hidden;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to ensure no cropping */
    transition: var(--transition);
    background: #fdfdfd; /* Light background for contain */
}

.menu-card:hover .menu-image img {
    transform: scale(1.1);
}

.menu-image i {
    font-size: 3rem;
    color: var(--gray-medium);
}

.promo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.menu-card-body {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-name {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.menu-description {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
    flex: 1;
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.menu-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
}

.btn-add-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--accent-color);
    transform: translateX(5px);
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Cart & Checkout */
.cart-container {
    max-width: 800px;
    margin: 4rem auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-light);
}

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

.cart-item-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    background: var(--gray-light);
    border-radius: 50px;
    padding: 5px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: white;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--accent-color);
    color: white;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
}

.cart-total {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-light);
    text-align: right;
}

.total-price {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 800;
    display: block;
    margin: 0.5rem 0 2rem;
}

.btn-checkout {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-checkout:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.payment-methods label {
    flex: 1;
    background: var(--gray-light);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.payment-methods input:checked + span {
    color: var(--accent-color);
    font-weight: 700;
}

.payment-methods label:has(input:checked) {
    border-color: var(--accent-color);
    background: white;
}

/* Admin Header */
.admin-header {
    background: white;
    padding: 1.5rem 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.admin-header h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.admin-header .admin-user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Admin Table Styling */
.table {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 2rem;
}

.table h2 {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.table table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #f8f9fa;
    text-align: left;
    padding: 1.2rem 2rem;
    font-weight: 600;
    color: var(--gray-medium);
    border-bottom: 2px solid #eee;
}

.table td {
    padding: 1.2rem 2rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background: #fcfcfc;
}

/* Admin Badges */
.badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    color: white;
}

.badge-pending { background: #f39c12; }
.badge-confirmed { background: #3498db; }
.badge-completed { background: #27ae60; }
.badge-cancelled { background: #e74c3c; }
.badge-available { background: #27ae60; }
.badge-unavailable { background: #e74c3c; }

/* Admin Stats Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card h3 {
    color: var(--gray-medium);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-card .stat-icon {
    float: right;
    font-size: 2.5rem;
    color: rgba(0,0,0,0.05);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray-medium);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
}

#menuForm {
    padding: 2.5rem;
}

.admin-container {
    padding: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.variant-row {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 1rem;
}

/* Order Detail Admin */
.order-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.order-info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.order-info-item {
    margin-bottom: 1.5rem;
}

.order-info-item label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.order-info-item p {
    font-weight: 600;
    color: var(--primary-color);
}

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

/* Animations */
@keyframes blink {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.blink-promo {
    animation: blink 1.5s infinite ease-in-out;
    background: #e74c3c !important; /* Warna merah mencolok untuk promo */
    border-color: #e74c3c !important;
}

.section-title-promo {
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title-promo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #e74c3c;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    .nav-menu {
        display: none; /* In a real app, you'd add a hamburger menu */
    }
    .menu-grid {
        grid-template-columns: 1fr;
    }
}
