/* === GLOBÁLNY RESET === */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }

:root {
    /* === LIGHT THEME (Jediná téma) === */
    --bg-body: #f8f9fa; 
    --bg-card: #ffffff;
    --bg-modal: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.95);
    
    /* Inputy - Pekná jemná šedá, aby nesplývali */
    --bg-input: #f1f5f9; 
    --border-input: #e2e8f0;
    
    --text-main: #1f2937;
    --text-muted: #6b7280;
    
    --brand: #3b82f6; 
    --brand-rgb: 59, 130, 246; 
    
    --danger: #ef4444;
    --success: #10b981;
    --radius: 16px;
    --font: "Outfit", sans-serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --border: #e2e8f0; 
    --logo-url: url('logo-light.png'); 

    /* Farby v kartičkách */
    --c-time: #2563eb; 
    --c-name: #111827; 
    --c-serv: #4b5563; 
    --c-note: #6b7280; 
    --c-price: #059669; 
    --c-phone: #2563eb;
    
    --card-bg: #ffffff; 
    --card-border: rgba(0,0,0,0.08);
}

/* === ATÓMOVÁ OPRAVA PRE IPHONE + BIELA FARBA === */

html {
    background-color: #ffffff; /* ZMENA: Biela farba, aby pásiky nesvietili na šedo */
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #ffffff;
    margin: 0;
    padding: 0 !important; /* 🔥 ZMENA: Žiadny padding, využijeme celú výšku */
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    inset: 0;
    
    /* Fonty */
    font-family: "Outfit", sans-serif !important;
    color: var(--text-main);
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}

/* Hlavný kontajner sa roztiahne "nasilu" cez všetko */
.app {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    z-index: 1;
    overflow: hidden;
}

header { 
    background: var(--bg-header); 
    backdrop-filter: blur(15px); 
    display: flex; justify-content: space-between; align-items: center; 
    flex-shrink: 0; z-index: 100; border-bottom: 1px solid var(--border);
    
    /* 🔥 ZMENA: Optimalizovaný padding pre iPhone */
    padding-top: calc(10px + env(safe-area-inset-top)); 
    padding-bottom: 10px; 
    padding-left: 15px;
    padding-right: 15px;
    
    height: auto; 
    min-height: 50px; /* Zmenšené z 60px */
}

.header-logo { width: 130px; height: 40px; background-image: var(--logo-url); background-size: contain; background-repeat: no-repeat; background-position: center left; transition: background-image 0.3s ease; }
.content { display: flex; flex: 1; overflow: hidden; padding: 10px; gap: 15px; position: relative; z-index: 5; }

/* === SPODNÁ LIŠTA === */
.bottom-action-bar { position: fixed; bottom: 0; left: 0; width: 100%; display: flex; gap: 10px; align-items: center; background: transparent !important; border: none !important; box-shadow: none !important; padding: 5px 12px 10px 12px !important; z-index: 2200 !important; pointer-events: none; }
.bottom-action-bar > * { pointer-events: auto; }

/* === KOMPONENTY === */
::-webkit-scrollbar { display: none; }
#loadingOverlay { display: none; position: fixed; inset: 0; background: rgba(255,255,255,0.7); z-index: 21000; backdrop-filter: blur(2px); align-items: center; justify-content: center; flex-direction: column; pointer-events: auto !important; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top: 4px solid var(--brand); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.timeline { flex: 1; display: flex; gap: 12px; overflow-x: auto; padding-bottom: 5px; }
.col { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; transition: 0.3s; min-width: 280px; }
.col-inner { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.col-head { padding: 15px; text-align: center; background: var(--bg-header); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--border); backdrop-filter: blur(5px); }
.col-body { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; padding-bottom: 130px; }
.col-body.is-off { background-image: repeating-linear-gradient(135deg, var(--bg-input) 0px, var(--bg-input) 10px, rgba(0,0,0,0.05) 10px, rgba(0,0,0,0.05) 20px); opacity: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--text-muted); }
.off-content { background: var(--bg-card); padding: 20px 30px; border-radius: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); text-align: center; border: 2px dashed var(--brand); transform: rotate(-2deg); }
.off-content i { font-size: 2.5rem; color: var(--brand); margin-bottom: 10px; display:block; }
.off-content span { font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-main); }

