:root {
    --primary-color: #ff6b00;
    /* Vibrant Orange */
    --primary-dark: #e65100;
    --secondary-color: #2e2e2e;
    /* Sleek Black */
    --light-bg: #f4f5f7;
    --text-color: #2d3436;
    --card-bg: #ffffff;
    --dark-bg: #1a1a2e;
    /* Re-added for reports */
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', -apple-system, system-ui, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 80px;
    /* Space for float cart */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #ff8f00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--secondary-color);
    border: 2px solid #eee;
}

.btn-danger {
    background: #ff4757;
    color: white;
}

.btn:active {
    transform: scale(0.96);
}

/* Cards & Modern UI */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Header */
header {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -1px;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    /* Adaptive */
    gap: 15px;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.product-img {
    height: 160px;
    width: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
    font-size: 1rem;
}

.product-desc {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-weight: 800;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Controls */
.qty-control {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 30px;
    padding: 2px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: white;
    cursor: pointer;
    font-weight: bold;
    color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.qty-val {
    margin: 0 10px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Filter */
.category-filter {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0 20px;
    margin: 0 -20px 20px;
    padding-left: 20px;
    scrollbar-width: none;
}

.cat-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: white;
    border: 1px solid #eee;
    border-radius: 50px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
}

.cat-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fcfcfc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
    background: white;
}

/* Date Input Styling - Cleaned */
input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #eee;
    border-radius: 12px;
}

.date-wrapper {
    position: relative;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 0.9rem;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

footer strong {
    color: var(--primary-color);
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

/* Responsive Table (Cart) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .product-img {
        height: 130px;
    }

    .product-info {
        padding: 10px;
    }

    .product-title {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* Mobile Cart Table */
    .mobile-cart-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .mobile-cart-left {
        flex: 1;
    }

    .mobile-cart-title {
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .mobile-cart-price {
        color: #666;
        font-size: 0.9rem;
    }
}

/* Floating Cart */
.float-cart {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--secondary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    z-index: 1000;
    transition: transform 0.2s;
}

.float-cart:active {
    transform: scale(0.95);
}

/* Admin Specifics */
.admin-sidebar .logo {
    color: white !important;
}

/* Status Blink Animation */
@keyframes blink-border {
    0% {
        border-left-color: var(--warning);
        box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.4);
    }

    50% {
        border-left-color: #ff9f43;
        box-shadow: 0 0 0 10px rgba(241, 196, 15, 0);
    }

    100% {
        border-left-color: var(--warning);
        box-shadow: 0 0 0 0 rgba(241, 196, 15, 0);
    }
}

.status-pending {
    animation: blink-border 2s infinite;
}

/* Admin Sidebar */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #1a1a2e;
    color: #a6a6cc;
    flex-shrink: 0;
}

.admin-sidebar a {
    padding: 15px 25px;
    display: block;
    border-left: 3px solid transparent;
}

.admin-sidebar a.active {
    background: #252542;
    color: white;
    border-left-color: var(--primary-color);
}

.admin-content {
    flex: 1;
    background: #f4f5f7;
    padding: 30px;
    overflow-x: hidden;
}

/* Dashboard Grid */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}