/* ============================================================
   SVOZ NA NVHZ – Custom styles
   Barvy: --app-red #b5251e (čestr), --app-orange #e98025 (logo svoz)
   ============================================================ */

:root {
    --app-red:         #b5251e;
    --app-red-dark:    #8c1a14;
    --app-red-light:   #d42b22;
    --app-orange:      #e98025;
    --app-orange-dark: #c96e10;
    --app-orange-light:#f5a84f;
    --text-dark:       #2c2c2c;
    --text-medium:     #555;
    --text-light:      #888;
    --bg-app:          #f0f2f5;
    --bg-card:         #ffffff;
    --border-light:    #e5e7eb;
    --shadow-sm:       0 1px 4px rgba(0,0,0,0.10);
    --shadow-md:       0 4px 16px rgba(0,0,0,0.14);
    --shadow-lg:       0 8px 28px rgba(0,0,0,0.18);
    --radius-sm:       8px;
    --radius-md:       14px;
    --radius-lg:       20px;
    --statusbar-h:     56px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg-app);
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ===== APP CONTAINER ===== */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--bg-app);
}

/* ===== STATUS BAR ===== */
.app-statusbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 1000;
    background: linear-gradient(135deg, var(--app-red-dark) 0%, var(--app-red) 60%, var(--app-red-light) 100%);
    padding: max(env(safe-area-inset-top, 0px), 0px) 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(var(--statusbar-h) + env(safe-area-inset-top, 0px));
    box-shadow: var(--shadow-md);
}

.statusbar-left,
.statusbar-right {
    min-width: 64px;
    display: flex;
    align-items: center;
}
.statusbar-right { justify-content: flex-end; }

.statusbar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
    text-align: center;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
    margin-top: env(safe-area-inset-top, 0px);
}

.statusbar-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
    margin-top: env(safe-area-inset-top, 0px);
}
.statusbar-btn:active { background: rgba(255,255,255,0.2); }

.version-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding-top: calc(var(--statusbar-h) + env(safe-area-inset-top, 0px) + 16px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
    min-height: 100vh;
}

/* ===== MODAL HEADER ===== */
.modal-header-app {
    background: linear-gradient(135deg, var(--app-red-dark), var(--app-red));
    color: #fff;
    border-bottom: none;
}
.modal-header-app .modal-title { font-size: 1rem; font-weight: 700; }

/* ===== UTILITY ===== */
.text-orange  { color: var(--app-orange) !important; }
.text-red     { color: var(--app-red) !important; }
.bg-orange    { background-color: var(--app-orange) !important; }
.bg-red-app   { background-color: var(--app-red) !important; }

/* ===== INDEX PAGE ===== */
.index-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 16px;
    gap: 12px;
}

.logo-cestr {
    max-width: 200px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.logo-cmsch {
    max-width: 120px;
    width: 100%;
    height: auto;
    opacity: 0.85;
}

/* ===== EMERGENCY CONTACTS ===== */
.emergency-contacts {
    margin: 0 16px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1.5px solid #ffc107;
    overflow: hidden;
}
.emergency-title {
    background: linear-gradient(135deg, #ff8f00, #ffa000);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 14px;
}
.emergency-person {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid var(--border-light);
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.emergency-person:first-of-type { border-top: none; }
.emergency-person:active { background: rgba(255,160,0,0.08); }
.emergency-person-info { flex: 1; }
.emergency-person-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}
.emergency-person-phone {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 2px;
}
.emergency-call-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(46,125,50,0.35);
}

.index-nav {
    padding: 8px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.btn-nav::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.15s;
}
.btn-nav:active { transform: scale(0.97); box-shadow: var(--shadow-sm); }
.btn-nav:active::after { background: rgba(255,255,255,0.12); }

.btn-nav-chovatel {
    background: linear-gradient(135deg, var(--app-orange-dark), var(--app-orange));
    color: #fff;
}
.btn-nav-dopravce {
    background: linear-gradient(135deg, var(--app-red-dark), var(--app-red));
    color: #fff;
}
.btn-nav-admin {
    background: linear-gradient(135deg, #4a4a6a, #6a6a8a);
    color: #fff;
}

.btn-nav .btn-nav-icon {
    font-size: 1.8rem;
    opacity: 0.95;
}

/* ===== CARDS ===== */
.card-app {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid var(--app-orange);
    transition: box-shadow 0.2s;
}
.card-app:active { box-shadow: var(--shadow-md); }

.card-app-red { border-left-color: var(--app-red); }

/* ===== INFO ROW ===== */
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(233,128,37,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--app-orange);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.info-row-icon.red { background: rgba(181,37,30,0.10); color: var(--app-red); }
.info-row-label { font-size: 0.75rem; color: var(--text-light); margin-bottom: 2px; }
.info-row-value { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); word-break: break-word; }

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    padding: 0 20px;
    margin-bottom: 8px;
    margin-top: 20px;
}

