/* ==========================================
   MK Restaurant Ordering System V3
   Premium Customer + Admin Styles
   Part 1: Global Foundation
========================================== */


/* ==============================
   Google Font
============================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');


/* ==============================
   Theme Variables
============================== */

:root {

    /* Brand Colors */
    --primary: #ff5a1f;
    --primary-dark: #e04b12;

    --secondary: #1f2937;
    --accent: #25d366;

    /* Status Colors */
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;

    /* Background */
    --bg: #f6f7fb;
    --white: #ffffff;

    /* Text */
    --text: #111827;
    --text-light: #6b7280;

    /* Borders */
    --border: #e5e7eb;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.18);

    /* Radius */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    /* Animation */
    --transition: 0.3s ease;

}


/* ==============================
   Reset
============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Smooth scrolling */

html {
    scroll-behavior: smooth;
}


/* Body */

body {

    font-family: "Poppins", sans-serif;

    background: var(--bg);

    color: var(--text);

    min-height: 100vh;

    overflow-x: hidden;

}


/* Images */

img {

    max-width: 100%;

    display: block;

}


/* Links */

a {

    text-decoration: none;

    color: inherit;

}


/* Lists */

ul {
    list-style: none;
}


/* ==============================
   Layout
============================== */


.container {

    width: 100%;

    max-width: 1200px;

    margin: auto;

    padding: 15px;

}


/* ==============================
   Typography
============================== */


h1,
h2,
h3,
h4 {

    font-weight: 700;

    color: var(--text);

}


p {

    color: var(--text-light);

    line-height: 1.6;

}


/* ==============================
   Buttons
============================== */


.btn {

    border: none;

    outline: none;

    cursor: pointer;

    background: var(--primary);

    color: var(--white);

    padding: 12px 18px;

    border-radius: var(--radius-sm);

    font-size: 15px;

    font-weight: 600;

    transition: var(--transition);

}


.btn:hover {

    background: var(--primary-dark);

    transform: translateY(-2px);

    box-shadow: var(--shadow-sm);

}


.btn:active {

    transform: scale(0.98);

}


/* Button Variants */

.btn-green {

    background: var(--accent);

}


.btn-gray {

    background: #374151;

}


.btn-block {

    width: 100%;

}


/* ==============================
   Forms
============================== */


input,
textarea,
select {

    width: 100%;

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);

    padding: 14px 15px;

    margin-top: 10px;

    margin-bottom: 15px;

    font-size: 15px;

    font-family: inherit;

    background: var(--white);

    transition: var(--transition);

}


input:focus,
textarea:focus,
select:focus {

    outline: none;

    border-color: var(--primary);

    box-shadow: 0 0 0 4px rgba(255,90,31,.15);

}


textarea {

    min-height: 100px;

    resize: vertical;

}


/* ==============================
   Tags / Badges
============================== */


.tag {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 6px 12px;

    border-radius: 50px;

    font-size: 12px;

    font-weight: 600;

    color: var(--white);

    margin-right: 6px;

}


.veg {

    background: var(--success);

}


.nonveg {

    background: var(--danger);

}


.popular {

    background: var(--warning);

}


/* ==============================
   Common Cards
============================== */


.card,
.admin-card {

    background: var(--white);

    border-radius: var(--radius);

    padding: 18px;

    box-shadow: var(--shadow-sm);

}


/* ==============================
   Utility Classes
============================== */


.hidden {

    display: none !important;

}


.text-center {

    text-align: center;

}


.mt-1 {
    margin-top: 10px;
}


.mt-2 {
    margin-top: 20px;
}


.mb-1 {
    margin-bottom: 10px;
}


.mb-2 {
    margin-bottom: 20px;
}


/* ==============================
   Loading & Error States
============================== */


.empty-state,
.error-state {

    background: var(--white);

    padding: 30px;

    text-align: center;

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

}


.error-state {

    color: var(--danger);

}
/* ==========================================
   CUSTOMER PREMIUM UI
   Part 2
========================================== */


/* ==============================
   HERO SECTION
============================== */

