﻿/* --- GLOBAL --- */
/* --- GLOBAL --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px; /* jednotná veľkosť */
    line-height: 1.5; /* lepšia čitateľnosť */
    background: #1a1a1a;
    color: #e0e0e0;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    max-width: 100%;
    overflow-x: hidden; /* zabráni horizontálnemu scrollu */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HLAVNÉ MENU --- */
.menu-title {
    text-align: center;
    font-size: 1.6rem; /* menšie písmo */
    font-weight: bold;
    margin: 15px 0; /* menšie okraje */
    color: #bc2419;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1600px; /* max 5 stĺpcov */
    margin: 0 auto;
    justify-content: center; /* 👉 zarovná grid do stredu */
    align-content: start; /* 👉 aby nezačínal úplne hore */
}

    .menu-grid:has(.menu-item:only-child) {
        grid-template-columns: 1fr; /* jedna dlaždica cez celý stĺpec */
        max-width: 300px; /* ale obmedzíme max šírku */
        margin: 0 auto; /* centrovanie */
    }


.menu-item {
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    text-decoration:none;
}

    .menu-item:hover {
        transform: scale(1.03);
        box-shadow: 0 4px 12px rgba(0,0,0,0.9);
    }

    .menu-item img {
        width: 100%;
        height: 180px; /* pevná výška */
        object-fit: cover; /* zachová proporcie, vyplní box */
        filter: brightness(0.9);
    }

    .menu-item span {
        padding: 14px;
        font-size: 1.2rem;
        font-weight: bold;
        text-align: center;
        color: #fff;
    }

