/* ── Geofence Module Styles ── */
/* Sidebar pouziva sdilene tridy z shared-panels.css (mapSideBarWrapper, panel-header, vehicle-item atd.) */

/* ── Drawing toolbar (floating nad sdilenou mapou) ── */

.geofence-toolbar {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tblr-bg-surface, #fff);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 4px;
    padding: 6px;
    z-index: 1000;
}

.geofence-tool {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #555;
    transition: background 0.15s, color 0.15s;
}

.geofence-tool:hover {
    background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
    color: var(--brand-primary);
}

.geofence-tool-cancel:hover {
    background: #dc354515;
    color: #dc3545;
}

/* ── Alert schedule ── */

.geofence-schedule {
    background: var(--tblr-bg-surface-secondary, #f4f6fa);
    border-radius: 6px;
    padding: 12px;
}

.geofence-days {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.geofence-day {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--tblr-bg-surface, #fff);
    border: 1px solid var(--tblr-border-color, #e6e7e9);
}

.geofence-day:has(input:checked) {
    background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.geofence-day input[type="checkbox"] {
    display: none;
}

/* ── Vehicle select ── */

.geofence-vehicle-select {
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
    background: var(--tblr-bg-surface-secondary, #f4f6fa);
    border-radius: 6px;
}

/* ── Notifications ── */

.geofence-notifications {
    padding: 8px;
    background: var(--tblr-bg-surface-secondary, #f4f6fa);
    border-radius: 6px;
}

/* ── Toast notifications ── */

.geofence-toast-container {
    position: fixed;
    top: 72px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 380px;
}

/* Pod 1200 px ma lista GPS druhy radek s vybery (92 px misto 56) — nastroje kresleni a oznameni pod ni,
   stejne posunuti jako plovouci panel v clientMap.css */
@media screen and (min-width: 801px) and (max-width: 1199.98px) {
    body:has(.navbar-selectors-row) .geofence-toolbar,
    body:has(.navbar-selectors-row) .geofence-toast-container { top: 104px; }
}

/* ── Responsive (mobile < 800px) ─────────────────────────────────── */
@media screen and (max-width: 800px) {
    .gf-mobile-toggle.mobile-toggle-bar {
        display: flex;
    }

    .gf-hidden-mobile {
        display: none !important;
    }

    /* Telefon: lista s vybery je vysoka 92 px, panel zacina na 94 px */
    .geofence-toolbar,
    .geofence-toast-container { top: 102px; }
}
