/*
====================================================================
Emergency QR – komentovaný CSS styl
====================================================================
Tento soubor sjednocuje veřejnou i administrační část projektu.

ORIENTAČNÍ MAPA SOUBORŮ A TŘÍD:

1) Veřejný pohled občana
   Soubory: index.php, index_moderni.php, index_obcan_stavy.php
   Hlavní třídy:
   .topbar, .topbar-inner, .topbar-row, .brand, .brand-title,
   .brand-subtitle, .emblem, .lang,
   .section-title, .status-card, .events, .event, .event-head,
   .event-body, .event-title, .badge, .meta-grid, .meta-item,
   .note, .notice, .hotline, .ended-message, .actions-public,
   .btn-public, .btn-admin.

2) Administrační stránky
   Soubory: admin.php, admin_event.php, uprav.php, login.php
   Hlavní třídy:
   .container, .header, .topnav, .card, .card-inner, .msg,
   .msg.ok, .msg.err, .grid, .grid.two, .checks, .check,
   .toolbar, .primary, .btn, .btn-muted, .btn-danger.

3) Přehled událostí
   Soubory: prehled.php, prehled - kopie.php
   Hlavní třídy:
   .list, .item, .item-head, .title, .meta, .pillbar, .pill,
   .pill.off, .pill.warn, .item-actions,
   .status-active, .status-ended, .status-hidden,
   .status-pill-active, .status-pill-ended, .status-pill-hidden.

4) Správa typů a účtů
   Soubory: typy.php, ucty.php
   Hlavní třídy:
   .table, table, .pill, .pill.warn, .btn-muted, .primary.

5) Log události
   Soubor: log.php
   Hlavní třídy:
   .logpre, .muted, .list, .item, .title, .meta.

6) Pomocné PHP soubory bez vlastní vizuální vrstvy
   Soubory: auth.php, bootstrap.php, config.php, logout.php
   Tyto soubory zpravidla nevykreslují HTML layout a CSS přímo nepoužívají.
====================================================================
*/

/* Globální proměnné barev, stínů a zaoblení – používá celý projekt */
:root {
    --police-blue: #003b73;
    --police-blue-dark: #062747;
    --police-blue-soft: #e8f1fb;
    --police-yellow: #f4c542;
    --text: #0f172a;
    --muted: #64748b;
    --card: #ffffff;
    --border: rgba(15, 23, 42, .12);
    --shadow: 0 20px 50px rgba(2, 8, 23, .14);
    --radius: 22px;
}

/* Základní výpočet rozměrů pro všechny prvky */
* { box-sizing: border-box; }

/* Společné pozadí a písmo pro všechny stránky */
body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(244, 197, 66, .22), transparent 34rem),
        linear-gradient(135deg, #f8fafc 0%, #eef5ff 45%, #ffffff 100%);
}

/* Veřejná horní lišta – index.php / občanský pohled */
.topbar {
    background: linear-gradient(135deg, var(--police-blue-dark), var(--police-blue));
    color: #fff;
    border-bottom: 5px solid var(--police-yellow);
}

/* Vnitřní kontejner hlavičky – veřejná část */
.topbar-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* Logo + text organizace v hlavičce */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Box/logotyp v hlavičce */
.emblem {
    width: 54px;
    height: 54px;
    /*
	border-radius: 16px;
    background: rgba(255,255,255,.12);
    
	display: grid;
    place-items: center;
    
	border: 1px solid rgba(255,255,255,.22);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
    font-size: 1.6rem;
	*/
}