.hero {
    position: relative;
    height: 320px;
    background:
        linear-gradient(
            rgba(0,0,0,0.55),
            rgba(0,0,0,0.75)
        ),
        url("../images/banner.jpg");

    background-size: cover;
    background-position: center;

    color: white;
}


.hero-overlay {
    height: 100%;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* Restaurant Header */

.restaurant-top {
    display: flex;
    align-items: center;
    gap: 15px;
}


.hero-logo {
    width: 85px;
    height: 85px;

    border-radius: 50%;

    background: white;

    padding: 5px;

    object-fit: cover;

    box-shadow: var(--shadow);
}


.hero h1 {
    color: white;
    font-size: 28px;
}


.hero h2 {
    color: white;
    font-size: 26px;
    line-height: 1.3;
}


.hero p {
    color: #eee;
}


.status {
    display: inline-block;

    margin-top: 8px;

    padding: 6px 14px;

    border-radius: 30px;

    background: rgba(255,255,255,0.25);

    backdrop-filter: blur(10px);

    color: white;

    font-size: 13px;

    font-weight: 600;
}


/* Offer */

.offer-banner {
    background: rgba(255,255,255,0.20);

    backdrop-filter: blur(12px);

    padding: 12px 15px;

    border-radius: var(--radius);

    color: white;

    font-weight: 600;

    box-shadow: var(--shadow-sm);
}


/* ==============================
   SEARCH
============================== */

.search-box {
    margin-top: -28px;

    position: relative;

    z-index: 10;
}


.search-box input {
    border-radius: 50px;

    border: none;

    padding: 16px 22px;

    box-shadow: var(--shadow);

    font-size: 15px;
}


/* ==============================
   CATEGORY SLIDER
============================== */

.category-tabs {

    display: flex;

    gap: 12px;

    overflow-x: auto;

    padding: 18px 0 12px;

    scrollbar-width: none;
}


.category-tabs::-webkit-scrollbar {
    display: none;
}


.category-tab {

    white-space: nowrap;

    background: white;

    padding: 10px 18px;

    border-radius: 50px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}


.category-tab:hover {

    transform: translateY(-2px);
}


.category-tab.active {

    background: var(--primary);

    color: white;
}


/* ==============================
   FOOD GRID
============================== */

.menu-grid {
    display: grid;

    gap: 18px;

    margin-bottom: 100px;
}


/* Food Card */

.food-card {

    background: white;

    border-radius: 22px;

    overflow: hidden;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}


.food-card:hover {

    transform: translateY(-5px);

    box-shadow: var(--shadow);
}


.food-image {

    width: 100%;

    height: 220px;

    object-fit: cover;
}


.food-content {

    padding: 16px;
}


.food-tags {

    margin-bottom: 10px;
}


.food-name {

    font-size: 20px;

    margin-bottom: 8px;
}


.food-desc {

    font-size: 14px;

    margin-bottom: 12px;
}


.price {

    color: var(--primary);

    font-size: 24px;

    font-weight: 700;

    margin-bottom: 12px;
}


.out-stock {

    color: var(--danger);

    font-weight: 600;

    padding: 10px 0;
}


/* ==============================
   FLOATING ACTION BUTTONS
============================== */

.floating-actions {

    position: fixed;

    left: 15px;

    bottom: 20px;

    display: flex;

    flex-direction: column;

    gap: 10px;

    z-index: 500;
}


.action-btn {

    width: 58px;

    height: 58px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    font-size: 25px;

    box-shadow: var(--shadow);

    transition: var(--transition);
}


.action-btn:hover {

    transform: scale(1.08);
}


.call-btn {
    background: #2563eb;
}


.whatsapp-btn {
    background: var(--accent);
}


/* ==============================
   FLOATING CART
============================== */

.premium-cart-btn {

    position: fixed;

    right: 18px;

    bottom: 20px;

    width: 65px;

    height: 65px;

    border-radius: 50%;

    border: none;

    background: var(--primary);

    color: white;

    font-size: 28px;

    cursor: pointer;

    box-shadow: var(--shadow);

    z-index: 500;

    transition: var(--transition);
}


.premium-cart-btn:hover {

    transform: scale(1.08);
}


/* Cart Counter */

#cartCount {

    position: absolute;

    top: -5px;

    right: -5px;

    width: 24px;

    height: 24px;

    border-radius: 50%;

    background: var(--danger);

    color: white;

    font-size: 12px;

    font-weight: 700;

    display: flex;

    align-items: center;

    justify-content: center;
}
/* ==========================================
   CUSTOMER CHECKOUT & RESPONSIVE UI
   Part 3
========================================== */