/* ===== PAGE PADDING ===== */
.page-body { padding: 0 16px; }

/* ===== CHOVATEL PAGE ===== */
.chovatel-result { padding: 0 16px; }

.stat-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    flex: 1;
}
.stat-box .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--app-orange);
    line-height: 1;
}
.stat-box .stat-label {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}

.dopravce-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    margin-top: 12px;
}
.dopravce-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 16px;
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    flex: 1;
}
.contact-btn:active { transform: scale(0.96); }
.contact-btn .contact-icon { font-size: 2.2rem; }
.contact-btn .contact-label { font-size: 0.75rem; font-weight: 600; }
.contact-btn-email {
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: #fff;
}
.contact-btn-phone {
    background: linear-gradient(135deg, #1ea855, #157a3f);
    color: #fff;
}

/* ===== TOM SELECT ===== */
.page-body .ts-wrapper {
    margin-bottom: 4px;
}
.ts-wrapper .ts-control {
    border-radius: var(--radius-sm) !important;
    border-color: var(--border-light) !important;
    padding: 10px 14px !important;
    font-size: 0.95rem;
    background: var(--bg-card) !important;
    min-height: 48px !important;
}
.ts-wrapper.focus .ts-control,
.ts-wrapper .ts-control:focus {
    border-color: var(--app-orange) !important;
    box-shadow: 0 0 0 3px rgba(233,128,37,0.2) !important;
}
.ts-dropdown {
    border-color: var(--border-light) !important;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
    box-shadow: var(--shadow-md) !important;
}
.ts-dropdown .option.active,
.ts-dropdown .option:hover { background: rgba(233,128,37,0.1) !important; color: var(--text-dark) !important; }
.ts-dropdown .option.selected { background: rgba(233,128,37,0.15) !important; }

/* ===== FORM CONTROLS ===== */
.form-select-app {
    border-radius: var(--radius-sm) !important;
    border-color: var(--border-light) !important;
    padding: 10px 14px !important;
    font-size: 0.95rem;
    min-height: 48px;
    background: var(--bg-card);
}
.form-select-app:focus {
    border-color: var(--app-orange) !important;
    box-shadow: 0 0 0 3px rgba(233,128,37,0.2) !important;
}

/* ===== TOGGLE SWITCH (Návoz / Odvoz) ===== */
.smer-toggle {
    display: flex;
    background: var(--border-light);
    border-radius: 50px;
    padding: 4px;
    gap: 0;
}
.smer-toggle input[type="radio"] { display: none; }
.smer-toggle label {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.25s;
    user-select: none;
}
.smer-toggle input[type="radio"]:checked + label {
    background: var(--bg-card);
    color: var(--app-red);
    box-shadow: var(--shadow-sm);
}

/* ===== DATE BUTTONS ===== */
.dates-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.btn-date {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    text-align: left;
}
.btn-date:hover, .btn-date:active {
    border-color: var(--app-red);
    color: var(--app-red);
    box-shadow: var(--shadow-md);
}
.btn-date.active {
    border-color: var(--app-red);
    background: rgba(181,37,30,0.06);
    color: var(--app-red);
}
.btn-date .date-icon { color: var(--app-orange); font-size: 1.1rem; }

/* ===== SORTABLE CHOVATEL CARDS ===== */
#chovatele-list { list-style: none; padding: 0; margin: 0; }

.chovatel-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
    border-left: 4px solid var(--app-orange);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: box-shadow 0.2s;
    cursor: default;
}
.chovatel-card.sortable-ghost {
    opacity: 0.4;
    background: #e0e0e0;
}
.chovatel-card.sortable-chosen { box-shadow: var(--shadow-lg); }

.card-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    background: rgba(233,128,37,0.08);
    color: var(--app-orange);
    font-size: 1rem;
    cursor: grab;
    flex-shrink: 0;
    touch-action: none;
}
.card-drag-handle:active { cursor: grabbing; }

