@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;0,700&display=swap');

:root {
  --color-primary: #8b2635 !important;
  --color-primary-hover: #6b1d28 !important;
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-text: #2d3748;
  --color-text-muted: #718096;
  --color-danger: #e53e3e;
  --color-success: #38a169;
  --color-border: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.08);
  --radius-md: 8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body.admin-body { font-family: 'Inter', sans-serif; background-color: var(--color-bg); color: var(--color-text); line-height: 1.6; }
h1, h2, h3, .serif { font-family: 'Playfair Display', serif; }

/* UTILITY CLASy (Nahradzujú inline štýly z JS) */
.hidden { display: none !important; }
.loading-state { text-align: center; padding: 4rem; }
.loading-text { color: var(--color-primary); }
.empty-state-text { color: var(--color-text-muted); font-style: italic; padding: 20px 0; }
.title-spaced { margin-top: 3rem; }

.container { max-width: 1000px; margin: 2rem auto; padding: 0 1.5rem; }

.admin-header { background: var(--color-surface); padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 4px solid var(--color-primary); box-shadow: var(--shadow-sm); }
.admin-header h1 { color: var(--color-primary); font-size: 1.8rem; margin: 0; }
.header-actions { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    white-space: nowrap; /* Toto zakáže zalomenie do druhého riadku */
}
/* ZÁMOČEK POD ZELENOU LIŠTOU - OPRAVA */
.admin-lock-link {
  display: block;
  text-align: right; /* Zarovná ho doprava */
  padding: 10px 20px;
  opacity: 0.15;
  transition: all 0.3s ease;
  color: #2C302E;
  text-decoration: none;
  line-height: 0; /* Aby nezaberal zbytočne veľa miesta na výšku */
}

.admin-lock-link svg {
  vertical-align: middle;
}

.admin-lock-link:hover {
  opacity: 0.8;
  transform: scale(1.1);
  color: var(--color-primary);
}

/* Na mobile pridáme trošku viac miesta, aby sa naň lepšie klikalo prstom */
@media screen and (max-width: 650px) {
  .admin-lock-link {
    padding: 15px 15px 5px 15px;
    opacity: 0.25; /* Na mobile ho dáme trošku viditeľnejší, nech ho personál nájde */
  }
}

.section-title { color: var(--color-primary); margin-bottom: 1.5rem; font-size: 1.5rem; }