/* ==============================
   CHECKOUT DRAWER
============================== */

.checkout-drawer {

    position: fixed;

    left: 0;
    right: 0;
    bottom: -100%;

    height: 80vh;

    background: var(--white);

    border-radius: 28px 28px 0 0;

    padding: 20px;

    overflow-y: auto;

    z-index: 999;

    box-shadow: 0 -10px 35px rgba(0,0,0,.25);

    transition: .35s ease;
}


.checkout-drawer.show {

    bottom: 0;

}


/* Drawer Header */

.drawer-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

    position: sticky;

    top: 0;

    background: var(--white);

    padding-bottom: 15px;

    z-index: 5;
}


.drawer-header h2 {

    font-size: 22px;

}


.drawer-header button {

    width: 40px;

    height: 40px;

    border: none;

    border-radius: 50%;

    background: #f1f5f9;

    font-size: 20px;

    cursor: pointer;

}


/* ==============================
   CART ITEMS
============================== */

.cart-item {

    background: #fafafa;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 15px;

    margin-bottom: 15px;

    box-shadow: var(--shadow-sm);

}


.cart-top {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 12px;

}


.cart-top strong {

    font-size: 16px;

}


.cart-bottom {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

}


/* Quantity Buttons */

.cart-bottom .btn {

    width: 35px;

    height: 35px;

    padding: 0;

    border-radius: 50%;

    font-size: 18px;

    display: flex;

    justify-content: center;

    align-items: center;

}


/* Empty Cart */

.empty-cart {

    text-align: center;

    padding: 40px 20px;

    color: var(--text-light);

    font-size: 16px;

}


/* ==============================
   TOTAL SECTION
============================== */


.checkout-drawer h3 {

    font-size: 24px;

    color: var(--primary);

    margin: 20px 0;

}


/* ==============================
   CUSTOMER FORM
============================== */


.checkout-drawer input,
.checkout-drawer textarea {

    background: #f9fafb;

}


/* Place Order Button */

.checkout-drawer .btn-green {

    margin-top: 10px;

    font-size: 16px;

    padding: 15px;

    border-radius: 15px;

    box-shadow: var(--shadow-sm);

}


/* ==============================
   FOOTER
============================== */


footer {

    text-align: center;

    padding: 25px 15px 90px;

    color: var(--text-light);

    font-size: 13px;

}


/* ==============================
   TABLET VIEW
============================== */


@media (min-width: 768px) {


    .hero {

        height: 380px;

    }


    .hero-overlay {

        max-width: 900px;

        margin: auto;

    }


    .menu-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .checkout-drawer {

        width: 500px;

        right: 0;

        left: auto;

        height: 100vh;

        top: 0;

        bottom: auto;

        border-radius: 0;

        transform: translateX(100%);

    }


    .checkout-drawer.show {

        transform: translateX(0);

    }


}


/* ==============================
   DESKTOP VIEW
============================== */


@media (min-width: 1200px) {


    .container {

        max-width: 1280px;

    }


    .menu-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }


    .food-image {

        height: 250px;

    }


    .hero h1 {

        font-size: 42px;

    }


    .hero h2 {

        font-size: 34px;

    }


}
/* ==========================================
   ADMIN PREMIUM DASHBOARD
   Part 4
========================================== */


/* ==============================
   LOGIN SCREEN
============================== */