.card-body-inner {
    flex: 1;
    padding: 12px 12px 12px 10px;
    min-width: 0;
}
.card-chovatel-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.card-chovatel-meta {
    font-size: 0.78rem;
    color: var(--text-medium);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.card-chovatel-meta span { display: flex; align-items: center; gap: 5px; }
.card-chovatel-meta i { color: var(--app-orange); font-size: 0.75rem; width: 14px; }

.card-detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    background: linear-gradient(180deg, var(--app-red-dark), var(--app-red));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
    flex-direction: column;
    gap: 4px;
    transition: filter 0.15s;
}
.card-detail-btn:active { filter: brightness(0.85); }
.card-detail-btn i { font-size: 1rem; }

/* ===== OFFCANVAS DETAIL ===== */
.offcanvas-detail {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    height: 88vh !important;
    max-height: 88vh !important;
}
.offcanvas-detail .offcanvas-header {
    background: linear-gradient(135deg, var(--app-red-dark), var(--app-red));
    color: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 16px 20px;
}
.offcanvas-detail .offcanvas-header .btn-close { filter: invert(1); }
.offcanvas-detail .offcanvas-body { overflow-y: auto; padding: 20px 16px; }

.detail-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.detail-subtitle {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-sm);
    flex: 1;
}
.nav-btn:active { transform: scale(0.96); }
.nav-btn-waze {
    background: linear-gradient(135deg, #00aff0, #007ec0);
    color: #fff;
}
.nav-btn-gmaps {
    background: linear-gradient(135deg, #ea4335, #c0392b);
    color: #fff;
}
.nav-btn-phone {
    background: linear-gradient(135deg, #1ea855, #157a3f);
    color: #fff;
    padding: 18px;
    font-size: 1rem;
}

/* ===== LOADING SPINNER ===== */
.spinner-app {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
    color: var(--text-light);
    font-size: 0.9rem;
}
.spinner-app .spinner-border { color: var(--app-orange); width: 2rem; height: 2rem; }

/* ===== EMPTY STATE ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-light);
}
.empty-state i { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { font-size: 0.9rem; margin: 0; }

/* ===== ALERT ===== */
.alert-app {
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* ===== ADMIN – PIN SCREEN ===== */
.pin-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 40px;
    text-align: center;
    min-height: calc(100vh - var(--statusbar-h) - env(safe-area-inset-top, 0px));
}

.pin-lock-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--app-red-dark), var(--app-red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.pin-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.pin-subtitle {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 32px;
}

.pin-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    justify-content: center;
}

.pin-digit {
    width: 48px;
    height: 58px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    background: var(--bg-card);
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-shadow: var(--shadow-sm);
    caret-color: transparent;
}
.pin-digit:focus {
    border-color: var(--app-red);
    box-shadow: 0 0 0 3px rgba(181,37,30,0.18);
}

.pin-error {
    color: var(--app-red);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    animation: fadeIn 0.2s ease-out;
}

@keyframes pinShake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-9px); }
    40%       { transform: translateX(9px); }
    60%       { transform: translateX(-5px); }
    80%       { transform: translateX(5px); }
}
.pin-shake { animation: pinShake 0.55s ease-out; }

/* ===== ADMIN – TOP BAR ===== */
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 8px;
}

.admin-topbar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.btn-logout {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.btn-logout:active { background: var(--border-light); }

/* ===== ADMIN – SECTIONS ===== */
.admin-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: 0 16px 16px;
    overflow: hidden;
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    background: linear-gradient(135deg, var(--app-orange-dark), var(--app-orange));
    color: #fff;
}
.admin-section-header-red {
    background: linear-gradient(135deg, var(--app-red-dark), var(--app-red));
}

.admin-section-title {
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
}