.admin-tabs { display: flex; gap: 10px; margin-bottom: 2rem; border-bottom: 2px solid var(--color-border); padding-bottom: 10px; flex-wrap: wrap; }
.tab-btn { background: transparent; border: none; font-size: 1rem; font-weight: 600; color: var(--color-text-muted); padding: 10px 20px; cursor: pointer; border-radius: var(--radius-md); transition: all 0.2s; }
.tab-btn:hover { background: #edf2f7; }
.tab-btn.active { background: var(--color-primary); color: white; }
.badge { background: var(--color-danger); color: white; padding: 2px 8px; border-radius: 20px; font-size: 0.75rem; margin-left: 5px;}

.admin-form { background: var(--color-surface); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 2rem; }
.admin-form label, .form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--color-text); margin-bottom: 5px; margin-top: 15px; }
.admin-form input, .admin-form select, .admin-form textarea, .product-add-form input, .product-add-form select, .product-add-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-family: inherit; font-size: 0.95rem;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: none; border-color: var(--color-primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.btn { padding: 10px 20px; border-radius: var(--radius-md); border: none; font-weight: 500; cursor: pointer; font-size: 0.95rem; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { background:var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-danger { background: var(--color-danger); color: white; }
.btn-danger:hover { background: #fd6363; }
.btn-success { background: var(--color-success); color: white; }
.btn-warning { background: #ed8936; color: white; }
.btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-text); }
.btn-outline:hover { background: #f8f9fa; }
.btn-outline-danger { background: transparent; border: 1px solid var(--color-danger); color: var(--color-danger); }

/* DETAILS (AKORDEONY) */
details > summary::-webkit-details-marker { display: none; }
.admin-details { margin-bottom: 1.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-details summary { padding: 15px 20px; background: #fdfafb; font-weight: bold; color: var(--color-primary); font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; outline: none; }
.summary-badge { font-size: 0.85rem; color: var(--color-text-muted); font-weight: normal; background: #edf2f7; padding: 4px 10px; border-radius: 20px; }
.details-content { padding: 20px; border-top: 1px dashed var(--color-border); }
.help-text { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }

/* KATEGÓRIE */
/* Jemne podfarbený box pre pridávanie, aby to vyzeralo uhladene */
/* =========================================
   7. VYLADENÝ RIADOK PRE PRIDANIE KATEGÓRIE
   ========================================= */
.cat-add-row { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 25px; 
    align-items: center; /* Všetky prvky v riadku na jednu os */
    background: #fdfdfd; /* Jemný podklad */
    padding: 15px; 
    border-radius: var(--radius-md); 
    border: 1px solid var(--color-border);
}

/* Štýl pre vstupné polia */
.cat-add-row input[type="text"],
.cat-add-row input[type="number"] {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
    color: var(--color-text);
}

/* Ružová žiara na focus pre vstupné polia */
.cat-add-row input:focus {
    border-color: #d53f8c;
    box-shadow: 0 0 0 3px rgba(213, 63, 140, 0.1);
}

/* Tlačí textové pole na zvyšnú šírku */
.flex-input { flex: 1; min-width: 150px; }

/* Drobné nastavenie pre poradie */
.small-input { width: 90px; }

/* Zarovnanie checkboxu */
.checkbox-label { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 0.95rem; 
    cursor: pointer; 
    margin: 0 !important; 
    vertical-align: middle; /* Pre staršie prehliadače */
}

/* DÔLEŽITÉ: Zmenšenie a uloženie tlačidla Pridať na mieste */
.cat-add-row .btn {
    width: auto !important; /* Zrušíme generalné auto-stretch pre flex boxy */
    padding: 10px 24px;
    margin-top: 0;
    white-space: nowrap; /* Text sa nezalamuje */
}
.cat-list { display: flex; flex-direction: column; gap: 10px; }
.cat-list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-md); flex-wrap: wrap; gap: 15px; margin-bottom: 8px; }
.cat-list-left { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.cat-name-text { font-weight: 600; color: var(--color-text); font-size: 1rem; }
.cat-special-badge { background: #fde8e8; color: #c53030; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.cat-list-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cat-control-group { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--color-text-muted); }
.cat-order-input { width: 50px !important; text-align: center; padding: 4px !important; }
.pointer-label { cursor: pointer; }
.pointer-label.border-left { padding-left: 10px; border-left: 1px solid var(--color-border); }
/* Predtým tu bola --color-primary, teraz je tu --color-success (Zelená) */
.cat-active-text.on { color: var(--color-success); font-weight: bold;}
.cat-active-text.off { color: #a0aec0; font-weight: bold;}

.cat-add-row input[type="checkbox"] {
    width: 22px; /* Zväčšenie checkboxu (pôvodne má okolo 13px) */
    height: 22px;
    cursor: pointer;
    accent-color: #d53f8c; /* Nádherná ružová farba po zaškrtnutí */
    margin: 0;
    transition: transform 0.2s ease;
}

/* Štýlovanie zeleného checkboxu (ZAPNUTÁ / VYPNUTÁ) */
.cat-toggle {
    width: 22px !important;
    height: 22px !important;
    cursor: pointer;
    accent-color: var(--color-success); /* Naša pekná zelená farba z premenných */
    margin: 0;
    transition: transform 0.2s ease;
}

/* Rovnaký jemný efekt pri prejdení myšou */
.cat-toggle:hover {
    transform: scale(1.1);
}


/* Jemný detail: keď naň používateľ prejde myšou, trošku sa "nafúkne" */
.cat-add-row input[type="checkbox"]:hover {
    transform: scale(1.1);
}


/* Nová trieda pre ružový text pri pridávaní */
.text-pink { color: #d53f8c; font-weight: 600; }
.cat-delete-btn { background: transparent; color: var(--color-danger); border: 1px solid var(--color-danger); padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; cursor: pointer; transition: all 0.2s; }
.cat-delete-btn:hover { background: #fff5f5; }

/* PRODUKTOVÉ KARTY */
.ds-card { background-color: var(--color-surface); border-radius: var(--radius-md); border: 1px solid var(--color-border); padding: 15px; margin-bottom: 15px; box-shadow: var(--shadow-sm); display: flex; flex-direction: row; align-items: stretch; }
.ds-card.sold-out { background-color: #fff5f5; border-color: #fc8181; }
.ds-card-body { display: flex; flex-direction: row; gap: 15px; align-items: center; flex-grow: 1; }
.ds-card-img-wrap { position: relative; flex-shrink: 0; width: 90px; height: 90px; }
.ds-card-img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 6px; border: 1px solid var(--color-border); display: block; }
.ds-card.sold-out .ds-card-img { opacity: 0.5; filter: grayscale(50%); }
.ds-card-badge { position: absolute; top: -8px; left: -8px; background: var(--color-danger); color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.65rem; font-weight: bold; box-shadow: 0 2px 4px rgba(0,0,0,0.2); z-index: 10; }
.ds-card-content { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.ds-card-header strong { font-size: 0.95rem; color: #9b2c2c; line-height: 1.2; }
.size-text { font-size: 0.75rem; color: var(--color-text-muted); font-weight: normal; }
.ds-card-price { font-size: 1.1rem; font-weight: bold; color: var(--color-text); margin-bottom: 4px; }
.ds-card-name { font-size: 0.85rem; font-weight: 600; color: #333; margin-bottom: 6px; line-height: 1.2; }
.ds-card-stock { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.75rem; margin-bottom: 8px; align-items: center; }
.ds-card-stock span { padding: 2px 6px; border-radius: 4px; }
.stock-total { background: #edf2f7; color: var(--color-text-muted); }
.stock-free.available { background: #c6f6d5; color: var(--color-success); }
.stock-free.unavailable { background: #fed7d7; color: #9b2c2c; }
.ds-card-tag { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; }
.tag-select-inline { padding: 2px 4px; border-radius: 4px; border: 1px solid var(--color-border); font-size: 0.75rem; background: white; max-width: 130px; }
.ds-card-actions { display: flex; flex-direction: column; justify-content: center; gap: 10px; margin-left: 15px; border-left: 1px dashed var(--color-border); padding-left: 15px; min-width: 120px; }
.ds-card-actions button { width: 100%; padding: 8px; font-size: 0.85rem; }

/* KARTY REZERVÁCIÍ (LÍSTOK) */
.ds-order-card { background: white; border-radius: 12px; border: 1px solid var(--color-border); border-left: 6px solid var(--color-border); margin-bottom: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.04); overflow: hidden; }
.ds-order-card.status-nova { border-left-color: var(--color-danger); }
.ds-order-card.status-schvalena { border-left-color: #dd6b20; }
.ds-order-card.status-pripravena { border-left-color: #d69e2e; }
.ds-order-card.status-expired { border-left-color: #718096; opacity: 0.85;}
.ds-order-header { display: flex; justify-content: space-between; padding: 8px 15px; background: #fcfcfc; border-bottom: 1px solid #f0f0f0; }
.ds-order-id { font-weight: 800; color: #718096; font-size: 0.85rem; }
.ds-order-status-badge { font-weight: 600; font-size: 0.8rem; }
.status-nova .ds-order-status-badge { color: var(--color-danger); }
.status-schvalena .ds-order-status-badge { color: #dd6b20; }
.status-pripravena .ds-order-status-badge { color: #d69e2e; }
.ds-order-main-content { display: flex; flex-wrap: wrap; align-items: center; }
.ds-order-product-part { display: flex; align-items: center; padding: 15px; flex: 1.5; min-width: 300px; gap: 15px; }
.ds-order-img-container { width: 70px; height: 70px; flex-shrink: 0; }
.ds-order-img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid #eee; }
.ds-order-meta { font-size: 0.7rem; text-transform: uppercase; color: #a0aec0; letter-spacing: 0.5px; }
.ds-order-title { font-size: 1.1rem; color: var(--color-primary); margin: 2px 0; }
.ds-order-price-line { font-size: 0.95rem; color: #2d3748; }
.ds-order-customer-part { padding: 15px; flex: 1; min-width: 200px; background: #fdfdfd; border-left: 1px dashed #eee; border-right: 1px dashed #eee; }
.customer-info-line { font-size: 0.85rem; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pickup-time-box { margin-top: 8px; padding: 4px 8px; background: #fff5f5; color: var(--color-danger); border-radius: 6px; font-size: 0.85rem; display: inline-block; }
.ds-order-actions-wrapper { padding: 15px; display: flex; flex-direction: column; gap: 8px; min-width: 160px; justify-content: center;}
.ds-order-actions-wrapper .btn { padding: 8px 12px; font-size: 0.85rem; width: 100%; }

/* FILTER PRODUKTOV */
.admin-filter-container { display: flex; gap: 10px; margin-bottom: 25px; overflow-x: auto; padding-bottom: 10px; border-bottom: 2px solid var(--color-border); }
.admin-filter-btn { padding: 8px 18px; border: none; border-radius: 20px; font-size: 0.9rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.2s; background-color: #edf2f7; color: #4a5568; }
.admin-filter-btn:hover { background-color: #e2e8f0; }
.admin-filter-btn.active { background-color: var(--color-primary); color: white; box-shadow: var(--shadow-sm); }

/* HISTÓRIA */
.history-box { background: white; padding: 2.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-md); margin-bottom: 2rem; text-align: center; border-bottom: 4px solid var(--color-primary); }
.history-box h2 { color: var(--color-text-muted); font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 500; font-family: 'Inter', sans-serif; }
.history-box h1 { color: var(--color-success); font-size: 3rem; margin: 0; font-family: 'Playfair Display', serif; }
.ds-history-card { background: var(--color-surface); border-radius: var(--radius-md); border: 1px solid var(--color-border); border-left: 4px solid var(--color-success); padding: 15px; margin-bottom: 12px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 15px; }
.ds-history-img-wrap { flex-shrink: 0; }
.ds-history-img { width: 55px; height: 55px; object-fit: cover; border-radius: 6px; border: 1px solid var(--color-border); display: block; }
.ds-history-no-img { width: 55px; height: 55px; border-radius: 6px; background: #eee; border: 1px solid var(--color-border); display:flex; align-items:center; justify-content:center; font-size:10px; color:#999; text-align:center; padding: 2px; }
.ds-history-info { flex-grow: 1; min-width: 0; }
.ds-history-date { font-size: 0.85rem; color: #888; margin-bottom: 3px; }
.ds-history-title { color: var(--color-text); margin: 0 0 3px 0; font-size: 1.1rem; line-height: 1.2; }
.ds-history-id { font-size: 0.85rem; background: #edf2f7; padding: 2px 6px; border-radius: 4px; color: #4a5568; margin-left: 5px; font-weight: normal; }
.ds-history-customer { font-size: 0.95rem; margin: 0; color: var(--color-text-muted); }
.ds-history-price-block { text-align: right; min-width: 120px; }
.ds-history-unit { font-size: 0.9rem; color: #666; }
.ds-history-total { font-size: 1.4rem; color: var(--color-success); font-weight: bold; }
/* Naštýlovanie linku pre telefónne číslo v histórii */
.ds-history-contact a {
    color: var(--color-text); /* Tmavosivá/čierna farba textu */
    text-decoration: none;    /* Odstráni to predvolené podčiarknutie */
    font-weight: 600;         /* Urobí ho trošku tučnejším */
    transition: color 0.2s;
}

/* Efekt pri prejdení myšou (zmení sa napr. na bordovú) */
.ds-history-contact a:hover {
    color: var(--color-primary);
}

/* =========================================
   VYLADENIE ŠTÍTKU PRODUKTU (Dropdown)
   ========================================= */
.ds-card-tag {
  display: flex;
  align-items: center;
  gap: 8px; /* Medzera medzi textom "Štítok:" a dropdownom */
  font-size: 0.8rem;
}

.ds-card-tag span {
  font-weight: 600;
  color: var(--color-text-muted);
}

.ds-card-tag .tag-select-inline {
  /* 1. VYPNEME PREDVOLENÝ ŠTÝL PREHLIADAČA */
  appearance: none;
  -webkit-appearance: none; /* Pre Chrome/Safari */
  -moz-appearance: none; /* Pre Firefox */

  /* 2. NASTAVÍME VLASTNÝ ŠTÝL (tabletka/tlačidlo) */
  background-color: #f8f9fa; /* Veľmi svetlá sivá */
  border: 1px solid var(--color-border);
  border-radius: 20px; /* Pekný zaoblený tvar - tabletka */
  padding: 5px 15px; /* Breathe */
  
  /* 3. PÍSMO A FARBA */
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
  
  /* 4. PRIDANIE VLASTNEJ ŠÍPKY (SVG) NA PRAVO */
  /* Šípka vo farbe tvojho textu */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232d3748' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center; /* Pozícia šípky */
  padding-right: 35px; /* Priestor pre šípku, aby neprekrývala text */
  max-width: 150px; /* Aby sa nerozťahovalo pri dlhom názve */
}

/* INTERAKTIVITA PRÍ PREJEDENÍ MYŠOU */
.ds-card-tag .tag-select-inline:hover {
  border-color: var(--color-primary); /* Tvoja bordová */
  background-color: white; /* Jemné zvýraznenie */
}

/* ŠTÝL PRI KLIKNUTÍ / AKTÍVNOM STAVE (Focus) */
.ds-card-tag .tag-select-inline:focus {
  outline: none;
  border-color: var(--color-primary);
  /* Jemná bordová žiara */
  box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.15); 
}


/* MODÁL A TOAST */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-card { width: 90%; max-width: 400px; position: relative; margin-bottom: 0;}
.modal-title { margin-bottom: 0; color: var(--color-primary); }
.modal-subtitle { font-size: 0.9rem; font-weight: bold; color: var(--color-primary); margin-bottom: 1rem; }
.close-modal { position: absolute; top: 15px; right: 15px; font-size: 1.5rem; cursor: pointer; color: var(--color-text-muted); }
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 12px 20px; border-radius: 8px; color: white; font-weight: 500; box-shadow: 0 4px 6px rgba(0,0,0,0.1); animation: slideInRight 0.3s ease forwards; }
.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-danger); }
.toast.info { background: #3182ce; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* LOGIN */
.login-wrapper { display: flex; justify-content: center; align-items: center; min-height: 60vh; padding: 20px; }
.login-card { width: 100%; max-width: 420px; background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: 0 10px 25px rgba(0,0,0,0.05); border-top: 4px solid var(--color-primary); padding: 2.5rem 2rem; }
.login-header { text-align: center; margin-bottom: 2rem; }
.login-icon { margin-bottom: 15px; background: #fff5f5; padding: 12px; border-radius: 50%; color: var(--color-primary); }
.login-header h2 { color: var(--color-primary); margin: 0; font-size: 1.8rem; font-family: 'Playfair Display', serif; }
.login-header p { color: var(--color-text-muted); font-size: 0.85rem; margin-top: 5px; }
.login-btn { width: 100%; margin-top: 10px; padding: 14px; font-size: 1.05rem; letter-spacing: 0.5px; }

/* UPLOAD FOTIEK */
.file-input-group { background: #fdfafb; border: 1px dashed #d1d5db; padding: 20px; border-radius: var(--radius-md); text-align: center; margin-top: 10px; }
.file-input-group label { color: var(--color-primary); margin-bottom: 12px; }
.file-uploader { width: 100%; cursor: pointer; padding: 8px; background: white; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.file-uploader::file-selector-button { background: var(--color-primary); color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 500; margin-right: 15px; transition: background 0.2s; }
.file-uploader::file-selector-button:hover { background: var(--color-primary-hover); }
.submit-full-btn { width: 100%; padding: 16px; font-size: 1.1rem; margin-top: 15px; letter-spacing: 0.5px; }

/* =========================================
   OPRAVA KRÍŽIKA V ADMIN MODÁLE (Úprava produktu)
   ========================================= */
#edit-modal > div,
.admin-form {
  position: relative; /* Toto uväzní krížik vo vnútri bielej karty */
}

/* Pre istotu, ak by bol krížik moc nalepený na okraj */
#edit-modal .close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

#edit-modal .close-modal:hover {
  color: var(--color-danger); /* Pri ukázaní myšou sčervenie */
}




/* MOBILNÁ VERZIA */
@media screen and (max-width: 768px) {
  .admin-header { padding: 1rem; flex-direction: column; gap: 10px; text-align: center; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .admin-tabs { justify-content: center; }
  .tab-btn { width: 100%; justify-content: center; }
  
  .ds-card { flex-direction: column !important; padding: 12px; }
  .ds-card-body { flex-direction: row !important; align-items: flex-start !important; gap: 12px !important; }
  .ds-card-img-wrap { width: 75px !important; height: 75px !important; min-width: 75px !important; max-width: 75px !important; flex-shrink: 0 !important; }
  .ds-card-actions { flex-direction: row !important; margin-left: 0 !important; margin-top: 12px !important; border-left: none !important; border-top: 1px dashed var(--color-border) !important; padding-left: 0 !important; padding-top: 12px !important; gap: 8px !important; }
  
  .ds-order-main-content { flex-direction: column; align-items: stretch; }
  .ds-order-product-part { border-bottom: 1px solid #f0f0f0; }
  .ds-order-customer-part { border-left: none; border-right: none; border-bottom: 1px solid #f0f0f0; }
  .ds-order-actions-wrapper { flex-direction: row; }
  
  .ds-history-card { flex-direction: column; align-items: flex-start; }
  .ds-history-price-block { text-align: left; width: 100%; border-top: 1px dashed var(--color-border); padding-top: 10px; margin-top: 5px; display: flex; justify-content: space-between; align-items: center; }
  
  .cat-list-item { flex-direction: column; align-items: flex-start; }
  .cat-list-right { justify-content: flex-start; gap: 15px; }
  .cat-add-row { flex-direction: column; align-items: stretch; }
  .cat-add-row input, .cat-add-row button { width: 100%; }
}

/* Úprava tlačidla pre uzávierku (Zrušenie natiahnutia) */
#reset-history-btn {
    width: auto !important; /* Toto zabráni roztiahnutiu na celú šírku */
    display: inline-block;
    margin: 20px auto 0; /* Vycentruje tlačidlo a pridá medzeru zhora */
    padding: 10px 30px; /* Pekné proporcie */
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Jemné červené podfarbenie pri prejdení myšou */
#reset-history-btn:hover {
    background-color: #fff5f5; 
}

/* =========================================
   DOPLNENIE CHÝBAJÚCICH ŠTÝLOV PRE INPUTY V LOGINE
   ========================================= */

#login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

#login-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
  display: block;
}

#login-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background-color: #FDFDFD;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

#login-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  /* Jemná bordová žiara z tvojej palety */
  box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.15); 
  background-color: #ffffff;
}

/* Tlačidlo Prihlásiť sa */
#login-form button {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 600;
}
/* =========================================
   LINK SPÄŤ NA OBCHOD (Hlavička)
   ========================================= */
.header-actions a {
  color:#4A5D4E ;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.header-actions a:hover {
  color:#3A4A3E;
  text-decoration: underline; /* Alebo môžeš vymazať, ak nechceš podčiarknutie vôbec */
  transform: translateX(-3px); /* Jemný posun doľava pri prejdení myšou */
}

/* Styling pre políčka v zatváracom boxe */
.status-form-box input[type="date"],
.status-form-box input[type="text"],
.status-form-box textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #fda4af;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #ffffff;
  color: #333;
  margin-top: 6px;
  resize: vertical; /* Dovolí potiahnuť textarea len do výšky */
  transition: all 0.2s;
}

.status-form-box input:focus,
.status-form-box textarea:focus {
  border-color: #e11d48;
  outline: none;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

textarea {
  field-sizing: content; 
  min-height: 60px;
}