.brand-title {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.brand-subtitle {
    margin-top: 4px;
    color: rgba(255,255,255,.78);
    font-size: .98rem;
}

/* Přepínač jazyků ve veřejné hlavičce */
.lang {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lang a {
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 8px 10px;
    line-height: 1;
}

/* Hlavní kontejner obsahu pro všechny stránky */
.container {
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto 48px;
}

/* Veřejná karta: prázdný stav a jednotlivé události */
.status-card, .event {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.status-card {
    padding: clamp(24px, 5vw, 44px);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.status-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 7px;
    background: linear-gradient(90deg, var(--police-blue), var(--police-yellow));
}

.status-card h2 {
    margin: 0 0 10px;
    font-size: clamp(1.45rem, 4vw, 2.25rem);
    letter-spacing: -.03em;
}

.status-card p {
    margin: 0 auto;
    max-width: 680px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.recruit {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.recruit a, .mapa {
    color: var(--police-blue);
    font-weight: 800;
    text-decoration: none;
}

/* Nadpis sekce ve veřejném přehledu událostí */
.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2.35rem);
    letter-spacing: -.04em;
}

.section-title .count {
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

/* Grid/seznam událostí ve veřejné části */
.events {
    display: grid;
    gap: 18px;
}

.event {
    overflow: hidden;
}

/* Horní část karty události – veřejný index */
.event-head {
    padding: 20px 22px;
    background: linear-gradient(135deg, rgba(0,59,115,.09), rgba(244,197,66,.12));
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.event-title {
    font-weight: 900;
    font-size: clamp(1.28rem, 3vw, 1.75rem);
    letter-spacing: -.03em;
}

/* Obecný štítek/stav události */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: .86rem;
    font-weight: 850;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(15,23,42,.13);
}

.typ-amok { background: #b91c1c; }
.typ-nvs { background: #92400e; }
.typ-dn { background: #1d4ed8; }
.typ-patrani { background: #047857; }
.typ-default { background: var(--police-blue); }

.event-body {
    padding: 22px;
}

/* Dvou/sloupcová metadata události ve veřejném indexu */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.meta-item {
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 16px;
    padding: 13px 14px;
}

.meta-label {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px;
}

.meta-value {
    font-weight: 850;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

/* Poznámka/detail události ve veřejné kartě */
.note {
    background: #fff;
    border-left: 5px solid var(--police-yellow);
    padding: 14px 16px;
    margin: 18px 0;
    border-radius: 14px;
    color: #334155;
    line-height: 1.6;
}

/* Box s hotlinkou – veřejný index */
.hotline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 1px solid rgba(180, 83, 9, .22);
}

.hotline-label {
    font-weight: 900;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hotline a {
    color: #7c2d12;
    font-weight: 950;
    font-size: clamp(1.35rem, 5vw, 2rem);
    text-decoration: none;
    white-space: nowrap;
}

/* Informační upozornění ve veřejném indexu */
.notice {
    background: var(--police-blue-soft);
    border: 1px solid rgba(0,59,115,.12);
    border-radius: 18px;
    padding: 16px 18px;
    color: #16324f;
}

.notice ul {
    margin: 0;
    padding-left: 20px;
}

.notice li + li { margin-top: 8px; }
.notice p { margin: 0; line-height: 1.6; }

/* Akční odkazy pro občana – mapa, formulář, nahrávání */
.actions-public {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

/* Veřejná tlačítka a odkaz do administrace */
.btn-public, .btn-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 999px;
    font-weight: 850;
    text-decoration: none;
}

.btn-public {
    color: #fff;
    background: var(--police-blue);
    box-shadow: 0 12px 22px rgba(0,59,115,.18);
}

.admin-toolbar {
    margin-top: 22px;
    text-align: center;
}

.btn-admin {
    color: var(--police-blue);
    background: #fff;
    border: 1px solid rgba(0,59,115,.18);
}

@media (max-width: 720px) {
    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .lang {
        justify-content: flex-start;
    }

    .container {
        width: min(100% - 22px, 1120px);
        margin-top: 18px;
    }

    .section-title {
        display: block;
    }

    .section-title .count {
        margin-top: 6px;
    }

    .event-head {
        flex-direction: column;
        padding: 18px;
    }

    .event-body {
        padding: 18px;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .hotline {
        align-items: flex-start;
        flex-direction: column;
    }

    .actions-public a {
        width: 100%;
    }
}

/* Stav události pro veřejný pohled */
.event.status-active .event-head {
    background: linear-gradient(135deg, rgba(185, 28, 28, .14), rgba(255, 255, 255, .92));
}

.event.status-ended .event-head {
    background: linear-gradient(135deg, rgba(22, 101, 52, .16), rgba(255, 255, 255, .92));
}

.badge.status-active {
    background: #b91c1c !important;
    color: #fff;
}

.badge.status-ended {
    background: #15803d !important;
    color: #fff;
}

.event-title {
    text-transform: uppercase;
}

.hotline {
    background: linear-gradient(135deg, #fee2e2, #fff1f2);
    border: 1px solid rgba(185, 28, 28, .35);
    color: #7f1d1d;
}

.hotline-label {
    color: #7f1d1d;
}

.hotline a {
    display: block;
    margin: 0 auto;
    color: #b91c1c;
    font-weight: 1000;
    font-size: clamp(1.7rem, 7vw, 2.45rem);
    text-align: center;
}

@media (max-width: 720px) {
    .badge {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hotline {
        text-align: center;
        align-items: center;
    }
}


/* Informační box u ukončené události */
/* Zpráva u ukončené události ve veřejném indexu */
.ended-message {
    margin: 18px 0;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    border: 1px solid rgba(22, 101, 52, .25);
    color: #14532d;
    line-height: 1.6;
    font-weight: 650;
	text-align: center;
}

.ended-message strong {
    font-weight: 950;
}

.termination-box {
    border: 1px solid rgba(22, 101, 52, .22);
    background: #f0fdf4;
    border-radius: 18px;
    padding: 16px;
}

/* ===== Hlavička: levá polovina PČR, pravá polovina KŘP LK, jazyky dole vpravo ===== */
.topbar-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

/* Rozložení dvou brandů v hlavičce: PČR vlevo, kraj vpravo */
.topbar-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    width: 100%;
}

.topbar-row .brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.topbar-row .brand:first-child {
    justify-self: start;
    justify-content: flex-start;
    text-align: left;
    gap: 14px;
}

/* Pravý brand v hlavičce – KŘP Libereckého kraje */
.brand-right {
    justify-self: end;
    justify-content: flex-end;
    text-align: right;
    gap: 12px;
    width: auto;
    max-width: 100%;
}

.brand-right .emblem {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
	margin-left: 107px;
}

.brand-right > div:last-child {
    flex: 0 1 auto;
    min-width: 0;
}

.brand-right .brand-title,
.brand-right .brand-subtitle {
    text-align: right;
}

.lang {
    width: 100%;
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.emblem img {
    display: block;
    width: 54px;
    max-width: 54px;
    height: auto;
}

@media (max-width: 720px) {
    .topbar-inner {
        align-items: stretch;
        gap: 16px;
    }

    .topbar-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .topbar-row .brand,
    .brand-right {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        justify-self: start;
    }

    .brand-right .brand-title,
    .brand-right .brand-subtitle {
        text-align: left;
    }

    .lang {
        justify-content: flex-end;
        margin-top: 0;
    }
}

@media (max-width: 420px) {
    .lang {
        justify-content: flex-start;
    }

    .brand-title {
        font-size: 1.15rem;
    }

    .brand-subtitle {
        font-size: .9rem;
    }
}


/*
====================================================================
DOPLNĚNÍ ADMINISTRAČNÍ ČÁSTI
====================================================================
Tento blok doplňuje styly pro soubory:
- login.php
- admin.php
- admin_event.php
- uprav.php
- prehled.php
- typy.php
- ucty.php
- log.php
Používá se jen tam, kde daná stránka obsahuje odpovídající třídy.
====================================================================
*/

/* Admin hlavička: login.php, admin.php, prehled.php, typy.php, ucty.php, uprav.php, log.php */
.header {
    background: linear-gradient(135deg, var(--police-blue-dark), var(--police-blue));
    color: #fff;
    border-bottom: 5px solid var(--police-yellow);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(22px, 4vw, 34px);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(244,197,66,.20), transparent 60%);
    pointer-events: none;
}

.header h1 {
    position: relative;
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.header p {
    position: relative;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 1rem;
}

/* Admin navigace: admin.php, prehled.php, typy.php, ucty.php, uprav.php, log.php */
.topnav {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.topnav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 850;
    color: #fff;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.topnav a:hover {
    background: rgba(255,255,255,.22);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(2,8,23,.18);
}

/* Karta administračních formulářů a tabulek: login.php, admin.php, typy.php, ucty.php, uprav.php, prehled.php */
.card {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 22px;
}

.card-inner {
    padding: clamp(20px, 3vw, 28px);
}

/* Systémové zprávy: login.php, admin.php, prehled.php, typy.php, ucty.php, uprav.php */
.msg {
    border-radius: 18px;
    padding: 15px 18px;
    margin: 0 0 20px;
    font-weight: 750;
    line-height: 1.55;
    border: 1px solid transparent;
}

.msg ul { margin: 0; padding-left: 20px; }
.msg.ok { background: #dcfce7; color: #14532d; border-color: rgba(22,101,52,.22); }
.msg.err { background: #fee2e2; color: #7f1d1d; border-color: rgba(185,28,28,.22); }

/* Formulářové rozložení: admin.php, admin_event.php, uprav.php, typy.php, ucty.php */
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 850;
    color: var(--police-blue-dark);
    font-size: .94rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 16px;
    background: #fff;
    padding: 13px 15px;
    font: inherit;
    color: var(--text);
    box-shadow: 0 1px 0 rgba(15,23,42,.03);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea { min-height: 124px; resize: vertical; line-height: 1.55; }

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(0,59,115,.55);
    box-shadow: 0 0 0 4px rgba(0,59,115,.10);
}

/* Checkbox pilulky: admin.php, admin_event.php, uprav.php */
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 18px; }
.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0;
    padding: 11px 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,.08);
    color: var(--police-blue-dark);
}
.check input { width: auto; margin: 0; }

/* Lišta tlačítek ve formulářích: login.php, admin.php, admin_event.php, uprav.php, prehled.php */
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }

/* Obecná admin tlačítka */
button,
.btn,
.primary,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.primary,
.btn-primary,
button.primary,
button[type="submit"] {
    color: #fff;
    background: linear-gradient(135deg, var(--police-blue), var(--police-blue-dark));
    box-shadow: 0 12px 22px rgba(0,59,115,.18);
}

.primary:hover,
.btn-primary:hover,
button[type="submit"]:hover,
.btn:hover { transform: translateY(-1px); }

.btn-muted { color: var(--police-blue); background: #fff; border-color: rgba(0,59,115,.18); }
.btn-edit { color: #fff; background: linear-gradient(135deg, var(--police-blue), var(--police-blue-dark)); }
.btn-danger, button.btn-danger { color: #fff; background: linear-gradient(135deg, #b91c1c, #7f1d1d); }

/* Pomocný text ve formulářích: admin_event.php */
.help {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    margin-top: 6px;
}

/* Přehled událostí: prehled.php */
.list { display: grid; gap: 18px; }

.item {
    position: relative;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 16px 38px rgba(15,23,42,.09);
    overflow: hidden;
}

.item-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 22px;
}

.title {
    color: var(--text);
    font-size: clamp(1.18rem, 2.6vw, 1.55rem);
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

.meta { margin-top: 7px; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.meta strong { color: var(--text); font-weight: 850; }

.pillbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: .78rem;
    font-weight: 850;
    white-space: nowrap;
    background: linear-gradient(135deg, #15803d, #166534);
    color: #fff;
    border: 1px solid rgba(255,255,255,.26);
    box-shadow: 0 10px 22px rgba(22,101,52,.13);
}
.pill.off { background: #e2e8f0; color: #475569; border: 1px solid rgba(100,116,139,.18); box-shadow: none; }
.pill.warn { background: linear-gradient(135deg, #f59e0b, #92400e); color: #fff; }

.item-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: 8px; min-width: 280px; }
.item-actions form { margin: 0; }
.item-actions .btn, .item-actions button { min-height: 40px; padding: 9px 14px; white-space: nowrap; }

/* Stavové barvy v přehledu i veřejném indexu: index.php + prehled.php */
.event.status-active,
.item.status-active,
.card.status-active {
    border: 2px solid rgba(185, 28, 28, .55) !important;
    box-shadow: 0 0 0 1px rgba(185,28,28,.08), 0 20px 50px rgba(185,28,28,.16);
}

.event.status-ended,
.item.status-ended,
.card.status-ended {
    border: 2px solid rgba(22, 101, 52, .38) !important;
    box-shadow: 0 0 0 1px rgba(22,101,52,.05), 0 20px 50px rgba(22,101,52,.10);
}

.event.status-hidden,
.item.status-hidden,
.card.status-hidden {
    border: 2px solid rgba(100, 116, 139, .30) !important;
    opacity: .86;
    box-shadow: 0 0 0 1px rgba(100,116,139,.04), 0 14px 34px rgba(15,23,42,.06);
}

.status-pill,
.status-pill-active,
.status-pill-ended,
.status-pill-hidden,
.status-strip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff !important;
    font-weight: 900;
    letter-spacing: .02em;
}

.status-pill-active,
.status-strip.status-active,
.badge.status-active { background: linear-gradient(135deg, #dc2626, #b91c1c) !important; }
.status-pill-ended,
.status-strip.status-ended,
.badge.status-ended { background: linear-gradient(135deg, #16a34a, #15803d) !important; }
.status-pill-hidden,
.status-strip.status-hidden,
.badge.status-hidden { background: linear-gradient(135deg, #64748b, #475569) !important; }

.status-strip {
    margin: 16px 18px 0;
    width: fit-content;
    box-shadow: 0 10px 22px rgba(15,23,42,.13);
}

/* Tabulky: typy.php, ucty.php */
.table,
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

.table th,
table th {
    background: linear-gradient(135deg, var(--police-blue-dark), var(--police-blue));
    color: #fff;
    text-align: left;
    padding: 15px 14px;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.table td,
table td {
    padding: 14px;
    border-bottom: 1px solid rgba(15,23,42,.07);
    vertical-align: middle;
}

.table tr:hover td,
table tr:hover td { background: rgba(0,59,115,.035); }
.table form, table form { margin: 0; }

/* Log události: log.php */
.logpre {
    white-space: pre-wrap;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    overflow-x: auto;
    line-height: 1.55;
}

.muted { color: var(--muted); }

/* Mobilní úpravy pro admin stránky */
@media (max-width: 860px) {
    .item-head { grid-template-columns: 1fr; }
    .item-actions { min-width: 0; justify-content: flex-start; }
}

@media (max-width: 720px) {
    .header { padding: 22px; }
    .topnav a,
    .toolbar .btn,
    .toolbar button,
    .toolbar a { width: 100%; }
    .grid.two { grid-template-columns: 1fr; }
    .item-head { padding: 18px; }
    .item-actions,
    .item-actions form,
    .item-actions .btn,
    .item-actions button { width: 100%; }
    .pill { flex: 1 1 100%; }
    .table,
    .table tbody,
    .table tr,
    .table td,
    table,
    tbody,
    tr,
    td { display: block; width: 100%; }
    .table th,
    table th { display: none; }
    .table tr,
    table tr {
        border: 1px solid rgba(15,23,42,.08);
        border-radius: 18px;
        margin-bottom: 14px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 10px 24px rgba(15,23,42,.06);
    }
    .table td,
    table td { border-bottom: 1px solid rgba(15,23,42,.06); }
}


.header-public-like {
    background: linear-gradient(135deg, var(--police-blue-dark), var(--police-blue));
    border-radius: 0 0 var(--radius) var(--radius);
    border-bottom: 5px solid var(--police-yellow);
    box-shadow: 0 18px 45px rgba(0, 59, 115, .18);
}

.header-public-like .topnav a {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.24);
    color: #fff;
    box-shadow: none;
}

.header-public-like .topnav a:hover {
    background: rgba(255,255,255,.22);
}

.overview-toolbar {
    justify-content: flex-start;
    margin: 18px 0 18px;
}

.overview-count {
    background: rgba(255,255,255,.92) !important;
    color: var(--police-blue-dark) !important;
    border: 1px solid rgba(0,59,115,.16);
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
}

.overview-sections {
    display: grid;
    gap: 24px;
}

.overview-section {
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: var(--radius);
    padding: clamp(16px, 2.5vw, 22px);
    box-shadow: 0 16px 38px rgba(15,23,42,.08);
}

.overview-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15,23,42,.08);
}

.overview-section-head h2 {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -.04em;
    color: var(--police-blue-dark);
}

.overview-section-head p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.overview-section-head span {
    flex: 0 0 auto;
    font-weight: 900;
    color: var(--muted);
    white-space: nowrap;
}

.overview-section.section-active {
    border-top: 6px solid #b91c1c;
}

.overview-section.section-ended {
    border-top: 6px solid #15803d;
}

.overview-section.section-hidden {
    border-top: 6px solid #64748b;
}

.empty-section {
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed rgba(100,116,139,.28);
    color: var(--muted);
    font-weight: 750;
    text-align: center;
}

/* ====================================================================
   PŘEHLED.PHP – STAVOVÉ KARTY A PRAVÝ STAVOVÝ PRUH
==================================================================== */

.item.status-active,
.item.status-ended,
.item.status-hidden {
    position: relative;
    overflow: hidden;
}

.item.status-active {
    border: 2px solid rgba(185, 28, 28, .55) !important;
    box-shadow:
        0 0 0 1px rgba(185, 28, 28, .08),
        0 20px 50px rgba(185, 28, 28, .16);
}

.item.status-ended {
    border: 2px solid rgba(22, 101, 52, .42) !important;
    box-shadow:
        0 0 0 1px rgba(22, 101, 52, .05),
        0 20px 50px rgba(22, 101, 52, .10);
}

.item.status-hidden {
    border: 2px solid rgba(100, 116, 139, .34) !important;
    opacity: .92;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow:
        0 0 0 1px rgba(100,116,139,.04),
        0 14px 34px rgba(15,23,42,.06);
}

.item.status-active .item-head {
    background: linear-gradient(135deg, rgba(185, 28, 28, .08), rgba(255,255,255,.94));
}

.item.status-ended .item-head {
    background: linear-gradient(135deg, rgba(22, 101, 52, .08), rgba(255,255,255,.94));
}

.item.status-hidden .item-head {
    background: linear-gradient(135deg, rgba(148,163,184,.10), rgba(255,255,255,.92));
}

.status-strip {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 9px 15px;
    border-radius: 999px;
    color: #fff !important;
    font-weight: 950;
    font-size: .82rem;
    line-height: 1;
    letter-spacing: .015em;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(15,23,42,.16);
}

.status-strip.status-active {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}

.status-strip.status-ended {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
}

.status-strip.status-hidden {
    background: linear-gradient(135deg, #64748b, #475569) !important;
}

.item .item-head {
    padding-top: 68px;
}

.item-main {
    min-width: 0;
}

.event-note-admin {
    margin-top: 10px;
}

/* Skrytá událost: aktivní příznaky jsou tmavě šedé, neaktivní zůstávají světle šedé */
.item.status-hidden .pill:not(.off) {
    background: linear-gradient(135deg, #475569, #334155) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 10px 22px rgba(51,65,85,.14);
}

.item.status-hidden .pill.off {
    background: #e5e7eb !important;
    color: #64748b !important;
    border: 1px solid rgba(100,116,139,.18);
    box-shadow: none;
}

/* Tlačítka v přehledu nemají efekt posunu */
.item-actions .btn,
.item-actions button,
.item-actions .btn:hover,
.item-actions button:hover,
.item-actions .btn:focus,
.item-actions button:focus {
    transform: none !important;
}

.item-actions .btn-muted:hover,
.item-actions button.btn-muted:hover {
    background: #fff;
    color: var(--police-blue);
}

.item-actions .btn-danger:hover,
.item-actions button.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    color: #fff;
}

@media (max-width: 860px) {
    .status-strip {
        position: static;
        margin: 18px 18px 0;
        width: calc(100% - 36px);
    }

    .item .item-head {
        padding-top: 18px;
    }
}

@media (max-width: 720px) {
    .overview-section-head {
        display: block;
    }

    .overview-section-head span {
        display: inline-flex;
        margin-top: 10px;
    }
}

/* ====================================================================
   ZMĚNA – PREHLED.PHP: WATERMARK STAVU UDÁLOSTI A AKČNÍ PRUH
   Týká se: prehled.php
   Cíl:
   - text stavu je velký na pozadí karty, vpravo;
   - hlavní obsah (#ID + typ události) je vlevo nad tímto pozadím;
   - tlačítka UPRAVIT / ZVIDITELNIT-ZNEVIDITELNIT / LOG / SMAZAT
     jsou v samostatném pruhu pod hlavičkou události;
   - ostatní styly zůstávají zachované.
==================================================================== */

/* ZMĚNA: Karta události musí být referenční vrstva pro text na pozadí. */
.item.status-active,
.item.status-ended,
.item.status-hidden {
    position: relative;
    overflow: hidden;
}

/* ZMĚNA: Zrušení původního malého štítku/tlačítka se stavem, pokud v HTML někde zůstane. */
.status-strip {
    display: none !important;
}

/* ZMĚNA: Velký text stavu v pozadí karty. */
.status-watermark {
    position: absolute;
    top: 22px;
    right: 24px;
    z-index: 0;
    max-width: 68%;
    text-align: right;
    font-size: clamp(2.1rem, 5.2vw, 4.6rem);
    font-weight: 1000;
    line-height: .95;
    letter-spacing: .05em;
    text-transform: uppercase;
    opacity: .095;
    pointer-events: none;
    user-select: none;
    white-space: normal;
}

/* ZMĚNA: Barvy watermarku podle stavu. */
.status-watermark.status-active {
    color: #b91c1c;
}

.status-watermark.status-ended {
    color: #15803d;
}

.status-watermark.status-hidden {
    color: #475569;
}

/* ZMĚNA: Hlavička položky už neslouží pro tlačítka, ale pro obsah nad watermarkem. */
.item-head {
    position: relative;
    z-index: 1;
    display: block;
    padding: 28px 28px 24px;
}

/* ZMĚNA: Vrstva s textem události je nad velkým textem na pozadí. */
.item-content-layer {
    position: relative;
    z-index: 2;
    max-width: min(720px, 72%);
}

/* ZMĚNA: Hlavní informace vlevo, aby watermark mohl být čitelně vpravo vzadu. */
.item-main {
    min-width: 0;
}

/* ZMĚNA: Samostatný akční pruh pod obsahem události. */
.item-actionbar {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid rgba(15,23,42,.08);
    background: rgba(248,250,252,.78);
    backdrop-filter: blur(8px);
}

.item-actionbar form {
    margin: 0;
}

.item-actionbar .btn,
.item-actionbar button {
    min-height: 40px;
    padding: 9px 15px;
    white-space: nowrap;
}

/* ZMĚNA: V akčním pruhu nebudou efekty posunu. */
.item-actionbar .btn,
.item-actionbar button,
.item-actionbar .btn:hover,
.item-actionbar button:hover,
.item-actionbar .btn:focus,
.item-actionbar button:focus {
    transform: none !important;
}

/* ZMĚNA: Jemné podbarvení akčního pruhu podle stavu události. */
.item.status-active .item-actionbar {
    background: linear-gradient(135deg, rgba(254,242,242,.86), rgba(255,255,255,.82));
}

.item.status-ended .item-actionbar {
    background: linear-gradient(135deg, rgba(240,253,244,.86), rgba(255,255,255,.82));
}

.item.status-hidden .item-actionbar {
    background: linear-gradient(135deg, rgba(248,250,252,.92), rgba(255,255,255,.82));
}

/* ZMĚNA: Skrytá událost – aktivní příznaky jsou tmavě šedé, aby bylo patrné, že byly aktivní. */
.item.status-hidden .pill:not(.off) {
    background: linear-gradient(135deg, #475569, #334155) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 10px 22px rgba(51,65,85,.14);
}

.item.status-hidden .pill.off {
    background: #e5e7eb !important;
    color: #64748b !important;
    border: 1px solid rgba(100,116,139,.18);
    box-shadow: none;
}

/* ZMĚNA: Responzivita – na menších displejích se watermark stáhne a akce se zarovnají dole. */
@media (max-width: 860px) {
    .status-watermark {
        top: 18px;
        right: 18px;
        max-width: 80%;
        font-size: clamp(1.8rem, 8vw, 3.2rem);
    }

    .item-content-layer {
        max-width: 100%;
    }

    .item-head {
        min-height: 0;
        padding: 24px 20px 20px;
    }

    .item-actionbar {
        justify-content: flex-start;
        padding: 14px 18px;
    }
}

@media (max-width: 720px) {

    .status-watermark {
        position: absolute;
        top: 16px;
        right: 16px;

        display: block;

        max-width: 72%;

        text-align: right;

        font-size: 1.45rem;

        opacity: .08;

        z-index: 0;

        pointer-events: none;
    }

}