.btn-plan { background: var(--bg-card); color: var(--text-main); font-size: 0.8rem; padding: 12px 5px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.2s; font-weight: 600; }
.btn-plan.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 4px 10px rgba(var(--brand-rgb), 0.3); transform: scale(1.05); }
.btn-plan.active-off { background: var(--danger); color: #fff; border-color: var(--danger); box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); transform: scale(1.05); }
.btn-plan.active-del { background: #333; color: #fff; border-color: #333; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transform: scale(1.02); }

/* --- KARTIČKY (Light Mode Only) --- */
.card { 
    border-radius: 12px; padding: 10px 12px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); position: relative; transition: 0.2s; 
    background: var(--card-bg); 
    border: 1px solid var(--card-border); 
    border-left: 4px solid var(--c-time); 
    display: flex; justify-content: space-between; align-items: flex-start; cursor: pointer; 
    color: var(--text-main);
}
.card:active { transform: scale(0.98); }

/* Stavy kariet */
.card.storno { opacity: 0.6; text-decoration: line-through; border-left-color: var(--danger) !important; background: #f3f4f6 !important; }
.card.past:not(.storno) { opacity: 0.8; background: #f0fdf4 !important; border: 1px solid #bbf7d0 !important; } /* Jemne zelená */
.card.block { border-left-color: #ffa500 !important; background: #fff8e1 !important; opacity: 1; border: 1px solid rgba(0,0,0,0.05); }

.card-left { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow: hidden; }
.card-header-row { display: flex; align-items: center; gap: 8px; }
.card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 50px; }
.c-name { font-size: 0.95rem; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-time { font-size: 0.8rem; font-weight: 800; color: var(--c-time); letter-spacing: -0.3px; }
.c-price { font-size: 0.9rem; font-weight: 800; color: var(--c-price); }
.c-note { font-size: 0.75rem; color: var(--c-note); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-tag { background: rgba(var(--brand-rgb), 0.1); color: var(--c-phone); padding: 2px 6px; border-radius: 6px; font-size: 0.75rem; cursor: pointer; display: flex; align-items: center; gap: 4px; transition: 0.2s; border: 1px solid transparent; }
.phone-tag:hover { background: rgba(var(--brand-rgb), 0.2); border-color: var(--c-phone); }
.done-icon { color: #10b981; font-size: 0.9rem; margin-left: 6px; }

.gap { 
    background: var(--brand); color: #ffffff; border-radius: 12px; height: 34px; 
    display: flex; align-items: center; justify-content: center; cursor: pointer; 
    font-size: 0.9rem; transition: all 0.2s ease; font-weight: 800; 
    box-shadow: 0 3px 10px rgba(var(--brand-rgb), 0.25); margin-bottom: 4px; border: 1px solid rgba(255,255,255,0.1); 
}
.gap:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(var(--brand-rgb), 0.35); filter: brightness(1.05); }
.gap:active { transform: scale(0.97); }

.res-name { font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-main); letter-spacing: -0.3px; }
.shift-tag { display: inline-block; font-size: 0.65rem; padding: 3px 10px; border-radius: 15px; margin-top: 6px; font-weight: 700; text-transform: uppercase; background: var(--bg-input); color: var(--text-main); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.shift-off { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.cal-head-row { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 8px; text-align: center; }
.cal-day-lbl { font-size: 0.65rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; }
.cal-week-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.planner-row { display: grid; grid-template-columns: 30px repeat(7, 1fr); gap: 6px; margin-bottom: 6px; align-items: center; }
.day { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 14px; cursor: pointer; font-size: 0.9rem; font-weight: 600; position: relative; color: var(--text-muted); background: transparent; transition: all 0.2s ease; border: 2px solid transparent; z-index: 1; user-select: none; }
.day:active { transform: scale(0.95); background: var(--bg-input); }
.day.today { background: rgba(var(--brand-rgb), 0.1); color: var(--brand); border-color: rgba(var(--brand-rgb), 0.2); font-weight: 800; }
.day.sel-plan { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.4); transform: scale(1.05); z-index: 2; border: none; }
.day.plan-off { background-color: #fff7ed !important; border: 2px dashed #fdba74 !important; color: #c2410c !important; opacity: 1 !important; }

.d-row-top { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; pointer-events: none; gap: 2px; width: 100%; }
.d-col-left { position: absolute; left: 4px; bottom: 4px; display: flex; flex-direction: column-reverse; align-items: center; pointer-events: none; gap: 2px; }
.d-col-right { position: absolute; right: 4px; bottom: 4px; display: flex; flex-direction: column-reverse; align-items: center; pointer-events: none; gap: 2px; }
.d-row-bottom { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; pointer-events: none; gap: 2px; }
.dot { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--bg-card); z-index: 5; pointer-events: none; }
.dot-off-icon { font-size: 10px; z-index: 5; } 
.d-col-left .dot:not(:first-child), .d-col-right .dot:not(:first-child) { margin-bottom: -3px; }
.d-row-bottom .dot:not(:first-child) { margin-left: -3px; }
.week-sel-btn { display: flex; align-items: center; justify-content: center; height: 100%; border-radius: 8px; cursor: pointer; color: var(--text-muted); font-size: 0.8rem; transition: 0.2s; opacity: 0.5; }
.week-sel-btn:hover { background: var(--bg-input); opacity: 1; color: var(--brand); }

.day-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; background: var(--bg-input); color: var(--text-muted); cursor: pointer; transition: 0.2s; }
.day-circle.active { background: var(--brand); color: #fff; transform: scale(1.1); box-shadow: 0 3px 10px rgba(var(--brand-rgb), 0.3); }
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-opt { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; cursor: pointer; }
.radio-opt input { accent-color: var(--brand); width: 18px; height: 18px; }

.log-item { padding: 10px; border-bottom: 1px solid var(--border); font-size: 0.85rem; display: flex; align-items: center; gap: 10px; }
.log-item:last-child { border-bottom: none; }
.log-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.9rem; }
.log-meta { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 2px; }
.log-desc { font-weight: 600; color: var(--text-main); }

/* === TABY V NASTAVENIACH (Vylepšené) === */
.tabs { 
    display: flex; 
    padding: 10px 15px; /* Viac miesta */
    background: var(--bg-card); 
    border-bottom: 1px solid var(--border); 
    overflow-x: auto; 
    flex-shrink: 0; 
    gap: 8px; /* Medzery medzi tabmi */
}

.tab-btn { 
    padding: 10px 16px; 
    background: var(--bg-input); /* Neaktívne sú jemne šedé */
    border: 1px solid transparent; 
    border-radius: 10px; /* Zaoblené */
    color: var(--text-muted); 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 0.9rem; 
    white-space: nowrap; 
    font-family: var(--font); 
    transition: all 0.2s;
}

/* Aktívny tab - Modrý a výrazný */
.tab-btn.active { 
    background: var(--brand); 
    color: #ffffff; 
    box-shadow: 0 4px 10px rgba(var(--brand-rgb), 0.3);
    border-color: var(--brand);
}

.tab-btn:hover:not(.active) {
    background: #e2e8f0;
    color: var(--text-main);
}

.action-modal-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 14px; margin-bottom: 10px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: 0.2s; border: none; cursor: pointer; }
.btn-call { background-color: rgba(0, 86, 179, 0.1); color: #0056b3; }
.btn-sms { background-color: rgba(46, 125, 50, 0.1); color: #2e7d32; }
.btn-wa { background-color: rgba(37, 211, 102, 0.1); color: #25d366; }

.fin-toggle-btn {
    flex: 2; background: #1e8e3e; color: #fff; border: none; padding: 0 20px; height: 56px; 
    border-radius: 16px; display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 8px 20px rgba(30, 142, 62, 0.3); cursor: pointer; margin-top: 0 !important;
}

.bottom-action-bar .icon-btn {
    width: 56px !important; height: 56px !important; border-radius: 16px !important;
    font-size: 1.4rem !important; background: var(--bg-input); color: var(--text-main);
    border: none !important; position: static !important; padding: 0 !important; box-shadow: none !important;
}

.btn-mob-plan {
    flex: 1; background: var(--brand); color: #fff; border-radius: 16px; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 2rem; height: 56px;
    box-shadow: 0 8px 20px rgba(var(--brand-rgb), 0.3); transition: 0.2s;
}
.btn-mob-plan:active { transform: scale(0.95); }
.sheet-handle-box { width: 100%; display: flex; justify-content: center; padding-bottom: 10px; cursor: pointer; }
.sheet-handle { width: 40px; height: 5px; background: var(--text-muted); opacity: 0.5; border-radius: 10px; }
.desk-plan-btn { width: 100%; padding: 18px; margin-top: 15px; margin-bottom: 25px; background: var(--brand); color: #ffffff; border: none; border-radius: 16px; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 10px 25px rgba(var(--brand-rgb), 0.3); }
.desk-plan-btn i { font-size: 1.6rem; }
.desk-plan-btn:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 15px 35px rgba(var(--brand-rgb), 0.4); filter: brightness(1.1); }
.desk-plan-btn:active { transform: scale(0.98); box-shadow: 0 5px 10px rgba(var(--brand-rgb), 0.2); }
.fin-total-desk { background: #1e8e3e; color: #fff; padding: 20px; border-radius: 16px; text-align: center; margin-top: 0; box-shadow: 0 8px 20px rgba(30, 142, 62, 0.3); }
.fin-val-desk { font-size: 2rem; font-weight: 800; color: #fff; display: block; }
.fin-label-desk { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: rgba(255,255,255,0.8); display: block; margin-bottom: 5px; }
.last-recur-icon { color: var(--danger); font-size: 0.9rem; margin-left: 5px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

/* Layout Queries */
@media (min-width: 901px) {
    .desktop-sidebar { width: 340px; background: var(--bg-card); backdrop-filter: blur(20px); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; box-shadow: var(--shadow); border: 1px solid var(--border); order: 2; }
    .col { flex: 1; }
    .bottom-sheet { display: none !important; }
    .content { padding: 10px; }
    .timeline { flex: 1; }
    .bottom-action-bar { display: none !important; } 
}

@media (max-width: 900px) {
    .desktop-sidebar { display: none !important; }
    .content { flex-direction: column; padding: 10px 10px 0 10px; height: 100%; overflow: hidden; }
    .timeline { flex-direction: row; gap: 0; padding-bottom: 0 !important; scroll-snap-type: x mandatory; height: 100%; }
    .col { min-width: 100%; scroll-snap-align: center; padding: 0 5px; }
    .col-body { padding-bottom: 80px !important; }
    
    .bottom-sheet { 
        position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-card) !important;
        border-top-left-radius: 24px; border-top-right-radius: 24px;
        box-shadow: 0 -5px 40px rgba(0,0,0,0.3) !important; border-top: 1px solid rgba(255,255,255,0.15) !important;
        z-index: 2100 !important; padding: 5px 20px calc(80px) 20px;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; 
    }    
    
    .week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 0px !important; }
    .full-cal-wrapper { overflow: hidden; max-height: 0; opacity: 0; transition: 0.4s ease; }
    .full-cal-wrapper.open { max-height: 500px; opacity: 1; margin-bottom: 20px; }
    .fin-details { max-height: 0; overflow: hidden; transition: 0.3s ease; opacity: 0; }
    .fin-details.open { max-height: 300px; opacity: 1; margin-top: 15px; overflow-y: auto; }
    .bottom-sheet.expanded .week-strip-group { display: none; }
    .full-cal-wrapper .cal-head-row { margin-top: 10px; margin-bottom: 10px; }
}

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 15px; }
.modal { background: var(--bg-modal); width: 100%; max-width: 420px; padding: 0; border-radius: 24px; box-shadow: 0 25px 80px rgba(0,0,0,0.2); height: auto; max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; color: var(--text-main); border: 1px solid var(--border); }
#mSet .modal { height: 600px; }
#mContact { z-index: 2300 !important; }
#mDeleteConfirm { z-index: 2400 !important; }
#mBulkCancel { z-index: 2450 !important; }
#mLogs { z-index: 2500 !important; }
#mAdminConsole { z-index: 2999 !important; }

.modal-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; background: var(--bg-header); flex-shrink: 0; border-bottom: 1px solid var(--border); }
.modal-content { padding: 20px; overflow-y: auto; flex: 1; }
.btn { 
    -webkit-appearance: none; appearance: none;
    padding: 14px 24px; border-radius: 12px; font-weight: 700; border: none; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; transition: 0.2s; 
    font-size: 0.95rem; font-family: var(--font);
}

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 15px rgba(var(--brand-rgb), 0.3); }
.btn-dang { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* === INPUTY A FORMULÁRE (Opravené) === */
.input { 
    width: 100%; padding: 14px; border-radius: 12px; 
    background: var(--bg-input) !important; 
    border: 1px solid var(--border-input) !important; 
    color: var(--text-main) !important; 
    font-size: 0.95rem; box-sizing: border-box; 
    transition: all 0.2s ease;
}
.input:focus { 
    border-color: var(--brand) !important; 
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.2) !important;
}

.fin-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 12px; background: var(--bg-input); border-radius: 10px; margin-bottom: 8px; align-items: center; }
.inp-row { display: flex; gap: 10px; margin-bottom: 15px; }
.label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.5px; }
.toggle-switch { display: flex; background: var(--bg-input); border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 15px; }
.toggle-opt { flex: 1; text-align: center; padding: 10px; font-size: 0.85rem; border-radius: 8px; cursor: pointer; transition: 0.2s; color: var(--text-muted); font-weight: 600; }
.toggle-opt.active { background: var(--brand); color: #fff; }
.color-palette { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.color-opt { width: 32px; height: 32px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: 0.2s; }
.color-opt.active { border-color: var(--text-main); transform: scale(1.1); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: var(--bg-input); border-radius: 10px; margin-bottom: 8px; color: var(--text-main); transition: 0.2s; border:1px solid transparent; cursor: pointer;}
.list-item:hover { border-color: var(--brand); }
.list-action-btn { width: 32px; height: 32px; border-radius: 8px; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.btn-del { background: rgba(239, 68, 68, 0.15); color: #ef4444; font-weight: bold; }
.btn-del:hover { background: rgba(239, 68, 68, 0.25); }
.user-tag { background:var(--brand); color:#fff; padding:2px 8px; border-radius:6px; font-size:0.7rem; margin-left:8px; }
.btn-row { display: flex; justify-content: center; gap: 15px; margin-top: 10px; }
.textarea { width: 100%; padding: 14px; border-radius: 12px; background: var(--bg-input) !important; border: 1px solid var(--border-input) !important; color: var(--text-main) !important; font-size: 0.95rem; font-family: var(--font); resize: vertical; min-height: 80px;}

/* LOGIN FIX */
#loginScreen { position: fixed; inset: 0; background-color: var(--bg-body); z-index: 20000; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.login-box { background: var(--bg-card); backdrop-filter: blur(20px); padding: 40px; border-radius: 30px; width: 100%; max-width: 380px; box-shadow: 0 30px 60px rgba(0,0,0,0.1); text-align: center; border: 1px solid var(--border); }

/* ADMIN CONSOLE */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; color: var(--text-main); }
.admin-table th { text-align: left; padding: 12px; background: var(--bg-input); color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; font-weight: 700; }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--border); color: var(--text-main); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: rgba(0,0,0,0.02); }

.status-badge { padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.st-active { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.st-free { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.st-inactive { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.action-icon { cursor: pointer; padding: 6px; border-radius: 6px; transition: 0.2s; color: var(--text-muted); }
.action-icon:hover { background: var(--bg-input); color: var(--text-main); }
.imp-btn { color: var(--brand); }
.imp-btn:hover { background: rgba(var(--brand-rgb), 0.15); }

/* WIZARD */
#wizard { display: none; position: fixed; inset: 0; z-index: 20000; background: var(--bg-body); display: flex; align-items: center; justify-content: center; }

/* === TUTORIAL === */
body.tour-active { pointer-events: none !important; user-select: none; }
body.tour-active .app, body.tour-active .content { z-index: auto !important; transform: none !important; }
body.tour-active #tourBlocker { display: block !important; position: fixed; inset: 0; z-index: 9000 !important; background: rgba(23, 33, 41, 0.85); backdrop-filter: blur(3px); pointer-events: auto !important; }
body.tour-active .bottom-action-bar { z-index: 9001 !important; position: relative !important; }
body.tour-active .modal-overlay { z-index: 9002 !important; background: transparent !important; pointer-events: auto !important; }
body.tour-active .tour-highlight { pointer-events: auto !important; z-index: 9003 !important; position: relative; box-shadow: 0 0 0 4px #fff, 0 0 30px 10px rgba(var(--brand-rgb), 0.7) !important; transition: all 0.3s ease; border-radius: 12px !important; }
body.tour-active #btnMobPlanner.tour-highlight { z-index: 9003 !important; position: relative !important; background-color: var(--brand) !important; color: #fff !important; box-shadow: 0 0 0 4px #ffffff, 0 0 20px rgba(var(--brand-rgb), 0.6) !important; }
body.tour-active #tourTooltip { z-index: 9005 !important; pointer-events: auto !important; }
.day.tour-highlight { border-radius: 50% !important; background-color: #fff !important; color: var(--brand) !important; }
.input.tour-highlight, .textarea.tour-highlight, select.tour-highlight, .btn.tour-highlight, .btn-plan.tour-highlight, .card.tour-highlight, .desk-plan-btn.tour-highlight, .btn-mob-plan.tour-highlight { border-radius: 12px !important; background-color: #fff !important; color: var(--text-main) !important; border-color: transparent !important; }
button.tour-highlight, .desk-plan-btn.tour-highlight, .btn-mob-plan.tour-highlight { background-color: var(--brand) !important; color: #fff !important; }
body.tour-active #tourTooltip * { pointer-events: auto !important; }
.tour-z-fix { z-index: 9003 !important; pointer-events: auto !important; }

#tourTooltip { display: none; position: fixed; background: #fff; color: #333; padding: 20px; border-radius: 20px; box-shadow: 0 15px 50px rgba(0,0,0,0.2); max-width: 300px; font-size: 0.95rem; animation: floatTooltip 3s ease-in-out infinite; transition: top 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
#tourTooltip b { color: var(--brand); font-weight: 800; }
.tour-next-btn { display: block; margin-top: 15px; background: var(--brand); color: white; border: none; padding: 10px 16px; border-radius: 10px; font-size: 0.9rem; font-weight: 700; cursor: pointer; width: 100%; pointer-events: auto !important; box-shadow: 0 4px 15px rgba(var(--brand-rgb), 0.3); }
@keyframes floatTooltip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* LANDSCAPE */
#landscapeOverlay { display: none; position: fixed; inset: 0; background: var(--bg-body); z-index: 999999; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
@media screen and (orientation: landscape) and (max-height: 600px) { #landscapeOverlay { display: flex; } }

.icon-btn { -webkit-appearance: none; appearance: none; width: 38px; height: 38px; border-radius: 12px; background: var(--bg-input); border: none; display: flex; align-items: center; justify-content: center; font-size: 1rem; cursor: pointer; color: var(--text-main); transition: 0.2s; }

/* ONBOARDING */
#onboardingOverlay { position: fixed; inset: 0; z-index: 99999; background: #ffffff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; font-family: var(--font); }
.ob-step { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; animation: fadeIn 0.5s ease; }
.ob-dots-container { position: relative; width: 120px; height: 120px; margin-bottom: 40px; animation: rotate 10s linear infinite; }
.ob-dot { position: absolute; width: 40px; height: 40px; border-radius: 50%; mix-blend-mode: multiply; opacity: 0.8; }
.dot-c { background: #00AEEF; top: 0; left: 50%; transform: translateX(-50%); }
.dot-m { background: #EC008C; bottom: 10px; left: 10px; }
.dot-y { background: #FFF200; bottom: 10px; right: 10px; }

@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.ob-title { font-size: 2rem; font-weight: 800; color: #1a1a1a; margin-bottom: 10px; line-height: 1.2; }
.ob-subtitle { font-size: 1.1rem; color: #666; margin-bottom: 50px; }
.ob-head { font-size: 1.5rem; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; }
.ob-desc { color: #888; margin-bottom: 30px; }
.ob-btn-start { background: var(--brand); color: #fff; border: none; padding: 18px 40px; font-size: 1.2rem; font-weight: 700; border-radius: 50px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: 0.2s; width: 100%; }
.ob-btn-start:active { transform: scale(0.95); }
.ob-btn-next { background: transparent; border: 2px solid var(--brand); color: var(--brand); padding: 15px 30px; font-size: 1rem; font-weight: 700; border-radius: 12px; cursor: pointer; margin-top: 30px; width: 100%; }
.ob-input-group { display: flex; align-items: center; gap: 15px; width: 100%; margin-bottom: 20px; background: #fff; padding: 10px; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.05); }
.ob-dot-static { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; }
.ob-input { border: none; background: transparent; font-size: 1.1rem; font-weight: 600; color: #333; width: 100%; outline: none; }
.ob-fake-cal { width: 100%; background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); overflow: hidden; position: relative; }
.ob-time-row { padding: 20px; border-bottom: 1px solid #eee; text-align: left; font-weight: 600; color: #ccc; position: relative; }
.active-row { color: #333; cursor: pointer; background: #fafafa; }
.ob-hand-anim { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; animation: point 1s infinite alternate; }
@keyframes point { from { transform: translateY(-50%) translateX(0); } to { transform: translateY(-50%) translateX(-10px); } }

.ob-placed-dot { position: absolute; left: 80px; top: 10px; bottom: 10px; right: 10px; background: #00AEEF; border-radius: 8px; animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; align-items: center; padding-left: 15px; color: #fff; font-weight: 700; box-shadow: 0 4px 10px rgba(0, 174, 239, 0.4); }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
.ob-big-check { font-size: 4rem; margin-bottom: 20px; animation: popIn 0.5s ease; }

.pwa-prompt { position: fixed; bottom: 20px; left: 20px; right: 20px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-radius: 24px; padding: 25px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); z-index: 99999; border: 1px solid rgba(0,0,0,0.05); animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1); max-width: 400px; margin: 0 auto; }
.pwa-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.pwa-icon-box { width: 60px; height: 60px; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.pwa-icon-box img { width: 100%; height: 100%; object-fit: cover; }
.pwa-title { margin: 0 0 5px 0; font-size: 1.1rem; font-weight: 800; color: var(--text-main); }
.pwa-text { margin: 0 0 15px 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; }
.pwa-instruction { background: var(--bg-input); padding: 10px 15px; border-radius: 12px; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.bounce-arrow { position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%); font-size: 2rem; color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,0.5); animation: bounce 2s infinite; }

.btn-quick-edit { position: absolute; right: 10px; top: 12px; background: rgba(255,255,255,0.5); border: none; color: #333; opacity: 0.8; cursor: pointer; padding: 6px; border-radius: 50%; transition: all 0.2s; font-size: 0.9rem; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.btn-quick-edit:hover { opacity: 1; background: rgba(0,0,0,0.05); color: var(--brand); transform: scale(1.1); }

/* === UX: RÝCHLE TLAČIDLÁ (CHIPS) === */
.quick-chips-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; margin-top: 5px; }
.chip-serv { padding: 8px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: #fff; transition: all 0.2s; display: flex; align-items: center; gap: 6px; user-select: none; color: var(--text-main); }
.chip-serv.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 4px 10px rgba(var(--brand-rgb), 0.3); transform: scale(1.05); }
.chip-client { background: var(--bg-input); color: var(--text-main); padding: 6px 12px; border-radius: 15px; font-size: 0.8rem; cursor: pointer; border: 1px solid transparent; }
.chip-client:hover { border-color: var(--brand); background: #fff; }
.chip-client i { margin-right: 5px; color: var(--text-muted); }
.hidden-visually { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.chip-add { border: 1px dashed var(--brand); color: var(--brand); background: rgba(var(--brand-rgb), 0.05); justify-content: center; width: 40px; padding: 0; height: 34px; }
.chip-add:hover { background: var(--brand); color: #fff; border-style: solid; }

/* === KOMPAKTNÝ REZERVAČNÝ MODAL === */
.mini-toggle { display: flex; background: #e5e7eb; border-radius: 8px; padding: 2px; height: 42px; }
.mini-toggle div { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; border-radius: 6px; cursor: pointer; transition: 0.2s; color: var(--text-muted); }
.mini-toggle div.active { background: #fff; color: var(--text-main); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.booking-footer { margin-top: 10px; background: var(--bg-input); padding: 12px; border-radius: 16px; }
.footer-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.check-btn { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; cursor: pointer; background: #fff; padding: 0 12px; height: 48px; border-radius: 12px; border: 1px solid var(--border); color: var(--text-muted); }
.check-btn input { width: 16px; height: 16px; accent-color: var(--brand); }
.check-btn.checked { border-color: var(--brand); color: var(--brand); background: rgba(var(--brand-rgb), 0.05); }

/* === VYLEPŠENÉ OPAKOVANIE === */
.rec-row-big { display: flex; align-items: center; gap: 10px; background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 15px; }
.input-big { height: 44px; font-size: 1.1rem; font-weight: 700; text-align: center; border: 1px solid #ddd; border-radius: 8px; background: #f9fafb; }
.rec-days-grid { display: flex; justify-content: space-between; gap: 5px; margin-bottom: 20px; padding: 0 5px; }
.day-circle-big { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700; background: var(--bg-input); color: var(--text-muted); cursor: pointer; transition: 0.2s; border: 2px solid transparent; }
.day-circle-big.active { background: var(--brand); color: #fff; transform: scale(1.1); box-shadow: 0 4px 10px rgba(var(--brand-rgb), 0.3); }
.rec-end-card { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--border); padding: 10px 15px; border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: 0.2s; }
.rec-end-card:hover { border-color: var(--brand); background: rgba(var(--brand-rgb), 0.05); }
.rec-end-card input[type="radio"] { width: 20px; height: 20px; accent-color: var(--brand); margin-right: 10px; }
.rec-end-label { font-weight: 600; font-size: 0.95rem; flex: 1; }

/* === FULL-SCREEN MODALS NA MOBILE === */
@media (max-width: 600px) {
    #mSet.modal-overlay, #mPlan.modal-overlay { padding: 0 !important; align-items: flex-start !important; background: var(--bg-body) !important; }
    #mSet .modal, #mPlan .modal { width: 100% !important; max-width: 100% !important; height: 100% !important; max-height: 100% !important; border-radius: 0 !important; box-shadow: none !important; display: flex; flex-direction: column; }
    #mSet .modal-content, #mPlan .modal-content { flex: 1; padding-bottom: 30px !important; }
    #mSet .modal-header, #mPlan .modal-header { padding-top: max(15px, env(safe-area-inset-top)) !important; background: var(--bg-card); }
}

/* === SETTINGS CARD === */
.settings-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 15px; }
[data-theme="dark"] .settings-card { background: #1e293b; border-color: #334155; }
.settings-card > .label:first-child { margin-top: 0; }

/* === FIXNA SPODNÁ LIŠTA V MODALE === */
.modal-footer-fixed { position: sticky; bottom: 0; background: var(--bg-modal); padding: 15px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; z-index: 100; }
#mBooking .modal-content { padding-bottom: 80px !important; }
.booking-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 15px; }
.booking-row-inline { display: flex; gap: 10px; margin-bottom: 15px; align-items: flex-end; }

/* Taby v nastaveniach */
.settings-tabs { display: flex; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--border); padding: 5px 10px; gap: 5px; scrollbar-width: none; }
.settings-tabs::-webkit-scrollbar { display: none; }
.tab-btn { padding: 10px 18px; border: none; background: transparent; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; border-radius: 8px; }
.tab-btn.active { background: var(--bg-body); color: var(--brand); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Štýl pre tlačidlá jazykov */
.btn-lang { width: 65px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; font-size: 2.2rem; padding: 0; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.btn-lang:hover { border-color: var(--brand); background: var(--bg-body); }
.btn-lang.active { border: 2px solid var(--brand); background: rgba(59, 130, 246, 0.05); transform: scale(1.05); }
.btn-lang .fi { border-radius: 4px; line-height: 1; }

/* Styling pre predvoľby v plánovaní */
.chip-time { padding: 12px; border: 1px solid var(--border); background: var(--bg-card); border-radius: 10px; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all 0.2s; color: var(--text-main); }
.btn-dang-light { background: #fee2e2 !important; color: #ef4444 !important; border: none !important; }
.chip-time.active { background: var(--brand) !important; color: #fff !important; border-color: var(--brand) !important; transform: scale(1.02); }
.chip-time.btn-dang-light.active { background: #ef4444 !important; color: #fff !important; }

/* === FIX PRE IPHONE ZOOM === */
@media screen and (max-width: 768px) {
    .input, .textarea, select, input, .ob-input, .input-big { font-size: 16px !important; }
}

/* === TRIAL BAR & PAYMENT (Opravená lišta) === */
.trial-bar { 
    width: 100%; 
    background: #fff; 
    border-bottom: 1px solid var(--border); 
    padding: 5px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 15px; /* Medzera medzi textom a tlačidlom */
    font-size: 0.9rem; 
    color: var(--text-main); 
    flex-shrink: 0; 
    position: relative; 
    z-index: 90; 
}

/* Text v lište - aby sa pekne zalamoval ak treba */
.trial-bar span {
    flex: 1; /* Zoberie všetok voľný priestor */
    font-weight: 500;
}

/* Tlačidlo v lište */
.btn-trial-action { 
    background: #fff; 
    border: 1px solid var(--border); 
    color: var(--brand); 
    padding: 8px 16px; 
    border-radius: 8px; 
    font-weight: 700; 
    cursor: pointer; 
    font-size: 0.85rem; 
    white-space: nowrap; /* Text v tlačidle sa nesmie zalomiť */
    flex-shrink: 0; /* Tlačidlo sa nesmie zmenšiť */
    transition: all 0.2s;
}
.btn-trial-action:hover {
    background: var(--bg-input);
    border-color: var(--brand);
}

/* Urgentný stav (Žltá - keď končí trial alebo je zrušené) */
.trial-bar.urgent { 
    background: #fffbeb; /* Jemná žltá */
    border-bottom-color: #fcd34d; 
    color: #92400e; /* Tmavá hnedá pre čitateľnosť */
}

.trial-bar.urgent .btn-trial-action { 
    background: #fff; 
    color: #d97706; 
    border-color: #fcd34d;
}
.trial-bar.urgent .btn-trial-action:hover {
    background: #fff7ed;
}

/* Platobný modal (Animácia) */
.pay-visual { position: relative; width: 120px; height: 100px; margin: 30px auto 40px auto; animation: spinLogo 10s infinite linear; }
.ob-dot { position: absolute; width: 40px; height: 40px; border-radius: 50%; mix-blend-mode: multiply; opacity: 0.8; }
.dot-c { background: #00AEEF; top: 50%; right: 0; transform: translateY(-50%); }
.dot-m { background: #EC008C; top: 0; left: 0; }
.dot-y { background: #FFF200; bottom: 0; left: 0; }
@keyframes spinLogo { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.pay-headline { color: var(--brand); margin: 10px 0 15px 0; font-size: 2.2rem; font-weight: 800; line-height: 1.2; }
.price-tag-large { font-size: 2.8rem; font-weight: 800; color: var(--text-main); letter-spacing: -1.5px; }

#btnClosePay { width: 36px; height: 36px; background: #f3f4f6 !important; border-radius: 50%; color: #333; z-index: 100; cursor: pointer; transition: transform 0.2s; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; line-height: 1; padding: 0; }
#btnClosePay:hover { transform: scale(1.1); background: #e5e7eb !important; }

/* ============================================================
   VYLEPŠENIE UI (Navigácia, Týždne, Zebrovanie) - Vložiť na koniec
   ============================================================ */

/* 1. KRAJŠIE NAVIGAČNÉ ŠÍPKY (Mesiac) */
.cal-nav .icon-btn {
    width: 42px !important;
    height: 42px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 50% !important; /* Dokonalý kruh */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important; /* Pekný tieň */
    color: var(--brand) !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex; align-items: center; justify-content: center;
}

.cal-nav .icon-btn:active {
    transform: scale(0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
}

.cal-nav .icon-btn:hover {
    border-color: var(--brand) !important;
    background: var(--bg-body) !important;
}

/* Dark mode úprava pre šípky */
[data-theme="dark"] .cal-nav .icon-btn {
    background: #2a2f45 !important;
    border-color: #353a52 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
}

/* 2. TLAČIDLO PRE CELÝ TÝŽDEŇ (V plánovači) */
.week-sel-btn {
    width: 100%;
    height: 100%;
    min-height: 40px; /* Aby sa dalo ľahko trafiť prstom */
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    opacity: 1 !important; /* Zrušíme starú priehľadnosť */
}

.week-sel-btn:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.3);
}

.week-sel-btn:active {
    transform: scale(0.95);
}

/* 3. ZEBROVANIE RIADKOV (Zebra Striping) */
/* Každý párny riadok dostane jemné pozadie */
.cal-week-row:nth-child(even), 
.planner-row:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.03); /* Veľmi jemná šedá */
    border-radius: 12px;
}

/* Zebra v Dark Mode */
[data-theme="dark"] .cal-week-row:nth-child(even), 
[data-theme="dark"] .planner-row:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03); /* Jemne svetlejšia v tme */
}

/* Aby zebrovanie nebolo nalepené na krajoch */
.cal-week-row, .planner-row {
    padding: 4px; /* Vytvorí "odstup" pre zebrovanie */
    margin-bottom: 2px !important;
}

/* ==============================================
   VYLEPŠENÝ ZOZNAM KONTAKTOV
   ============================================== */

/* Úprava riadku kontaktu */
.contact-item {
    padding: 10px 15px; /* Viac miesta */
    align-items: center;
    gap: 15px;
    cursor: pointer;
    border: 1px solid transparent;
}

/* Informácie o mene a čísle */
.list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.list-phone {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Skupina tlačidiel napravo */
.list-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Spoločný štýl pre mini tlačidlá */
.btn-mini {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-mini:active {
    transform: scale(0.92);
}

/* 📞 Tlačidlo VOLAŤ (Modré, výrazné) */
.btn-call-mini {
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand);
}
.btn-call-mini:hover {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 10px rgba(var(--brand-rgb), 0.3);
}

/* ✏️ Tlačidlo UPRAVIŤ (Šedé, nenápadné) */
.btn-edit-mini {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-muted);
}
.btn-edit-mini:hover {
    border-color: var(--text-muted);
    color: var(--text-main);
    background: var(--bg-body);
}

/* DARK MODE ÚPRAVY */
[data-theme="dark"] .btn-call-mini {
    background: rgba(59, 130, 246, 0.15);
}
[data-theme="dark"] .btn-edit-mini {
    background: rgba(255, 255, 255, 0.03);
    border-color: transparent;
}
[data-theme="dark"] .contact-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* RESET NA PÔVODNÝ ŠTÝL HLAVIČKY */

/* Uistíme sa, že pôvodné tlačidlo je viditeľné */
.btn-quick-edit {
    display: block !important; /* Zobraziť */
    position: absolute;
    right: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    color: var(--text-main);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}

.btn-quick-edit:hover {
    background: #fff;
    color: var(--brand);
    transform: scale(1.1);
}

/* Reset hlavičky na flex stĺpec */
.col-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important;
    position: sticky !important;
    top: 0;
    z-index: 5;
    /* Farba pozadia je inline v JS, tu neriešime */
}

/* Meno zdroja */
.res-name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
    display: flex; 
    align-items: center; 
    gap: 8px;
}

/* Oprava tagu smeny v hlavičke */
.shift-tag {
    font-size: 0.65rem !important;
    padding: 2px 8px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    vertical-align: middle !important;
    box-shadow: none !important;
}

/* Hlavička - zarovnanie na stred */
.col-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
    min-height: 75px !important;
}

/* Edit tlačidlo (klasická bublinka) */
.btn-quick-edit {
    width: 30px !important;
    height: 30px !important;
    background: rgba(255,255,255,0.6) !important;
    color: var(--text-main) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
}
.btn-quick-edit:hover {
    background: #fff !important;
    color: var(--brand) !important;
    transform: scale(1.1);
}

/* === OPRAVA TLAČIDIEL OPAKOVANIA (REC RADIO CARDS) === */

.rec-radio-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.rec-radio-card:hover {
    background: var(--bg-input);
}

/* Keď je tlačidlo vybrané (Active) */
.rec-radio-card.active {
    border-color: var(--brand);
    background: rgba(59, 130, 246, 0.1); /* Jemná modrá */
    color: var(--brand);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
    transform: scale(1.02);
}

/* Skryjeme ten malý krúžok (radio button), lebo celá karta je tlačidlo */
.rec-radio-card input[type="radio"] {
    display: none;
}


/* === DIZAJN PRE MODAL OBNOVY HESLA === */
#mResetPass.modal-overlay {
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999 !important; /* Aby to bolo navrchu */
}

#mResetPass .modal {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 35px 30px;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    max-width: 400px !important;
    width: 90%;
}

#mResetPass h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
}

#mResetPass p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 25px;
}

#mResetPass .inp-group {
    text-align: left;
    margin-bottom: 25px;
}

#mResetPass .inp-group label {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
    color: var(--text-muted);
}

#mResetPass .ob-input {
    background: #f4f5f7;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s;
}

#mResetPass .ob-input:focus {
    background: #fff;
    border-color: var(--brand);
}

/* Tlačidlá v modale */
#mResetPass .btn {
    padding: 14px 0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

#mResetPass .btn[onclick*="closeM"] {
    background: #eef0f2 !important;
    color: #555 !important;
    border: none;
}

#mResetPass .btn-primary {
    background: var(--brand);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.3);
}

#tabServ > div, 
#tabRes > div {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* --- Farebná bodka služby v karte --- */
.serv-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;       /* Spraví z kocky kruh */
    display: inline-block;
    margin-right: 8px;        /* Medzera medzi guličkou a menom */
    flex-shrink: 0;           /* Aby sa gulička nestlačila */
    box-shadow: 0 1px 2px rgba(0,0,0,0.15); /* Jemný tieň pre lepší kontrast */
    border: 1px solid rgba(255,255,255,0.4); /* Jemný okraj */
}

/* ==============================================
   TABLET UI FIX (Sheet nad lištou)
   ============================================== */

@media (min-width: 550px) and (max-width: 900px) {

    /* 1. Spodná lišta s tlačidlami ostáva plávať 20px od spodku */
    .bottom-action-bar {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        width: 100%;
        max-width: 420px;
        bottom: 20px !important;
        padding-bottom: 0 !important;
        z-index: 2200 !important; /* Musí byť nad sheetom, aby sa dali klikať tlačidlá */
    }

    /* 2. Vysúvací panel posunieme nad lištu */
    .bottom-sheet {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        width: 100%;
        max-width: 420px;
        
        /* Posun: 20px (medzera od spodku) + 56px (výška tlačidiel) + 12px (rezerva) */
        bottom: 88px !important; 
        
        border-radius: 24px !important;
        padding-bottom: 15px !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
        z-index: 1001;
    }

    /* 3. Úprava výšky, aby kalendár nezakryl celú obrazovku */
    .full-cal-wrapper.open {
        max-height: 45vh !important;
        overflow-y: auto;
    }
}

/* === MODERNÝ PUNTI RECUR BUTTON (Zachováva preklady) === */
.punti-recur-btn {
    display: block;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.recur-content {
    display: flex;
    flex-direction: row; /* Zmenené z 'column' na 'row', aby boli prvky vedľa seba */
    align-items: center;    /* Zarovnanie na stred zvislo */
    justify-content: center; /* Zarovnanie na stred vodorovne */
    text-align: left;      /* Text zarovnaný doľava */
    
    gap: 8px; /* Primeraná medzera medzi ikonou a textom */
    
    background: #3b82f4;
    color: #ffffff;
    border-radius: 12px;
    
    /* KĽÚČOVÉ PRE ZNÍŽENIE VÝŠKY: */
    padding: 6px 12px;   /* Menší padding hore/dole */
    
    /* Ak poznáte presnú výšku vedľajšieho prepínača, môžete ju sem napevno dať. */
    /* Napr. ak má 40px, odkomentujte tieto riadky: */
    /* height: 40px; */
    /* box-sizing: border-box; */
    
    font-size: 0.9rem;  /* Písmo tak akurát */
    font-weight: 700;
    line-height: 1;    /* Aby riadok nemal zbytočnú výšku */
    
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

/* Stav pri zapnutí (Checked) */
.punti-recur-btn input:checked + .recur-content {
    background: rgba(var(--brand-rgb), 0.1); /* Punti modrá s priehľadnosťou */
    border-color: var(--brand);
    color: var(--brand);
    box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.15);
}

/* Animácia ikony pri aktívnom stave */
.punti-recur-btn input:checked + .recur-content i {
    animation: rotateRecur 3s infinite linear;
}

@keyframes rotateRecur {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.punti-recur-btn:active {
    transform: scale(0.96);
}