/* --- PIZZE GRID --- */
.pizza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.pizza-card {
    text-decoration:none;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

    .pizza-card:hover {
        transform: scale(1.03);
        box-shadow: 0 4px 12px rgba(0,0,0,0.9);
    }

.pizza-img {
    width: 100%;
    height: 200px; /* pevná výška */
    object-fit: cover;
    filter: brightness(0.95);
}

.pizza-info {
    padding: 10px;
}

    .pizza-info h3 {
        margin: 0 0 4px 0;
        font-size: 1.2rem;
        font-weight: bold;
        color: #fff;
    }

.pizza-price {
    display: inline-block;
    background: #bc2419;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 1px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.pizza-desc {
    margin:5px;
    font-size: 0.9rem;
    color: #bbb;
}


.pizza-allergens {
    display: inline-block;
    color: #bc2419 !important; /* fix – vynúti farbu aj proti parent stylom */
    font-size: 0.9rem;
    margin-top: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

    .pizza-allergens:hover {
        color: #ff6f61 !important;
        transform: scale(1.03);
        text-decoration: underline;
    }



/* --- TOPBAR --- */
/* --- TOPBAR (v štýle footera) --- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    /* gradient opačne ako footer */
    background: linear-gradient(to bottom, #111 0%, #1c1c1c 100%);
    border-bottom: 1px solid #333; /* rovnaký border ako footer */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); /* tieň dolu ako footer má hore */
    z-index: 1000;
}


/* --- ĽAVÁ ČASŤ (logo / back icon) --- */
.topbar-left {
    display: flex;
    align-items: center;
}

    .topbar-left img {
        height: 42px; /* mierne väčšie než predtým, pre vizuálnu rovnováhu */
        cursor: pointer;
        filter: brightness(0.92);
        position: relative;
        top: 1px; /* drobné vycentrovanie */
        transition: transform 0.15s ease, filter 0.2s ease;
    }

        .topbar-left img:hover {
            transform: scale(1.04);
            filter: brightness(1);
        }

/* --- PRAVÁ ČASŤ (košík, badge, login/logout) --- */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.2rem;
    color: #fff;
}

    /* Každý prvok klikateľný má jemný feedback */
    .topbar-right .cart,
    .topbar-right .login,
    .topbar-right .user-badge {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px 8px;
        border-radius: 8px;
        transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
    }

        .topbar-right .cart:hover,
        .topbar-right .login:hover,
        .topbar-right .user-badge:hover {
            transform: scale(1.08);
            background: #2a2a2a;
        }

        .topbar-right .cart:active,
        .topbar-right .login:active,
        .topbar-right .user-badge:active {
            transform: scale(0.9);
            background: #333;
        }

    /* --- USER BADGE --- */
    .topbar-right .user-badge {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #bc2419;
        color: #fff;
        font-weight: 600;
        font-size: 0.9rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    }

/* --- IKONY --- */
.topbar i {
    font-size: 1.5rem;
    color: #e0e0e0;
    transition: color 0.15s ease;
}

    .topbar i:hover {
        color: #bc2419;
    }

/* --- KOŠÍK --- */
.cart {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .cart i {
        font-size: 1.45rem;
    }

.cart-sum {
    font-size: 1rem;
    font-weight: 500;
}

/* --- BACK ICON --- */
.back-icon {
    font-size: 1.9rem;
    color: #bc2419;
    transition: transform 0.15s ease;
}

    .back-icon:hover {
        transform: scale(1.1);
    }




.cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #bc2419;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
}

.main-content {
    flex: 1;
    padding-top: 60px; /* výška topbaru */
    padding-bottom: 60px; /* rezerva pre footer */
    box-sizing: border-box;
}

.footer {
    min-height:60px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #111 0%, #1c1c1c 100%);
    border-top: 1px solid #333;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.6);
    color: #aaa;
    font-size: 1.0rem;
    text-align: center;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* pod topbarom, nad obsahom */
}

    /* Odkazy vo footeri */
    .footer a {
        color: #bc2419;
        margin: 0 4px;
        text-decoration: none;
        transition: color 0.2s ease, transform 0.2s ease;
    }

        .footer a:hover {
            text-decoration: underline;
            color: #ff5345;
            transform: scale(1.05);
        }

.footer-links {
    
    display: flex;
    flex-wrap: wrap; /* ak je málo miesta, zalomí */
    justify-content: center;
    gap: 6px 14px; /* vertikálny / horizontálny spacing */
    width: 100%;
    margin: 0 auto;
}

    .footer-links a {
        white-space: nowrap; /* nech sa texty nezalamujú uprostred */
    }

/* 🔹 Mobilná optimalizácia */
@media (max-width: 600px) {
    .footer {
        min-height: 60px;
        font-size: 0.85rem;
        background: linear-gradient(to top, #0e0e0e 0%, #1c1c1c 100%);
        box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.5);
    }

    .footer-links {
        gap: 4px 4px; /* menšie medzery medzi odkazmi */
        flex-wrap: wrap;
        justify-content: center;
        line-height: 1.1;
        max-width: 100%;
    }

        .footer-links a {
            white-space: normal; /* povolí lámanie len keď fakt treba */
        }
}




/* --- CLICK (ACTIVE) EFEKT --- */
.menu-item:active,
.pizza-card:active {
    transform: scale(0.95);
    filter: brightness(0.8);
    transition: transform 0.05s ease, filter 0.05s ease;
}

/* --- RIPPLE EFEKT --- */
.menu-item::after,
.pizza-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.menu-item:active::after,
.pizza-card:active::after {
    transform: scale(40);
    opacity: 1;
    transition: transform 0.6s ease, opacity 0.8s ease;
}

/* --- RESPONSIVITA --- */
@media (max-width: 600px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .pizza-grid {
        grid-template-columns: 1fr;
    }

    .menu-item img {
        height: 200px;
    }

    .menu-item span {
        font-size: 1rem;
        padding: 10px;
    }

    .pizza-img {
        height: 200px;
    }

    .menu-title {
        font-size: 1.8rem;
        margin: 20px 0 10px 0;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .menu-grid,
    .pizza-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .menu-grid,
    .pizza-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1201px) and (max-width: 1500px) {
    .menu-grid,
    .pizza-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1501px) {
    .menu-grid,
    .pizza-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Layout pre dashboard panely (extras-layout) */
.extras-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 🟢 280px minimálna šírka boxu */
    gap: 20px;
    padding: 5px;
}

.pizza-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.pizza-detail-img {
    width: 100%;
    max-width: 320px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.pizza-detail-info {
    text-align: center;
}

    .pizza-detail-info h2 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .pizza-detail-info .pizza-price {
        font-size: 1.3rem;
        color: #bc2419;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .pizza-detail-info .pizza-desc {
        font-size: 1rem;
        color: #bbb;
        margin-bottom: 8px;
    }

    .pizza-detail-info .pizza-allergens {
        font-size: 1rem;
        color: #aaa;
    }

.extras-panel {
    flex: 2;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

    .extras-panel h3 {
        margin: 10px 5px 10px 5px;
    }

/* Sumár pod prílohami */
.extras-summary {
    margin-top: 20px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
}

.extra-chip {
    display: inline-block;
    background: #444;
    color: #e0e0e0;
    border-radius: 12px;
    padding: 4px 10px;
    margin: 2px;
    font-size: 0.9rem;
}

/* Tlačidlo */
.extras-actions {
    text-align: center;
    margin-top: 20px;
}

.btn-add {
    padding: 12px 24px;
    font-size: 1.2rem;
    background: #bc2419;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

    .btn-add:hover {
        background: #ff6655;
    }

    .btn-add:disabled {
        background: #555;
        color: #aaa;
        cursor: not-allowed;
        opacity: 0.7;
    }

/* Responzívne: mobily */
@media (max-width: 768px) {
    .extras-layout {
        flex-direction: column;
    }

    .pizza-panel, .extras-panel {
        width: 100%;
    }
}

/* Badge na cenu */
.badge {
    display: inline-block;
    background: #bc2419;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.total {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}



.price {
    color: #bc2419;
    font-weight: bold;
}

.no-extras {
    color: #bbb;
    font-style: italic;
    margin: 5px 0 10px 0;
}

.total-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
    font-size: 1.1rem;
}

    .total-row .badge {
        margin-left: 10px;
        font-size: 1.2rem;
        padding: 6px 14px;
    }



/* ------------------------------------------
   RESPONSIVITA
------------------------------------------- */

/* ----------------------------------------------------
   MOBIL – 4 stĺpce
----------------------------------------------------- */
@media (max-width: 480px) {
    .extras-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
    }
}

/* veľmi malé mobily – 3 stĺpce */
@media (max-width: 360px) {
    .extras-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
    }
}

/* tablety – väčšie dlaždice */
@media (min-width: 768px) {
    .extras-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

/* ----------------------------------------------------
   GRID LAYOUT (default)
----------------------------------------------------- */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
}

/* ----------------------------------------------------
   ITEM BOX
----------------------------------------------------- */
.extra-box {
    background: #111;
    border-radius: 12px;
    padding: 4px 4px 0 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 135px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: 0.15s ease;
    transform: translateZ(0);
}

    .extra-box:hover {
        transform: scale(1.03);
        box-shadow: 0 3px 10px rgba(0,0,0,0.6);
    }

    .extra-box:active {
        transform: scale(0.97);
    }

    /* FREE položky – box nižší */
    .extra-box.no-price {
        min-height: 120px !important;
    }

    /* skrytý checkbox */
    .extra-box input[type="checkbox"] {
        display: none;
    }

/* ----------------------------------------------------
   OBRÁZOK
----------------------------------------------------- */
.extra-img-wrapper {
    width: 100%;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
}

.extra-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----------------------------------------------------
   NÁZOV PRODUKTU – PRESNE 2 RIADKY
----------------------------------------------------- */
.extra-name {
    font-size: 0.78rem;
    line-height: 1.18;
    color: #fff;
    height: 2.4em;
    max-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
    padding: 0 4px;
}

/* ----------------------------------------------------
   CENA – BADGE
----------------------------------------------------- */
.extra-price {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: #bc2419;
    color: #fff;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    transition: background 0.2s ease, color 0.2s ease;
}

    /* FREE badge */
    .extra-price.free {
        background: #333;
        color: #ccc;
        padding: 3px 8px;
        font-size: 0.70rem;
    }

/* FREE → badge preč */
.extra-box.no-price .extra-price {
    display: none;
}

/* ----------------------------------------------------
   ACTIVE STATE
----------------------------------------------------- */
.extra-box.active {
    background: #8c1c1c;
    box-shadow: 0 0 12px rgba(255,0,0,0.35);
    transform: scale(1.04);
}

    .extra-box.active .extra-price {
        background: #e63232;
        color: #fff;
    }

        .extra-box.active .extra-price.free {
            background: #555;
            color: #fff;
        }

/* ----------------------------------------------------
   DISABLED
----------------------------------------------------- */
.extra-box.disabled {
    opacity: 0.35;
    pointer-events: none;
}





.checkout-form {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 5px 5px;
    align-items: center;
}

    .checkout-form label {
        font-weight: bold;
    }

    .checkout-form input,
    .checkout-form select {
        width: 98%;
        padding: 10px 10px 10px 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        background: #222;
        color: #fff;
    }

        .checkout-form input:focus,
        .checkout-form select:focus {
            border-color: #e53935;
            outline: none;
        }

    .checkout-form input,
    .checkout-form select,
    .checkout-form textarea {
        font-family: inherit;
        font-weight: 500;
        font-size: 0.9rem;
        width: 98%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        background: #222;
        color: #fff;
    }

      

@media (max-width: 768px) {
    .checkout-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }

        .checkout-form label {
            width: 100%;
            margin-bottom: 4px;
        }

        .checkout-form input,
        .checkout-form select,
        .checkout-form textarea {
            width: 100%;
        }

        .checkout-form .error-message {
            width: 100%;
            margin-top: -2px;
            color: #bc2419;
            font-size: 0.85rem;
        }

    .phone-input {
        display: flex;
        flex-direction: row;
        gap: 6px;
        width: 100%;
    }

        .phone-input select {
            width: 80px;
        }

        .phone-input input {
            flex: 1;
        }
}






/* animácia košíka */
.cart-bump {
    animation: bump 0.4s ease;
}

@keyframes bump {
    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(1.2);
        color: #bc2419;
    }

    50% {
        transform: scale(0.95);
        color: #fff176;
    }

    100% {
        transform: scale(1);
        color: inherit;
    }
}

.cart-sum.bumped {
    color: #bc2419;
    font-weight: bold;
    transition: color 0.4s ease;
}



/* --- ADMIN TABUĽKA --- */



/* Tlačidlá v tabuľke */
.btn-action {
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-right: 6px;
}

    .btn-action.edit {
        background: #3498db;
        color: #fff;
    }

   

    .btn-action.delete {
        background: #bc2419;
        color: #fff;
    }

    .btn-action:hover {
        opacity: 0.9;
    }

/* Layout editor */
.editor-layout {
    display: flex;
    gap: 20px;
    padding: 5px;
}

/* Ľavý panel */
.editor-left {
    flex: 1;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.editor-left input[type="checkbox"] {
    width: auto;
    transform: scale(1.2);
    margin-top: 6px;
}

.editor-img {
    width: 100%;
    max-width: 260px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #444;
}

.editor-info {
    width: 100%;
}

    .editor-info label {
        display: block;
        font-weight: bold;
        margin-top: 10px;
        margin-bottom: 4px;
        color: #ddd;
    }

    .editor-info input,
    .editor-info textarea {
        width: 100%;
        padding: 8px 10px;
        border: 1px solid #444;
        border-radius: 4px;
        background: #222;
        color: #fff;
        font-size: 0.95rem;
    }

    .editor-info textarea {
        min-height: 80px;
        resize: vertical;
    }

/* Pravý panel */
.editor-right {
    flex: 2;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Skupiny 2×2 */
.groups-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.group-box {
    background: #2a2a2a;
    padding: 12px;
    border-radius: 8px;
}

    .group-box h4 {
        margin-top: 0;
        color: #bc2419;
        margin-bottom: 10px;
    }

    .group-box label {
        display: block;
        font-weight: bold;
        margin-top: 8px;
        margin-bottom: 4px;
        color: #ccc;
    }

    .group-box input,
    .group-box textarea {
        width: 100%;
        padding: 6px 8px;
        border: 1px solid #444;
        border-radius: 4px;
        background: #222;
        color: #fff;
        font-size: 0.9rem;
    }

        .group-box input[type="checkbox"] {
            width: auto;
            transform: scale(1.2);
            margin-top: 6px;
        }

/* Akcie */

.editor-actions-layout {
    padding-left: 5px;
    padding-right: 5px;
}

.editor-actions {
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    width: 100%;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
}

.btn-action {
    
    min-width: 150px;
    padding: 12px;
    font-size: 1.2rem;
    background: #bc2419;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .btn-action.save {
        margin-left: auto;
        background: #2ecc71;
        color: #fff;
    }

    .btn-action.cancel {
        margin-right: auto;
        background: #bc2419;
        color: #fff;
    }

    .btn-action.cancel.one {
        margin: auto;
        background: #bc2419;
        color: #fff;
    }

    .btn-action:hover {
        opacity: 0.9;
    }

/* Responzivita */
@media (max-width: 900px) {
    .editor-layout {
        flex-direction: column;
    }

    .groups-grid {
        grid-template-columns: 1fr;
    }
}

.editor-toolbar .ribbon-group label {
    display: flex;
    align-items: center;
    height: 70px; /* rovnaká výška ako ribbon tlačidlá */
    margin-right: 6px;
    color: #ccc;
    font-size: 0.95rem;
}


.editor-toolbar {
    height:80px;
    display: flex;
    align-items: center; 
    overflow-x: auto;
    overflow-y: hidden;
    background: #1c1c1c;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    padding: 8px 6px;
    position: sticky;
    top: 0;
    z-index: 100;
    scrollbar-width: none;
}

    .editor-toolbar::-webkit-scrollbar {
        display: none;
    }


.ribbon-group {
    display: flex;
    gap: 12px;
    padding: 0 16px;
    border-right: 1px solid #333;
    flex-shrink: 0; /* nedovolí zmenšiť */
}

    .ribbon-group:last-child {
        border-right: none;
    }

/* Ribbon tlačidlo */
.btn-ribbon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 70px;
    border: none;
    border-radius: 6px;
    background: #2a2a2a;
    cursor: pointer;
    font-size: 0.8rem;
    color: #e0e0e0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

    .btn-ribbon:hover {
        background: #333;
        transform: translateY(-2px);
        box-shadow: 0 3px 6px rgba(0,0,0,0.6);
    }

    .btn-ribbon:disabled {
        background: #444;
        color: #777;
        cursor: not-allowed;
    }



    .btn-ribbon i {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }

    .btn-ribbon.add i {
        color: #2ecc71;
    }

    .btn-ribbon.back i {
        color: #f39c12;
    }

    .btn-ribbon.shipped i {
        color: #9B59B6;
    }

    .btn-ribbon.done i {
        color: #27ae60;
    }

    .btn-ribbon.edit i {
        color: #3498db;
    }

    .btn-ribbon.delete i {
        color: #bc2419;
    }


.admin-table-container {
    height: calc(100vh - 200px);
    /* 100vh = celé okno
       -60px topbar
       -80px ribbon (prispôsob podľa reálnej výšky ribbonu)
    */
    overflow-y: auto;
    border-radius: 8px;
    position: relative; /* sticky ostane fungovať */
}

.admin-table2-container {
    /* 100vh = celé okno
       -60px topbar
       -80px ribbon (prispôsob podľa reálnej výšky ribbonu)
    */
    overflow-y: auto;
    border-radius: 8px;
    position: relative; /* sticky ostane fungovať */
}


/* Tabuľka */
.admin-table {
    width: 100%;
    border-collapse: separate; /* separate kvôli sticky */
    border-spacing: 0;
}

    /* Sticky header */
    .admin-table thead th {
        position: sticky;
        top: 0;
        background: #2a2a2a; /* farba hlavičky */
        z-index: 5;
    }

    /* Riadočky */
    .admin-table td,
    .admin-table th {
        padding: 10px 12px;
        border-bottom: 1px solid #333;
        text-align: left;
        color: #e0e0e0;
    }

    /* Hover efekt */
    .admin-table tr:hover {
        background: #292929;
    }

    /* Označený riadok */
    .admin-table tr.selected {
        background: #333 !important;
    }

.topbar i {
    font-size: 1.6rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .topbar i:hover {
        color: #bc2419;
    }

.back-icon {
    font-size: 1.8rem;
    color: #bc2419; /* zvýraznená */
}

.readonly-textarea {
    background-color: #2c2c2c; /* rovnaké pozadie ako tvoje inputy */
    border: 1px solid #444; /* rovnaký border */
    color: #bc2419; /* červený text obsahu */
    font-weight: bold;
    font-size: 14px;
    font-family: inherit;
    border-radius: 4px;
    padding: 6px 10px;
    resize: none; /* vypne resize rukoväť */
}

.status-badge {
    font-weight: bold;
    color: white;
}

    .status-badge.new {
        color: #f39c12; /* žltá/oranžová */
    }

    .status-badge.accepted {
        color: #3498db; /* modrá */
    }

    .status-badge.done {
        color: #27ae60; /* zelená */
    }

    .status-badge.shipped {
        color: #9B59B6; /* fialová */
    }


    .status-badge.cancelled {
        color: #bc2419; /* červená */
    }


    .status-badge.late {
        color: #ff9800; /* oranžová */
    }



    .status-badge.critical {
        color: #bc2419;
    }





/* Flash efekt pre nové objednávky */
@keyframes flashHighlight {
    0% {
        background-color: #f39c12;
    }

    50% {
        background-color: #2a2a2a;
    }

    100% {
        background-color: #f39c12;
    }
}

.admin-table tr.new-order-flash {
    animation: flashHighlight 2s ease-in-out infinite;
}

.admin-table tr.new-order-static {
    background-color: #3a2a12 !important;
}

/* --- Flash efekt pre nové objednávky --- */
@keyframes flashRow {
    0% {
        background-color: #2a2a2a;
    }

    50% {
        background-color: #f39c12;
    }
    /* oranžová na upozornenie */
    100% {
        background-color: #2a2a2a;
    }
}

.new-order-flash {
    animation: flashRow 1s ease-in-out infinite;
}

/* Po 10s necháme len zvýraznený podklad */
.new-order-highlight {
    background-color: #3a3a3a !important;
}

/* --- Hover efekt pre nové aj bežné riadky --- */
.admin-table tr:hover {
    background: #444 !important; /* tmavší hover */
    cursor: pointer;
}

/* --- Kliknutý (selected) stav --- */
.admin-table tr.selected {
    background: #555 !important;
}

.summary-row {
    display: flex;
    justify-content: space-between; /* roztiahne text a cenu na kraje */
    padding: 4px 0;
    font-size: 0.95rem;
}

    .summary-row .price {
        text-align: right;
        min-width: 80px; /* aby sa čísla zarovnali krajšie pod sebou */
    }

.thankyou-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* zarovná do stredu */
    justify-content: center;
    text-align: center; /* text tiež na stred */
    margin-top: 80px;
    background: #1e1e1e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

    .thankyou-container h2 {
        color: #bc2419;
        margin-bottom: 20px;
    }

.thankyou-actions {
    margin-top: 20px;
}



.search-box {
    display: flex;
    align-items: center; 
    gap: 8px;
    margin-left: 10px;
    flex-shrink: 0;
    position: relative;
}

    .search-box i {
        color: #bbb;
        position: absolute;
        left: 10px;
        pointer-events: none;
    }

    .search-box input {
        padding: 6px 10px 6px 30px;
        background: #2b2b2b;
        border: 1px solid #444;
        border-radius: 6px;
        color: #fff;
        font-size: 0.95rem;
        height: 36px; /* 🔹 rovnaká výška ako buttony */
        min-width: 180px;
        outline: none;
        transition: border-color 0.2s;
    }

        .search-box input:focus {
            border-color: #bc2419;
        }

/* --- DATE/TIME PICKERY v archíve --- */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    margin:auto;
    max-height: 36px;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
    padding: 6px 8px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 140px; /* nech sú jednotné */
}

    /* Fokus */
    input[type="date"]:focus,
    input[type="time"]:focus,
    input[type="datetime-local"]:focus {
        border-color: #bc2419;
        box-shadow: 0 0 6px rgba(231, 76, 60, 0.6);
        outline: none;
    }

    input[type="date"]::-webkit-calendar-picker-indicator,
    input[type="time"]::-webkit-calendar-picker-indicator,
    input[type="datetime-local"]::-webkit-calendar-picker-indicator {
        filter: invert(1); /* čisto biela */
        cursor: pointer;
    }


    /* Disabled stav */
    input[type="date"]:disabled,
    input[type="time"]:disabled,
    input[type="datetime-local"]:disabled {
        background: #2a2a2a;
        color: #777;
        cursor: not-allowed;
    }

.login-container {
    text-align: left; /* všetko doľava */
    width: 100%;
    max-width: 400px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

    .login-form label {
        font-weight: bold;
        margin-bottom: 4px;
        color: #e0e0e0;
    }

    .login-form input {
        width: 100%;
        padding: 10px;
        border: 1px solid #444;
        border-radius: 6px;
        background: #222;
        color: #fff;
    }

.full-width {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
}

.error-message {
    color: #bc2419;
    font-size: 0.85rem;
    margin-top: -6px;
    margin-bottom: 8px;
    grid-column: 2 / 3; /* pod inputom */
}


.register-link {
    margin-top: 30px; /* väčší odstup od formulára */
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Full-width fix pre login/register tlačidlá */
.btn-action.full-width,
.btn-add.full-width {
    width: 100%;
    margin: 10px 0 0 0; /* hore malý odstup, inak nulové okraje */
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    display: block; /* aby ignoroval inline marginy */
}

.login-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font-size: 1rem;
}

    .login-form select:focus {
        border-color: #bc2419;
        outline: none;
    }


.account-hint {
    margin-top: 20px;
    padding: 14px 16px;
    background: #1e1e1e; /* tmavé pozadie ako panely */
    border: 1px solid #333; /* tmavý border */
    border-radius: 8px;
    font-size: 0.9rem;
    color: #ccc; /* svetlosivý text */
}

    .account-hint p {
        margin: 6px 0;
    }

    .account-hint .btn-link {
        background: none;
        border: none;
        color: #bc2419; /* červený akcent ako celé UI */
        cursor: pointer;
        text-decoration: underline;
        padding: 0;
        font-weight: bold;
    }

        .account-hint .btn-link:hover {
            color: #ff6655; /* svetlejšia červená pri hover */
        }

.user-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #bc2419; /* červená ako akcent */
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    cursor: default;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: background 0.2s ease;
}

    .user-badge:hover {
        background: #ff6655; /* hover efekt */
    }

.sms-message-box {
    width: 100%;
    min-height: 200px;
    padding: 14px 18px;
    background: #2c2c2c;
    border: 1px solid #444;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.5;
    white-space: pre-wrap; /* zachová zalomenia a viacriadkový text */
    word-break: break-word; /* zalomí dlhé slová/čísla */
    overflow-y: auto; /* ak je text dlhý, zobrazí scrollbar */
}

.phone-input {

    display: flex;
    gap: 8px; /* medzera medzi selectom a inputom */
    align-items: stretch; /* oba prvky natiahneme na rovnakú výšku */
}

    .phone-input select {
        padding: 0px;
        
        background-repeat: no-repeat;
        background-position: 6px center; /* vlajka viac k ľavému okraju */
        background-size: 20px auto;
        width: auto; /* prispôsobí sa obsahu (+421) */

        min-width: 70px; /* aby sa nezúžil príliš */
        font-size: 14px;
        line-height: normal; /* nech sa neruší výška textu */
    }

        .phone-input select.flag-sk {
            background-image: url('/images/sk.png');
        }

        .phone-input select.flag-cz {
            background-image: url('/images/cz.png');
        }

    .phone-input input {
        
        flex: 1; /* zaberie zvyšok miesta */
        font-size: 14px;
        padding: 6px 8px;
        line-height: normal;
    }

.checkout-form .phone-input {
    width: 98%;
    display: flex;
    gap: 8px;
}

    .checkout-form .phone-input select {
        padding-left: 32px;
        padding-right: 10px;
        background-repeat: no-repeat;
        background-position: 6px center;
        background-size: 20px auto;
        min-width: 70px;
        font-size: 14px;
        height: 36px;
        line-height: normal;
    }

        .checkout-form .phone-input select.flag-sk {
            background-image: url('/images/sk.png');
        }

        .checkout-form .phone-input select.flag-cz {
            background-image: url('/images/cz.png');
        }

    .checkout-form .phone-input input {
        flex: 1;
        font-size: 14px;
        padding: 6px 8px;
        height: 36px;
        line-height: normal;
    }

.register-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.register-layout {
    display: flex;
    gap: 20px;
}

    .register-layout .pizza-panel {
        flex: 2;
        background: #1e1e1e;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }

    .register-layout .extras-panel {
        flex: 1;
        background: #1e1e1e;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }

@media (max-width: 768px) {
    .register-layout {
        flex-direction: column;
    }
}

.profile-wrapper {
    max-width: 1100px; /* obmedzí šírku celého layoutu */
    margin: 0 auto;
    padding: 20px;
}



/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2a2a2a;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #444;
    z-index: 2000;
    font-size: 0.9rem;
    flex-wrap: wrap; /* 👉 ak sa nezmestí, zlomí sa */
    gap: 10px;
}

.cookie-text {
    color: #e0e0e0;
    flex: 1; /* 👉 text má priestor */
}

    .cookie-text a {
        color: #bc2419;
        font-weight: bold;
        text-decoration: underline;
    }

        .cookie-text a:hover {
            color: #ff6655;
        }

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .cookie-actions button {
        background: #bc2419;
        border: none;
        padding: 6px 14px;
        color: #fff;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.9rem;
        transition: background 0.2s ease;
    }

        .cookie-actions button:hover {
            background: #ff6655;
        }


.checkout-links {
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
    margin-top: 12px;
}

    .checkout-links a {
        color: #bc2419; /* červená ako akcent */
        font-weight: bold;
        text-decoration: underline;
    }

        .checkout-links a:hover {
            color: #ff6655; /* svetlejšia červená pri hover */
        }


@media (max-width: 600px) {
    .hours-table th,
    .hours-table td {
        font-size: 0.85rem;
        padding: 6px;
    }
}


/* Desktop only */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: grid;
        gap: 16px;
        padding: 16px;
    }

    .order-card {
        background: #1e1e1e;
        border-radius: 10px;
        padding: 14px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.6);
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .order-card:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 12px rgba(0,0,0,0.8);
        }

    .order-header {
        font-size: 1.1rem;
        margin-bottom: 8px;
        color: #bc2419;
    }

    .order-body p {
        margin: 4px 0;
        font-size: 0.95rem;
        color: #ddd;
    }
}

.hours-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

    .hours-container h2 {
        text-align: center;
        color: #bc2419;
        margin-bottom: 20px;
    }

.hours-table {
    width: 100%;
    border-collapse: collapse;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

    .hours-table th,
    .hours-table td {
        padding: 10px;
        text-align: center;
        border-bottom: 1px solid #444;
        font-size: 0.95rem;
    }

    .hours-table th {
        background: #333;
        color: #bc2419;
        font-weight: bold;
    }

    .hours-table td {
        color: #e0e0e0;
    }

    /* Inputs */
    .hours-table input[type="time"] {
        width: 90px;
        min-width: 80px;
        max-width: 100px;
        background: #222;
        border: 1px solid #444;
        border-radius: 4px;
        color: #fff;
        padding: 6px;
        font-size: 0.9rem;
        text-align: center;
    }

        .hours-table input[type="time"]:focus {
            border-color: #bc2419;
            outline: none;
        }

/* Flex kontajner pre rozsahy */
.time-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .time-range .dash {
        color: #e0e0e0;
        font-weight: bold;
    }

/* Mobile layout */
@media (max-width: 700px) {
    .time-range {
        flex-direction: column;
        gap: 4px;
    }

        .time-range .dash {
            display: none; /* pomlčka sa schová */
        }

    .hours-table input[type="time"] {
        width: 100%;
        margin: 0;
    }
}


.today-row {
    background: #3a3a3a;
    font-weight: bold;
    color: #ff6655;
}

.admin-tools {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

    .admin-tools label {
        font-weight: bold;
        color: #e0e0e0;
    }

    .admin-tools .form-control {
        padding: 8px 10px;
        border: 1px solid #444;
        border-radius: 4px;
        background: #222;
        color: #fff;
        font-size: 0.95rem;
    }

    .admin-tools .btn-add {
        padding: 10px 20px;
        font-size: 1rem;
    }


/* --- SKELETON LOADER --- */
.skeleton {
    position: relative;
    background: #2a2a2a;
    overflow: hidden;
}

    .skeleton::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%; /* začiatok úplne mimo */
        height: 100%;
        width: 100%; /* pruh cez celý obrázok */
        background: linear-gradient( 90deg, transparent, rgba(255,255,255,0.2), transparent );
        animation: shimmer 1.5s infinite;
    }

@keyframes shimmer {
    100% {
        transform: translateX(200%); /* prejde celý box a ešte kúsok */
    }
}

/* Pevné výšky skeletonov podľa obrázkov */
.menu-item .skeleton {
    width: 100%;
    height: 180px; /* rovnaké ako .menu-item img */
}

.pizza-card .skeleton {
    width: 100%;
    height: 200px; /* rovnaké ako .pizza-img */
}

/* Mobilné varianty */
@media (max-width: 600px) {
    .menu-item .skeleton {
        height: 200px; /* rovnaké ako .menu-item img na mobile */
    }

    .pizza-card .skeleton {
        height: 200px; /* rovnaké ako .pizza-img na mobile */
    }
}

.kpi-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kpi-card {
    background: #1e1e1e;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #e0e0e0;
}

    .kpi-card i {
        color: #bc2419;
        margin-right: 10px;
        font-size: 1.2rem;
    }

    .kpi-card strong {
        font-size: 1rem;
        color: #fff;
    }




.settings-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* min 280px, inak 1fr */
    gap: 20px;
    padding: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}


.settings-column {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

    .settings-column h3 {
        margin-top: 0;
        margin-bottom: 12px;
        color: #bc2419;
    }

    .settings-column label {
        display: block;
        font-weight: bold;
        margin-top: 10px;
        margin-bottom: 4px;
        color: #ccc;
    }

    .settings-column input[type="text"] {
        width: 100%;
        padding: 6px 8px;
        border: 1px solid #444;
        border-radius: 4px;
        background: #222;
        color: #fff;
    }

.notify-textarea {
    width: 100%;
    min-height: 100px;
    padding: 8px 10px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #222;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 10px;
    resize: vertical;
}

.date-range-select {
    max-height: 36px;
    margin: auto;
    padding: 8px 10px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #222;
    color: #fff;
    font-size: 0.9rem;
}

    .date-range-select:focus {
        border-color: #bc2419;
        outline: none;
    }




.closed-banner .hours-link {
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

    .closed-banner .hours-link:hover {
        color: #ffe5e0;
    }





.extras-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
}

    /* Každá položka */
    .extras-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
        position: relative;
    }

        /* Jemná linka len medzi položkami */
        .extras-list li:not(:last-child)::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background: rgba(255, 255, 255, 0.08);
        }

    /* Hlavná položka */
    .extras-list .main-item {
        font-weight: 700;
        color: #fff;
    }

    /* Prílohy */
    .extras-list .extra-item {
        font-weight: 400;
        padding-left: 18px;
        color: #ccc;
    }

    /* Cena */
    .extras-list .price {
        color: #bc2419;
        font-weight: 500;
        margin-left: 8px;
    }

    /* --- Sekcia "Zmazať celú položku" --- */
    .extras-list .remove-item {
        text-align: right;
        padding-top: 6px;
        margin-top: 4px;
    }

        .extras-list .remove-item button {
            background: none;
            border: none;
            color: #bc2419;
            cursor: pointer;
            font-size: 0.85rem;
            transition: color 0.2s ease, text-decoration 0.2s ease;
        }

            .extras-list .remove-item button:hover {
                color: #ff6f61;
                text-decoration: underline;
            }

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation-duration: 0.25s;
    animation-timing-function: ease-in-out;
}

    .modal-backdrop.fade-in {
        animation-name: fadeIn;
    }

    .modal-backdrop.fade-out {
        animation-name: fadeOut;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.96);
    }
}

