/* ============ Haidery Restaurant - Main Stylesheet ============ */
:root {
    --primary: #b8202f;
    --primary-dark: #8f1622;
    --dark: #1f1a17;
    --light-bg: #faf6f2;
    --gold: #d4a039;
    --text-muted: #6b6b6b;
    --radius: 10px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: var(--dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
header.site-header {
    background: var(--dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 1px;
}
.logo span { color: #fff; }
.nav-links {
    display: flex;
    gap: 28px;
}
.nav-links a {
    font-weight: 600;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: .2s;
}
.nav-links a:hover, .nav-links a.active {
    border-bottom-color: var(--gold);
    color: var(--gold);
}
.cart-btn {
    background: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    position: relative;
}
.cart-count {
    background: var(--gold);
    color: var(--dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 6px;
}
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(rgba(20,15,12,.75), rgba(20,15,12,.75)),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 110px 20px;
}
.hero h1 {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 14px;
}
.hero h1 span { color: var(--gold); }
.hero p {
    font-size: 18px;
    color: #ddd;
    max-width: 600px;
    margin: 0 auto 28px;
}
.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 13px 30px;
    border-radius: 30px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: .2s;
    font-size: 15px;
}
.btn:hover { background: var(--primary-dark); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--dark); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ===== Section titles ===== */
.section-title {
    text-align: center;
    margin: 60px 0 35px;
}
.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
}
.section-title h2 span { color: var(--primary); }
.section-title p { color: var(--text-muted); margin-top: 8px; }

/* ===== Category filter ===== */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
}
.category-filter a {
    padding: 8px 20px;
    border: 1px solid var(--primary);
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    transition: .2s;
}
.category-filter a.active, .category-filter a:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== Menu grid ===== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    padding-bottom: 60px;
}
.food-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.food-card:hover { transform: translateY(-5px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.food-card .img-wrap { height: 180px; overflow: hidden; background: #eee; }
.food-card img { width: 100%; height: 100%; object-fit: cover; }
.food-card .body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.food-card h3 { font-size: 17px; margin-bottom: 6px; }
.food-card p.desc { font-size: 13px; color: var(--text-muted); flex: 1; margin-bottom: 12px; }
.food-card .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.price {
    font-weight: 800;
    color: var(--primary);
    font-size: 17px;
}
.badge-unavailable {
    background: #999;
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ===== About / Info blocks ===== */
.about-section {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    padding: 50px 0;
}
.about-section .about-img { flex: 1; min-width: 280px; }
.about-section .about-img img { border-radius: var(--radius); }
.about-section .about-text { flex: 1; min-width: 280px; }
.about-text h2 { font-size: 30px; margin-bottom: 16px; color: var(--dark); }
.about-text p { color: var(--text-muted); margin-bottom: 14px; }
.feature-list { margin-top: 20px; }
.feature-list li { margin-bottom: 10px; font-weight: 600; }
.feature-list li::before { content: "✓ "; color: var(--primary); font-weight: 900; }

/* ===== Contact / Footer ===== */
.info-strip {
    background: var(--primary);
    color: #fff;
    padding: 16px 0;
    text-align: center;
    font-weight: 600;
}
footer.site-footer {
    background: var(--dark);
    color: #ccc;
    padding: 50px 0 20px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-grid h4 { color: #fff; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }
.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 18px;
    font-size: 13px;
    color: #888;
}

/* ===== Cart & Checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: 14px; text-align: left; border-bottom: 1px solid #eee; }
.cart-table th { background: var(--dark); color: #fff; }
.qty-input { width: 60px; padding: 6px; border: 1px solid #ccc; border-radius: 6px; text-align: center; }
.cart-summary {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    margin-top: 20px;
    max-width: 400px;
    margin-left: auto;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.cart-summary .total { font-size: 20px; font-weight: 800; color: var(--primary); border-top: 1px solid #eee; padding-top: 10px; }
.remove-link { color: var(--primary); font-weight: 700; font-size: 13px; }
.empty-msg { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* ===== Forms ===== */
.form-box {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    max-width: 600px;
    margin: 0 auto;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.alert-success { background: #d9f7e3; color: #157a3c; }
.alert-error { background: #fbe0e0; color: var(--primary-dark); }

/* ===== Order success ===== */
.success-box { text-align: center; padding: 80px 20px; }
.success-icon { font-size: 60px; color: #2ecc71; margin-bottom: 20px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        display: none;
    }
    .nav-links.show { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 15px; }
}

/* ============ ADMIN PANEL STYLES ============ */
body.admin-body { background: #f0f2f5; }
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px;
    background: var(--dark);
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
}
.admin-sidebar .brand {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 20px;
    color: var(--gold);
}
.admin-sidebar a {
    display: block;
    padding: 13px 24px;
    font-weight: 600;
    font-size: 14px;
    color: #ccc;
    border-left: 3px solid transparent;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(255,255,255,.06);
    color: var(--gold);
    border-left-color: var(--gold);
}
.admin-main { flex: 1; padding: 26px; }
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 16px 22px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.admin-topbar h1 { font-size: 20px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}
.stat-card {
    background: #fff;
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    border-left: 4px solid var(--primary);
}
.stat-card h3 { font-size: 28px; color: var(--dark); }
.stat-card p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.admin-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    margin-bottom: 24px;
    overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.admin-table th, .admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
.admin-table th { background: #fafafa; font-weight: 700; }
.admin-table img.thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.status-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--gold);
}
.status-Pending { background: #999; }
.status-Confirmed { background: #3498db; }
.status-Preparing { background: #e67e22; }
.status-Out.for.Delivery { background: #9b59b6; }
.status-Delivered { background: #2ecc71; }
.status-Cancelled { background: var(--primary); }
.action-btns { display: flex; gap: 8px; }
.action-btns a, .action-btns button {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}
.btn-edit { background: #3498db; color: #fff; }
.btn-delete { background: var(--primary); color: #fff; }
.toggle-available { background: #2ecc71; color: #fff; }
.toggle-unavailable { background: #999; color: #fff; }
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
}
.login-box {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 380px;
}
.login-box h2 { text-align: center; margin-bottom: 24px; color: var(--primary); }
