:root {
    --primary: #f97316;
    --primary-hover: #ea580c;
    --secondary: #3b82f6;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    /* Darker, slightly tinted shadow */
    --shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.12);
    --radius: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

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

.admin-container {
    max-width: 1600px;
    width: 96%;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .admin-layout {
        flex-direction: column !important;
        gap: 15px !important;
        margin-top: 20px !important;
        margin-bottom: 40px !important;
    }

    .admin-content-area {
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.0rem;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

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

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

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

.btn-danger:hover {
    background-color: #c0392b;
}

/* Header & Nav */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-width: 1px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--dark);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    transition: var(--transition);
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary);
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Footer */
.main-footer {
    background-color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.02);
}

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

.footer-col h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--gray);
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--gray);
}

/* Responsive */
@media (max-width: 1150px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        padding: 20px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    .mobile-only-nav-item {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .checkout-card {
        padding: 20px 16px !important;
    }
}


/* ── Cart & Orders ────────────────────────────────── */
.cart-badge {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modalIn 0.3s ease forwards;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
}

.toast {
    background: var(--dark);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius);
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cart-order-btn {
    width: 100%;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ── Green Buttons & Ordered Item Highlight ── */
.btn-success {
    background-color: #10b981;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    background-color: #059669;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.item-ordered-highlight {
    background-color: #ecfdf5;
    /* faint green */
    border: 1px solid #a7f3d0;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.1);
    transition: var(--transition);
    padding: 10px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.qty-btn {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--dark);
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.qty-input {
    width: 60px;
    height: 38px;
    padding: 5px;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.qty-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* ── Cart total chip v hlavičke ─────────────────── */
.cart-total-chip {
    background: var(--primary);
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-total-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
    color: white;
}

/* ── In-cart badge a remove btn na daily-menu ───── */
.in-cart-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    font-weight: 700;
    font-size: 0.83rem;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.btn-remove-cart {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.btn-remove-cart:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

/* ── Checkout section headings ────────────────────── */
.checkout-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 8px 0;
    margin: 18px 0 0 0;
    border-bottom: 2px solid var(--border);
}

.checkout-section-header:first-child {
    margin-top: 0;
}

.checkout-section-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.checkout-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
}