.btn-admin-add {
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.btn-admin-add:active { background: rgba(255,255,255,0.38); }

/* ===== ADMIN – LIST ITEMS ===== */
.admin-item {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.12s;
}
.admin-item:last-child { border-bottom: none; }
.admin-item:active { background: rgba(233,128,37,0.04); }

.admin-item-body {
    flex: 1;
    padding: 11px 10px 11px 16px;
    min-width: 0;
}

.admin-item-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-item-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.admin-item-meta i {
    color: var(--app-orange);
    width: 13px;
    flex-shrink: 0;
}

.admin-edit-btn {
    width: 48px;
    background: none;
    border: none;
    border-left: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.admin-edit-btn:active {
    background: rgba(233,128,37,0.10);
    color: var(--app-orange);
}

/* ===== ADMIN – PLAN DATE BUTTONS ===== */
.plan-date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 2px;
}

.plan-date-btn {
    background: var(--bg-app);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 6px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    text-align: center;
    transition: all 0.18s;
    line-height: 1.2;
}
.plan-date-btn:active { border-color: var(--app-red); }
.plan-date-btn.active {
    border-color: var(--app-red);
    background: rgba(181,37,30,0.07);
    color: var(--app-red);
    font-weight: 700;
}

/* ===== ADMIN – MODAL SAVE BUTTON ===== */
.btn-admin-save {
    background: linear-gradient(135deg, var(--app-orange-dark), var(--app-orange)) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    transition: filter 0.15s;
}
.btn-admin-save:hover  { filter: brightness(1.06); color: #fff !important; }
.btn-admin-save:active { filter: brightness(0.94); }
.btn-admin-save:disabled { opacity: 0.7; }

/* ===== INFORMAČNÍ ALERT ===== */
.alert-info-app {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1.5px solid #ffc107;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: #7a5300;
}
.alert-info-icon {
    font-size: 1.25rem;
    color: #e69900;
    flex-shrink: 0;
    line-height: 1.4;
}
.alert-info-text {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ===== ADMIN – FILTER ===== */
.admin-filter-wrap {
    position: relative;
    padding: 8px 12px 6px;
    background: var(--bg-app);
    border-bottom: 1px solid var(--border-light);
}
.admin-filter-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.8rem;
    pointer-events: none;
}
.admin-filter-input {
    width: 100%;
    padding: 6px 10px 6px 30px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    background: var(--bg-card);
    color: var(--text-main);
    outline: none;
    transition: border-color 0.15s;
}
.admin-filter-input:focus { border-color: var(--app-orange); }
.admin-filter-input::placeholder { color: var(--text-light); }

/* ===== TABULKA ZVÍŘAT (detail offcanvas) ===== */
.zvirat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.zvirat-table thead tr {
    background: linear-gradient(135deg, var(--app-orange-dark), var(--app-orange));
    color: #fff;
}
.zvirat-table th {
    padding: 7px 12px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-align: left;
}
.zvirat-table th:last-child { text-align: right; }
.zvirat-table td {
    padding: 7px 12px;
    border-top: 1px solid var(--border-light);
    color: var(--text-main);
}
.zvirat-table tbody tr:nth-child(even) { background: rgba(233,128,37,0.05); }
.zvirat-table tbody tr:last-child td { border-bottom: none; }
.zvirat-count {
    text-align: right;
    font-weight: 700;
    color: var(--app-red);
    font-size: 1rem;
}

/* ===== POZNÁMKA (detail offcanvas) ===== */
.poznamka-box {
    background: #fffbf0;
    border: 1.5px solid #ffc107;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}
.poznamka-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #b8860b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.poznamka-text {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.5;
}

/* ===== SEARCH HINT ===== */
.search-hint {
    font-size: 0.78rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 2px 0;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    height: 1px;
    background: var(--border-light);
    margin: 16px 0;
}

/* ===== BACK LINK ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-medium);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 8px 0;
}
.back-link:hover { color: var(--app-orange); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }

/* ===== TRANSITIONS ===== */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== SVOZ DATES (chovatel.php – termíny návozu/odvozu) ===== */
.svoz-dates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.svoz-date-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 14px 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
}

.svoz-date-card.navoz { border-top-color: var(--app-orange); }
.svoz-date-card.odvoz { border-top-color: var(--app-red); }

.svoz-date-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60px;
    opacity: 0.06;
    pointer-events: none;
}
.svoz-date-card.navoz::before { background: var(--app-orange); }
.svoz-date-card.odvoz::before { background: var(--app-red); }

.svoz-date-icon {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 2px;
}
.svoz-date-card.navoz .svoz-date-icon { color: var(--app-orange); }
.svoz-date-card.odvoz .svoz-date-icon { color: var(--app-red); }

.svoz-date-type {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.svoz-date-day {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-top: 6px;
}

.svoz-date-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}
.svoz-date-card.navoz .svoz-date-value { color: var(--app-orange-dark); }
.svoz-date-card.odvoz .svoz-date-value { color: var(--app-red); }

.svoz-date-card.no-date .svoz-date-icon { color: var(--text-light); }
.svoz-date-card.no-date .svoz-date-value { color: var(--text-light); font-size: 0.9rem; font-weight: 600; }

/* ===== OFFLINE BANNER ===== */
.offline-banner {
    position: fixed;
    bottom: env(safe-area-inset-bottom, 0);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 0.82rem;
    z-index: 999;
    display: none;
}
.offline-banner.show { display: block; }

/* ===== RESPONSIVE OVERRIDE for desktop preview ===== */
@media (min-width: 481px) {
    .app-container {
        box-shadow: var(--shadow-lg);
        min-height: 100vh;
    }
}
