/* ========================================= */
/* 🌌 KOUZELNÝ DESIGN KARET PRO OBJEDNÁVKY 🌌 */
/* ========================================= */

/* Základní navigace */
.navbar-brand { font-size: 1.0rem; color: #fff !important; }
.nav-icons { display: flex; align-items: center; gap: 10px; }
.nav-link { color: rgba(255,255,255,.7) !important; text-decoration: none; padding: 5px; }
.nav-link:hover { color: rgba(255,255,255,1) !important; }
.navbar-text { font-size: 1rem !important; margin-left: 10px !important; color: #fff !important; }

@media (max-width: 991px) { .navbar-text { display: none; } }

/* HLAVNÍ KONTEJNER - přidáváme VELKÝ padding-top, aby se pod fixní lištou udělalo místo */
.order-history-container { 
    padding: 20px 15px; 
    max-width: 700px; 
    margin: 70px auto 30px auto !important; /* Větší mezera shora kvůli fixní liště */
}

/* JEDNOTLIVÉ KARTY - jasně oddělené, výraznější skleněný efekt a větší mezera */
.order-card { 
    background: rgba(20, 10, 35, 0.65) !important; /* O něco sytější podklad pro lepší kontrast */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    /* Výraznější ohraničení a světlejší linka shora pro 3D efekt oddělení */
    border: 1px solid rgba(255, 255, 255, 0.25) !important; 
    border-top: 1px solid rgba(255, 255, 255, 0.4) !important;
    /* Silný stín, který kartu opticky zvedne nad pozadí a oddělí od sousední */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 22px; 
    margin-bottom: 30px !important; /* Větší mezera mezi kartami, aby nesplývaly */
    border-radius: 16px; 
}

.order-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.order-header h4 { font-size: 1.15rem; margin-bottom: 0; padding-right: 15px; word-break: break-word; color: #fff !important; }

.order-status-badge { padding: 4px 10px; border-radius: 6px; font-weight: bold; font-size: 0.8rem; white-space: nowrap; flex-shrink: 0; }

/* Detaily objednávky (tmavší skleněný box) */
.order-summary-details { 
    background: rgba(0, 0, 0, 0.35) !important; 
    padding: 12px 14px; 
    border-radius: 8px; 
    border: 1px solid rgba(255, 255, 255, 0.12); 
    margin-top: 12px; 
}
.order-summary-details .summary-line { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 4px; color: #e2e8f0 !important; }
.delivery-address-box { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,0.2); font-size: 0.85rem; color: #cbd5e1 !important; }

/* Poznámka k objednávce */
.order-note-box { 
    margin-top: 12px; 
    padding: 10px 14px; 
    background-color: rgba(251, 192, 45, 0.15) !important; 
    border-left: 4px solid #fbc02d; 
    font-size: 0.85rem; 
    color: #ffe082 !important; 
    border-radius: 6px; 
}

/* Položky v kartě */
.order-card h5 { font-size: 1rem; margin-top: 18px; margin-bottom: 10px; font-weight: 600; color: #fff !important; }
.order-card ul { padding-left: 0; list-style: none; margin-bottom: 0; }
.order-item-row { display: flex; align-items: center; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.order-item-img { width: 45px; height: 45px; object-fit: cover; border-radius: 6px; margin-right: 12px; background-color: rgba(255,255,255,0.1); }
.item-note-display { display: block; font-style: italic; color: #ff8a80 !important; font-size: 0.85rem !important; }

/* Barvy statusů ladící s tmavým pozadím */
.status-Nova { background-color: rgba(253, 216, 216, 0.2); color: #ff8a80; border: 1px solid rgba(253, 216, 216, 0.4); }
.status-Pripravujese { background-color: rgba(255, 240, 179, 0.2); color: #ffe082; border: 1px solid rgba(255, 240, 179, 0.4); }
.status-Hotova { background-color: rgba(212, 237, 218, 0.2); color: #a3e4d7; border: 1px solid rgba(212, 237, 218, 0.4); }
.status-Odeslana { background-color: rgba(208, 231, 247, 0.2); color: #85c1e9; border: 1px solid rgba(208, 231, 247, 0.4); }
.status-Zrusena { background-color: rgba(233, 236, 239, 0.2); color: #bdc3c7; border: 1px solid rgba(233, 236, 239, 0.4); }

/* Tlačítka */
.button-container { margin-top: 18px; display: flex; gap: 10px; }
.invoice-button, .reorder-button { flex-grow: 1; flex-basis: 0; padding: 10px 15px; border-radius: 8px; text-align: center; font-weight: bold; text-decoration: none !important; display: block; transition: all 0.3s ease; cursor: pointer; }
.reorder-button { background-color: #3b82f6; color: white; border: none; text-transform: uppercase; }
.reorder-button:hover { background-color: #2563eb; }
.invoice-button { background-color: #10b981; color: white; border: none; }
.invoice-button:hover { background-color: #059669; }
.disabled-invoice { background-color: rgba(255,255,255,0.05) !important; color: rgba(255,255,255,0.3) !important; cursor: not-allowed !important; border: 1px solid rgba(255,255,255,0.1); }

/* Dialogy v magickém stylu */
.dialog-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); z-index: 2000; }
.custom-dialog { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(30, 15, 50, 0.95); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 30px; border-radius: 16px; z-index: 2001; max-width: 100px; width: 90%; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.8); backdrop-filter: blur(20px); }
.dialog-emoji { font-size: 3em; display: block; margin-bottom: 10px; }
#dialog-message { font-weight: 500; font-size: 1.1rem; color: #e2e8f0; margin-bottom: 20px; }