.modal-container {
    width: 95%;
    max-width: 900px;
}

.modal-container-thin {
    width: 95%;
    max-width: 450px;
}

.modal-inner {
    background: #151515;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0,0,0,0.9);
    color: #ddd;
    line-height: 1.5;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

    .modal-inner h2 {
        text-align: center;
        color: #bc2419;
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

.intro-small {
    text-align: center;
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 10px;
}

/* Scrollovateľná časť tabuľky */
.table-scroll {
    flex-grow: 1;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1e1e1e;
}

.allergens-table {
    width: 100%;
    border-collapse: collapse;
}

    .allergens-table thead th {
        position: sticky;
        top: 0;
        background: #bc2419;
        color: #fff;
        padding: 8px;
        text-align: left;
        font-weight: 600;
        z-index: 2;
        font-size: 0.9rem;
    }

    .allergens-table td {
        padding: 8px;
        border-bottom: 1px solid #333;
        font-size: 0.9rem;
    }

    .allergens-table tr:nth-child(even) {
        background: #1a1a1a;
    }

/* Footer link a tlačidlo */
.modal-footer {
    text-align: center;
    margin-top: 5px;
}

.footer-link {
    color: #bc2419;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 15px;
    transition: color 0.2s ease;
}

    .footer-link:hover {
        color: #ff6f61;
        text-decoration: underline;
    }

.close-btn {
    background: #bc2419;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .close-btn:hover {
        background: #ff6b5e;
    }

@media (max-width: 768px) {
    .modal-inner {
        padding: 15px;
    }

    .intro-small {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .allergens-table th, .allergens-table td {
        font-size: 0.85rem;
        padding: 6px;
    }
}

.modal-h2
{
    margin:15px;
    text-align: center;
    color: #bc2419;
    font-size: 2rem !important;
}

/* ===========================
   RESPONSIVE ADMIN TABLES
   =========================== */
@media (max-width: 900px) {
    .admin-table-container.responsive {
        display: block;
        overflow-x: auto;
    }

    .admin-table.responsive {
        width: 100%;
        border-collapse: collapse;
    }

    /* Skryť hlavičku tabuľky */
    .admin-table.responsive thead {
        display: none;
    }

    /* Každý riadok ako karta */
    .admin-table.responsive tr {
        display: block;
        margin: 0.25rem 0.5rem 0.25rem 0.5rem;
        background: #151515;
        border: 1px solid #333;
        border-radius: 10px;
        padding: 0.7rem 1rem;
        cursor: pointer;
    }

        .admin-table.responsive td {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.1rem 0;
            border: none;
            font-size: 1rem;
            color: #ddd;
            line-height: 1;
        }



    .admin-table.responsive td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #999;
        margin-right: 0.8rem;
    }

    /* selected riadok nech má jemný efekt */
    .admin-table.responsive tr.selected {
        border-color: #b30000;
        box-shadow: 0 0 4px #b30000;
    }
}

.form-control {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #333;
    background-color: #1c1c1c;
    color: #eee;
    font-size: 14px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #cc0000;
    }

    .form-control option {
        background-color: #1c1c1c;
        color: #fff;
    }


/* --- TABS --- */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: #1c1c1c;
    padding: 10px;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.tab-button {
    background: #2a2a2a;
    color: #ccc;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

    .tab-button:hover {
        background: #333;
        color: #fff;
    }

    .tab-button.active {
        background: #bc2419;
        color: #fff;
        border-color: #bc2419;
        box-shadow: 0 0 6px rgba(188,36,25,0.6);
    }


.loader-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh; /* 💥 garantované vertikálne centrovanie */
    text-align: center;
    background: transparent;
    color: #ccc;
    padding: 20px;
}

.loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.loader-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid #bc2419;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 1rem;
    font-weight: 500;
    color: #bbb;
    letter-spacing: 0.5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.admin-table-container {
    position: relative;
    min-height: 300px; /* garantovaný priestor aj pred načítaním */
}

/* Loader vrstvu umiestnime priamo nad tbody */
.table-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* teraz zaberá celý kontajner */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(20,20,20,0.7); /* jemný transparentný podklad */
    backdrop-filter: blur(2px);
    color: #ccc;
    z-index: 5; /* nad tbody, ale pod ribbonom */
    border-radius: 6px;
}

.table-loader-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top: 3px solid #bc2419;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

.table-loader-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #bbb;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === MINIMALIST iPHONE MOCK FOR SMS PREVIEW === */
.phone-mock {
    width: 300px;
    height: 600px;
    margin: 20px auto;
    background: #111;
    border: 10px solid #222;
    border-radius: 40px;
    box-shadow: 0 0 25px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}

/* Dynamic Island / notch */
.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 26px;
    background: #000;
    border-radius: 14px;
    z-index: 10;
    box-shadow: 0 0 6px rgba(0,0,0,0.6) inset;
}