.login-container {
    min-height: 100vh;
    background:
        linear-gradient(135deg, #0f172a, #1e3a8a);

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}


.login-card {
    width: 100%;
    max-width: 420px;

    background: rgba(255,255,255,0.15);

    backdrop-filter: blur(20px);

    border: 1px solid rgba(255,255,255,0.25);

    border-radius: 30px;

    padding: 35px 25px;

    text-align: center;

    color: white;

    box-shadow: var(--shadow-lg);

    animation: fadeUp .6s ease;
}


.login-card h1,
.login-card p {
    color: white;
}


.login-card input {
    background: rgba(255,255,255,0.9);
}


/* ==============================
   ADMIN TOP BAR
============================== */

.admin-topbar {

    position: sticky;

    top: 0;

    z-index: 100;

    background:
        linear-gradient(90deg, #111827, #1f2937);

    color: white;

    padding: 18px 20px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    box-shadow: var(--shadow);

}


.admin-topbar h2,
.admin-topbar p {
    color: white;
}


/* ==============================
   DASHBOARD STATS
============================== */

.stats-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

    margin: 20px 0;

}


.stat-card {

    border-radius: 20px;

    padding: 20px;

    color: white;

    text-align: center;

    box-shadow: var(--shadow);

    transition: var(--transition);

}


.stat-card:hover {
    transform: translateY(-6px);
}


/* Individual colors */

.stat-card:nth-child(1) {
    background:
    linear-gradient(135deg,#f97316,#fb923c);
}

.stat-card:nth-child(2) {
    background:
    linear-gradient(135deg,#10b981,#34d399);
}

.stat-card:nth-child(3) {
    background:
    linear-gradient(135deg,#ef4444,#f87171);
}

.stat-card:nth-child(4) {
    background:
    linear-gradient(135deg,#6366f1,#8b5cf6);
}


.stat-card h3 {
    color: white;
    font-size: 14px;
}


.stat-card h1 {
    color: white;
    font-size: 32px;
}


/* ==============================
   ADMIN CARDS
============================== */

.admin-card {

    background: white;

    border-radius: 22px;

    padding: 20px;

    margin-bottom: 20px;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);

}


.admin-card:hover {
    box-shadow: var(--shadow);
}


/* ==============================
   MENU MANAGER
============================== */

.menu-item {

    display: flex;

    gap: 15px;

    background: #f8fafc;

    border-radius: 18px;

    padding: 15px;

    margin-bottom: 15px;

    border: 1px solid var(--border);

}


.admin-food-image {

    width: 100px;

    height: 100px;

    border-radius: 15px;

    object-fit: cover;

    flex-shrink: 0;

}


.menu-details {
    width: 100%;
}


.menu-details h3 {

    font-size: 18px;

    margin-bottom: 5px;

}


.menu-price {

    font-size: 22px;

    color: var(--primary);

    font-weight: 700;

    margin: 10px 0;

}


.menu-controls {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 12px;

}


.menu-controls .btn {

    font-size: 13px;

    padding: 10px 14px;

}


/* ==============================
   ADMIN BUTTON IMPROVEMENTS
============================== */

.admin-topbar .btn {
    padding: 10px 16px;
}


.btn-green {
    background:
    linear-gradient(
        135deg,
        #10b981,
        #059669
    );
}


.btn-gray {
    background:
    linear-gradient(
        135deg,
        #4b5563,
        #111827
    );
}


/* ==============================
   NOTIFICATION
============================== */

#notification {

    animation: slideDown .4s ease;

}


/* ==============================
   ANIMATIONS
============================== */

@keyframes fadeUp {

    from {

        opacity: 0;

        transform:
        translateY(30px);

    }


    to {

        opacity: 1;

        transform:
        translateY(0);

    }

}


@keyframes slideDown {

    from {

        opacity: 0;

        transform:
        translateY(-30px);

    }


    to {

        opacity: 1;

        transform:
        translateY(0);

    }

}


/* ==============================
   MOBILE FIXES
============================== */

@media (max-width: 480px) {


    .admin-topbar {

        flex-direction: column;

        gap: 12px;

        text-align: center;

    }


    .menu-item {

        flex-direction: column;

    }


    .admin-food-image {

        width: 100%;

        height: 180px;

    }


    .stats-grid {

        grid-template-columns: 1fr;

    }

}


/* ==============================
   DESKTOP IMPROVEMENTS
============================== */

@media (min-width: 768px) {


    .stats-grid {

        grid-template-columns:
        repeat(4, 1fr);

    }


    .login-card {

        max-width: 460px;

    }


    .admin-card {

        padding: 25px;

    }

}