/* ===================================
   Restoran Nusantara - Custom Styles
   =================================== */

:root {
    --primary-color: #D2691E; /* Warna Coklat Nusantara */
    --secondary-color: #8B4513;
    --accent-color: #FFD700;
    --dark-color: #2C1810;
    --light-color: #FFF8DC;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

/* Override Bootstrap Primary */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>') repeat;
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Menu Cards */
.menu-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.menu-img {
    height: 200px;
    object-fit: cover;
}

.stok-habis-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart & Checkout */
.cart-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.qty-input {
    width: 60px;
    text-align: center;
}

/* Order History */
.order-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.order-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
}

.order-body {
    padding: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

/* Status Badges */
.status-menunggu {
    background-color: #ffc107;
    color: #000;
}

.status-diproses {
    background-color: #17a2b8;
    color: #fff;
}

.status-selesai {
    background-color: #28a745;
    color: #fff;
}

.status-dibatalkan {
    background-color: #dc3545;
    color: #fff;
}

/* Admin Dashboard */
.admin-sidebar {
    background: linear-gradient(180deg, var(--dark-color), var(--secondary-color));
    min-height: 100vh;
    color: white;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 5px 10px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.stat-card {
    border: none;
    border-radius: 15px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.stat-card.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card.bg-gradient-success {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.stat-card.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-card.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

/* Payment Method Cards */
.payment-card {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-card:hover {
    border-color: var(--primary-color);
}

.payment-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(210, 105, 30, 0.1);
}

.payment-card input[type="radio"] {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 40vh;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .menu-img {
        height: 150px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Table Styles */
.table-modern {
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
}

.table-modern thead th:first-child {
    border-radius: 10px 0 0 0;
}

.table-modern thead th:last-child {
    border-radius: 0 10px 0 0;
}

.table-modern tbody td {
    padding: 15px;
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background-color: rgba(210, 105, 30, 0.05);
}