/* (voliteľné – header pre realistickosť, ale bez ikoniek) */
.phone-header {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
    padding-top: 6px;
}

/* Screen area */
.phone-screen {
    background: linear-gradient(180deg, #0f0f0f, #1c1c1c);
    border-radius: 30px;
    width: 100%;
    height: 100%;
    padding: 60px 20px 20px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    box-sizing: border-box;
}

/* SMS bubble */
.sms-bubble {
    max-width: 80%;
    background: linear-gradient(135deg, #007aff, #339dff);
    color: #fff;
    padding: 12px 15px;
    border-radius: 20px 20px 5px 20px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
    white-space: pre-wrap;
    margin-bottom: 10px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}


    .sms-bubble:empty::before {
        content: "— prázdna správa —";
        color: #888;
        font-style: italic;
    }


.dark-toast {
    border-radius: 16px !important;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(6px);
    animation: fadeUp 0.4s ease-out;
    padding: 20px 25px !important;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.swal2-icon {
    transform: scale(1.1);
    margin-bottom: 8px !important;
}

.estimate-time-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 30px 0 25px 0;
}

.time-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    font-size: 1.5rem;
    width: 50px;
    height: 45px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

    .time-btn:hover {
        background: #333;
        transform: scale(1.05);
    }

    .time-btn:active {
        transform: scale(0.9);
    }

.estimate-input-field {
    width: 90px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: bold;
    background: #1c1c1c;
    color: #bc2419;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 6px;
    user-select: none;
}

.estimate-label {
    font-size: 1.1rem;
    color: #bbb;
    font-weight: 500;
}

.modal-footer.dual {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

/* === ZVÝRAZNENIE NULY PO +421 === */
.wrong-zero {
    color: #bc2419;
    font-weight: 600;
}


/* Doplnené zvýraznenie textov */
.ok-text {
    color: #6cff8d;
    font-weight: 600;
}

.error-text {
    color: #bc2419;
    font-weight: 600;
}

.extras-item.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.8);
}

.extras-item .unavailable-text {
    font-size: 0.8rem;
    color: #ff6b6b;
    margin-left: 6px;
}

.report-form {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

    .report-form label {
        display: block;
        color: #bc2419;
        font-weight: 600;
        margin-top: 10px;
        margin-bottom: 4px;
    }

    .report-form input,
    .report-form textarea {
        width: 100%;
        padding: 10px;
        border-radius: 6px;
        border: 1px solid #444;
        background: #222;
        color: #fff;
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .report-form textarea {
        min-height: 140px;
        resize: vertical;
    }

        .report-form input:focus,
        .report-form textarea:focus {
            border-color: #bc2419;
            outline: none;
        }

/* Responzívne */
@media (max-width: 700px) {
    .report-form {
        width: 95%;
        padding: 15px;
    }

        .report-form input,
        .report-form textarea {
            font-size: 0.9rem;
        }
}

/* highlight pre nový log */
.log-highlight {
    animation: jlogicPulse 3s ease-in-out;
}

@keyframes jlogicPulse {
    0% {
        background-color: rgba(188, 36, 25, 0.0); /* transparent */
    }

    20% {
        background-color: rgba(188, 36, 25, 0.75); /* rozsvietenie */
    }

    70% {
        background-color: rgba(188, 36, 25, 0.75); /* držanie jasu */
    }

    100% {
        background-color: rgba(188, 36, 25, 0.0); /* plynulé zhasnutie */
    }
}

.delivery-radio-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

    .delivery-radio-group .option-box {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        background: #111;
        border: 2px solid #700000;
        border-radius: 8px;
        cursor: pointer;
    }

        .delivery-radio-group .option-box:hover {
            background: #1c1c1c;
            border-color: #a00000;
        }

    .delivery-radio-group input[type="radio"] {
        appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid #700000;
        border-radius: 50%;
        background: #000;
        position: relative;
        cursor: pointer;
    }

        .delivery-radio-group input[type="radio"]:checked {
            border-color: #ff0000;
        }

            .delivery-radio-group input[type="radio"]:checked::before {
                content: "";
                position: absolute;
                top: 2px;
                left: 2px;
                width: 16px;
                height: 16px;
                background: #ff0000;
                border-radius: 50%;
            }


/* === PIZZA TYPE GRID (checkboxy v settings) === */

.product-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.product-type-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #2a2a2a;
    border-radius: 6px;
    border: 1px solid #333;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    user-select: none;
}

    .product-type-item:hover {
        background: #333;
    }

    .product-type-item.active {
        background: #bc2419;
        border-color: #bc2419;
        color: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    }

    .product-type-item input[type="checkbox"] {
        transform: scale(1.2);
        cursor: pointer;
    }

    .product-type-item span {
        flex: 1;
        font-size: 0.95rem;
        color: inherit;
    }

/* Scrollovací box pre e-maily a telefónne čísla */
.list-box {
    margin-top: 10px;
    max-height: 220px; /* pevná výška */
    overflow-y: auto; /* scroll len keď treba */
    background: #202020;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* čipy ostávajú rovnaké */
.list-chip {
    background: #2a2a2a;
    border: 1px solid #444;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #eee;
}

.chip-remove {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 6px;
    color: #bc2419;
    font-weight: bold;
}

    .chip-remove:hover {
        color: #ff6655;
    }

/* === LOADING MODAL (SMS CREATE) === */
.loading-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    animation: fadeInLoading 0.3s ease forwards;
}

@keyframes fadeInLoading {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.loading-modal-container {
    background: #1e1e1e;
    color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(231,76,60,0.4);
    border: 1px solid #bc2419;
    max-width: 340px;
}

.loading-modal-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #bc2419;
}

.loading-modal-sub {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 20px;
}

.loading-modal-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #333;
    border-top-color: #bc2419;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin .9s linear infinite;
}

.order-loading-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30000;
    animation: fadeInLoading 0.3s ease forwards;
}

.order-loading-box {
    background: #1e1e1e;
    color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(231,76,60,0.4);
    border: 1px solid #bc2419;
    max-width: 340px;
}

.order-loading-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #bc2419;
}

.order-loading-sub {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 20px;
}

.order-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: #bc2419;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin .9s linear infinite;
}

.status-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* medzera medzi bodkou a textom */
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}


    .status-dot.online {
        background-color: #2ecc71; /* zelená */
    }

    .status-dot.offline {
        background-color: #e74c3c; /* červená */
    }

    .status-dot.blocked {
        background-color: #7f8c8d; /* sivá */
    }
