﻿/* ============================================================
   BASE
   ============================================================ */

html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 17px;
    }
}

body {
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    background: var(--bg-app);
}

main {
    flex: 1;
}

#wrapper {
    min-height: 100vh;
    width: 100%;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Bez toho by flex položka narostla podle nejširší tabulky a .table-responsive by
       nescrollovala - obsah by se jen uřízl (body má overflow-x: hidden). */
    min-width: 0;
}

.rotate {
    transform: rotate(180deg);
    transition: transform 0.25s ease;
}


/*Scrollbar basic visualization*/
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #6c757d transparent;
}

    /* Chrome */
    *::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    *::-webkit-scrollbar-track {
        background: transparent;
    }

    *::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #6c757d, #495057);
        border-radius: 10px;
    }

        *::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #868e96, #5c636a);
        }


/* Focus ring */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(255,255,255,0.12), 0 0 0 0.25rem rgba(var(--accent-rgb), 0.45);
}

/* ============================================================
   GLASS SURFACE — shared mixin values
   ============================================================ */

:root {
    /* Barvy značky Živka (logo: petrolej + korálová fajfka) */
    --brand-petrol: #0F4C5C;
    --brand-coral: #F0603F;
    --coral-rgb: 240, 96, 63;
    /* Akcent pro focus, aktivní položky a stránkování - světlá petrolejová, na tmavém pozadí čitelná */
    --accent-rgb: 77, 182, 196;
    --bg-app: #0f1117;

    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-blur: blur(24px);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.45);
    --radius-card: 14px;
    --radius-sm: 8px;
    --radius-btn: 9px;
}

/* ============================================================
   CARD
   ============================================================ */

.card {
    border: 0.5px solid var(--glass-border);
    border-radius: var(--radius-card);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    color: #fff;
}

    .card .text,
    .card a,
    .link-muted {
        color: rgba(255,255,255,0.45);
    }

    /* Tlumený odkaz (např. na právní dokumenty) - i mimo .card */
    .link-muted:hover {
        color: rgba(255,255,255,0.75);
    }

    .card .form-control::placeholder {
        color: rgba(255,255,255,0.45);
    }

    .card .form-control:focus {
        background: rgba(255,255,255,0.08);
        border-color: rgba(var(--accent-rgb), 0.7);
        box-shadow: 0 0 0 0.2rem rgba(var(--accent-rgb), 0.2);
        color: #fff;
    }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
    background: rgba(255,255,255,0.12);
    border: 0.5px solid rgba(255,255,255,0.2);
    color: #fff !important;
    border-radius: var(--radius-btn);
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: background 0.15s ease, transform 0.15s ease;
    backdrop-filter: blur(8px);
}

    .btn-primary:hover {
        background: rgba(255,255,255,0.18);
        border-color: rgba(255,255,255,0.28);
        transform: translateY(-1px);
    }

    .btn-primary:active {
        transform: translateY(0);
        background: rgba(255,255,255,0.1);
    }



.btn-secondary {
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8) !important;
    border-radius: var(--radius-btn);
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: all 0.15s ease;
}

    .btn-secondary:hover {
        background: rgba(255,255,255,0.08);
        color: #fff !important;
        border-color: rgba(255,255,255,0.3);
    }

    .btn-secondary:active {
        background: rgba(255,255,255,0.04);
    }

/* ============================================================
   FORM CONTROLS
   ============================================================ */

.form-control,
.form-select {
    background: rgba(255,255,255,0.07);
    border: 0.5px solid rgba(255,255,255,0.14);
    color: #fff;
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, background 0.15s;
}

    .form-control::placeholder {
        color: rgba(255,255,255,0.38);
    }

    .form-control:focus,
    .form-select:focus {
        background: rgba(255,255,255,0.1);
        border-color: rgba(var(--accent-rgb), 0.65);
        color: #fff;
        box-shadow: 0 0 0 0.2rem rgba(var(--accent-rgb), 0.18);
    }

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: rgba(255,255,255,0.3);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.required::after {
    content: " *";
    color: #ff7675;
}

/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 0.5px solid var(--glass-border);
    box-shadow: 0 1px 0 rgba(0,0,0,0.3);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .topbar .nav-link {
        color: rgba(255,255,255,0.5);
        font-weight: 400;
        font-size: 0.9rem;
        padding: 6px 12px;
        border-radius: 6px;
        transition: color 0.15s, background 0.15s;
    }

        .topbar .nav-link:hover {
            color: #fff;
            background: rgba(255,255,255,0.08);
        }

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    width: 230px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 0.5px solid var(--glass-border);
    box-shadow: 1px 0 0 rgba(0,0,0,0.2);
    color: #fff;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    overflow-y: auto;
}

/* Tlačítko ☰ v horní liště - je vidět jen pod 992 px (d-lg-none v _Layout.cshtml). */
.sidebar-toggle {
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.8);
    font-size: 1.6rem;
    line-height: 1;
    padding: 4px 6px;
    margin-left: -6px;
    border-radius: var(--radius-sm);
}

    .sidebar-toggle:hover,
    .sidebar-toggle:focus-visible {
        color: #fff;
        background: rgba(255,255,255,0.08);
    }

.sidebar-backdrop {
    display: none;
}

/* Pod 992 px menu nezabírá místo vedle obsahu, ale vysouvá se zleva přes něj. Pozadí je
   neprůhledné, protože pod ním je obsah stránky (průhledné sklo by bylo nečitelné). */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        height: 100dvh;
        width: min(270px, 85vw);
        background: #151821;
        z-index: 1045; /* nad horní lištou (1000) i AI chatem (1040), pod modaly (1055) */
        transform: translateX(-100%);
        /* visibility: hidden až po dojetí animace - zavřené menu tak nejde projít Tabem. */
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
        visibility: hidden;
    }

        .sidebar.sidebar--open {
            transform: none;
            visibility: visible;
            transition: transform 0.25s ease, visibility 0s;
        }

    .sidebar-backdrop:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.55);
        z-index: 1044;
    }

    body.sidebar-locked {
        overflow: hidden;
    }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    .sidebar {
        transition: none;
    }
}

.sidebar-section {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.28);
    margin: 18px 0 4px;
    padding: 0 14px;
    font-weight: 500;
}

.sidebar-header {
    font-weight: 600;
    letter-spacing: 0.01em;
    border-bottom: 0.5px solid var(--glass-border);
    padding: 16px 16px 14px;
}

.sidebar .nav-link {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    font-weight: 400;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.15s, background 0.15s;
}

    .sidebar .nav-link:hover {
        color: rgba(255,255,255,0.9);
        background: rgba(255,255,255,0.08);
    }

    .sidebar .nav-link.active {
        color: #fff;
        background: rgba(var(--accent-rgb), 0.2);
        border: 0.5px solid rgba(var(--accent-rgb), 0.3);
        font-weight: 500;
    }

/* ============================================================
   TABLES
   ============================================================ */

.table-dark-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 0.5px solid var(--glass-border);
    color: #fff;
}

    .table-dark-glass > :not(caption) > * > * {
        background-color: transparent !important;
        color: rgba(255,255,255,0.8);
        box-shadow: none !important;
        border-bottom: 0.5px solid rgba(255,255,255,0.06);
    }

    .table-dark-glass thead {
        background: rgba(255,255,255,0.04);
        text-transform: uppercase;
        font-size: 0.72rem;
        letter-spacing: 0.08em;
    }

    .table-dark-glass th {
        border: none;
        color: rgba(255,255,255,0.35);
        font-weight: 500;
        padding: 12px 16px;
    }

    .table-dark-glass td {
        border: none;
        border-top: 0.5px solid rgba(255,255,255,0.05);
        vertical-align: middle;
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .table-dark-glass tbody tr {
        transition: background 0.12s ease;
    }

        .table-dark-glass tbody tr:hover {
            background: rgba(255,255,255,0.05);
        }

        .table-dark-glass tbody tr.table-danger > td {
            background-color: rgba(220, 53, 69, 0.25) !important;
            color: #ffb3b3;
        }

        .table-dark-glass tbody tr.table-warning > td {
            background-color: rgba(255, 193, 7, 0.18) !important;
            color: #fff3cd;
        }

/* ============================================================
   ACTION BUTTONS
   ============================================================ */

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 0;
    font-size: 13px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    transition: all 0.15s ease;
    margin-left: 4px;
}

    .btn-action:hover {
        transform: translateY(-1px);
    }

/* Akční ikony v tabulce vždy vedle sebe - v úzkém sloupci by se jinak zalomily pod sebe. */
td:has(.btn-action) {
    white-space: nowrap;
}

    .btn-action.edit {
        color: rgba(116,185,255,0.85);
    }

        .btn-action.edit:hover {
            background: rgba(116,185,255,0.12);
            border-color: rgba(116,185,255,0.25);
            color: #74b9ff;
        }

    .btn-action.delete {
        color: rgba(255,118,117,0.85);
    }

        .btn-action.delete:hover {
            background: rgba(255,118,117,0.12);
            border-color: rgba(255,118,117,0.25);
            color: #ff7675;
        }

    .btn-action.warning {
        color: rgba(255,193,7,0.9);
    }

        .btn-action.warning:hover {
            background: rgba(255,193,7,0.12);
            border-color: rgba(255,193,7,0.3);
            color: #ffc107;
        }

    .btn-action.success {
        color: rgba(85,239,196,0.85);
    }

        .btn-action.success:hover {
            background: rgba(85,239,196,0.12);
            border-color: rgba(85,239,196,0.25);
            color: #55efc4;
        }

/* ============================================================
   DATE INPUT
   ============================================================ */

.form-control[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.5;
    cursor: pointer;
}

.form-control[type="date"] {
    color: rgba(255,255,255,0.6);
}

    .form-control[type="date"]:focus {
        color: #fff;
    }

/* ============================================================
   DROP ZONE
   ============================================================ */

.drop-zone {
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: var(--radius-card);
    padding: 4rem 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.5);
}

    .drop-zone:hover {
        background: rgba(255,255,255,0.06);
        border-color: rgba(255,255,255,0.28);
        transform: translateY(-1px);
    }

    .drop-zone.dragover {
        border-color: rgba(var(--accent-rgb), 0.7);
        background: rgba(var(--accent-rgb), 0.08);
    }

    .drop-zone p {
        margin: 0;
        font-size: 0.9rem;
        font-weight: 400;
    }

#fileName {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.btn-remove-file {
    margin-top: 6px;
    background: transparent;
    border: none;
    color: rgba(255,118,117,0.8);
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.15s;
}

    .btn-remove-file:hover {
        color: #ff7675;
    }

/* ============================================================
   CIRCLE INDICATORS
   ============================================================ */

.circle {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.circle-position {
    padding-top: 55px;
}

#circle-outer-most, #circle-outer-mostRec {
    width: 220px;
    height: 220px;
    border-radius: 50%;
}

#circle-outer, #circle-outerRec {
    width: 178px;
    height: 178px;
    border-radius: 50%;
}

#circle-27, #circle-27Rec {
    width: 136px;
    height: 136px;
    border-radius: 50%;
}

.circle-number {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.breathing {
    animation: breathing 10s ease-in-out infinite;
}

.no-breathing {
    animation: none;
}

@keyframes breathing {
    0%, 60%, 100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.08);
    }
}

/* ============================================================
   CIRCLE TITLE ACCENT
   ============================================================ */

.circle--title {
    position: relative;
    z-index: 1;
}

    .circle--title::before {
        content: '';
        left: -0.35em;
        top: -0.25em;
        position: absolute;
        background: rgba(var(--accent-rgb), 0.35);
        border-radius: 50%;
        z-index: -1;
        height: 1.4em;
        width: 1.4em;
    }

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination .page-link {
    background: rgba(255,255,255,0.06);
    border: 0.5px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.65);
    transition: background 0.15s;
}

    .pagination .page-link:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

.pagination .page-item.active .page-link {
    background: rgba(var(--accent-rgb), 0.55);
    border-color: rgba(var(--accent-rgb), 0.5);
    color: #fff;
}

/* ============================================================
   DASHBOARD — charts & layout
   ============================================================ */

.display-4 {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: #fff;
}

.big-dashboard-btn {
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    background: var(--glass-bg);
    border: 0.5px solid var(--glass-border);
    color: rgba(255,255,255,0.75);
    transition: background 0.15s, transform 0.15s;
}

    .big-dashboard-btn:hover {
        background: rgba(255,255,255,0.09);
        transform: translateY(-1px);
    }

.chart-title {
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.chart-container {
    position: relative;
    height: 340px;
    width: 100%;
}

/* ---------- rozbalovací dlaždice dashboardu (Home/Index) ----------
   Na širokých obrazovkách je nadpis obyčejný text (tlačítko disabled, šipka skrytá).
   Pod 992 px jsou dlaždice pod sebou, sbalené, a nadpis s šipkou je otevírá. */
.dash-tile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-align: left;
}

    .dash-tile-toggle:disabled {
        cursor: default;
        opacity: 1;
    }

    .dash-tile-toggle i {
        display: none;
        transition: transform 0.25s ease;
    }

@media (max-width: 991.98px) {
    .dash-tile {
        margin-bottom: 10px;
    }

        .dash-tile .chart-title {
            margin-bottom: 0;
        }

    .dash-tile-toggle {
        padding: 14px 16px;
        border-radius: var(--radius-sm);
        background: var(--glass-bg);
        border: 0.5px solid var(--glass-border);
        cursor: pointer;
    }

        .dash-tile-toggle:hover,
        .dash-tile-toggle:focus-visible {
            color: rgba(255,255,255,0.85);
            background: rgba(255,255,255,0.08);
        }

        .dash-tile-toggle i {
            display: inline-block;
        }

    .dash-tile--open .dash-tile-toggle i {
        transform: rotate(180deg);
    }

    .dash-tile:not(.dash-tile--open) .dash-tile-body {
        display: none;
    }

    .dash-tile--open .dash-tile-body {
        margin-top: 12px;
    }

    /* Pevnou (nižší) výšku potřebuje jen graf (canvas), tabulka, upozornění a kolečka mají
       výšku podle obsahu - 6 řádků tabulky by se do 280 px nevešlo. */
    .dash-tile .chart-container {
        height: auto;
    }

        .dash-tile .chart-container:has(canvas) {
            height: 280px;
        }

    .circle-position {
        padding-top: 30px;
    }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    .dash-tile-toggle i {
        transition: none;
    }
}

canvas {
    border-radius: var(--radius-sm);
}

/* ============================================================
   TABLE (global overrides for Dashboard)
   ============================================================ */

table {
    font-size: 0.875rem;
}

.table thead th {
    font-weight: 500;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.35);
}

.row {
    row-gap: 16px;
}

/* ============================================================
   TRANSACTION ROW
   ============================================================ */

.transaction-row {
    cursor: pointer;
}

    .transaction-row:hover {
        background: rgba(255,255,255,0.04);
    }



.comment-modal {
    background: #1e1e2f;
    color: white;
    border-radius: 16px;
}

.comment-chat {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #151521;
    border-radius: 12px;
}

.comment-message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

    .comment-message.mine {
        align-self: flex-end;
        align-items: flex-end; 
    }

    .comment-message.other {
        align-self: flex-start;
        align-items: flex-start; 
    }

.comment-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
}

.comment-message.mine .comment-bubble {
    background: #0d6efd;
}

.comment-message.other .comment-bubble {
    background: #2b2b40;
    color: white;
}

/* Řazení tabulek kliknutím na hlavičku sloupce (TagHelpers/SortHeaderTagHelper.cs) */
.sort-link {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

    .sort-link:hover,
    .sort-link:focus { color: inherit; text-decoration: none; }

    .sort-link i { font-size: .8em; opacity: .35; transition: opacity .15s; }
    .sort-link:hover i,
    .sort-link.active i { opacity: 1; }

/* Systémová zpráva z historie faktury (vytvořena, odeslána, zaplacena…) */
.comment-message.system {
    align-self: center;
    align-items: center;
    max-width: 90%;
    text-align: center;
}

    .comment-message.system .comment-bubble {
        background: rgba(var(--accent-rgb), 0.12);
        border: 0.5px solid rgba(var(--accent-rgb), 0.3);
        color: rgba(255,255,255,0.85);
        font-size: 13px;
    }

    .comment-message.system .comment-time { padding-left: 0; }

.comment-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
    padding-left: 6px;
}

.comment-footer {
    display: flex;
    gap: 10px;
}

    .comment-footer textarea {
        resize: none;
    }



/* ============================================================
   PATIČKA VEŘEJNÉHO WEBU (Views/Shared/_SiteFooter.cshtml)
   ============================================================ */
.site-footer {
    border-top: 0.5px solid var(--glass-border);
    background: rgba(255,255,255,0.02);
    margin-top: auto;
    color: rgba(255,255,255,0.55);
    font-size: .9rem;
}

.site-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 32px;
}

.site-footer-logo {
    display: inline-block;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    margin-bottom: 10px;
}

    .site-footer-logo:hover { color: #fff; }

.site-footer-brand p {
    max-width: 280px;
    line-height: 1.6;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

.site-footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .site-footer-col h4 {
        color: #fff;
        font-size: .8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .08em;
        margin: 4px 0 6px;
    }

    .site-footer-col a {
        color: rgba(255,255,255,0.55);
        text-decoration: none;
        transition: color .15s;
    }

        .site-footer-col a:hover { color: #fff; }

    /* Ikona + kontakt vždy na jednom řádku, bez zalamování. */
    .site-footer-col .site-footer-contact {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }

.site-footer-bottom {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 24px;
    border-top: 0.5px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255,255,255,0.35);
    font-size: .8rem;
}

@media (max-width: 900px) {
    .site-footer-inner { grid-template-columns: repeat(2, 1fr); }
    .site-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .site-footer-inner { padding: 36px 16px 24px; gap: 24px; }
    .site-footer-bottom { padding: 16px; flex-direction: column; text-align: center; }
}

/* ============================================================
   HLAVIČKA VEŘEJNÉHO WEBU (Views/Shared/_SiteHeader.cshtml)
   ============================================================ */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
}

.site-logo,
.site-logo:hover {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    gap: 4px;
}

    .site-nav a {
        color: rgba(255,255,255,0.5);
        font-size: 0.9rem;
        padding: 6px 12px;
        border-radius: 6px;
        text-decoration: none;
        white-space: nowrap;
        transition: color .15s, background .15s;
    }

        .site-nav a:hover,
        .site-nav a.active {
            color: #fff;
            background: rgba(255,255,255,0.08);
        }

.site-auth {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .site-auth a { text-decoration: none; white-space: nowrap; }

@media (max-width: 700px) {
    .site-header { padding: 0 12px; gap: 8px; }
    .site-nav a { padding: 6px 8px; font-size: .82rem; }
    .site-auth .btn-secondary { display: none; }
}

@media (max-width: 480px) {
    .site-nav a[href="/#cenik"] { display: none; }
}

</style >

/* ============================================================
   ZNAČKA ŽIVKA - logo a hlavní výzva k akci
   Barvy jsou v :root nahoře (--brand-petrol, --brand-coral).
   Logo v img/brand/: zivka-logo-white.svg na tmavé pozadí (web, aplikace),
   zivka-logo.svg na světlé (PDF, e-maily), zivka-icon.svg jako ikona aplikace.
   ============================================================ */
/* Odkaz s logem (hlavička webu: nápis, menu aplikace: ikona) */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity .15s;
}

    .brand-lockup:hover { opacity: .88; }
    .brand-lockup img { display: block; width: auto; }

.site-logo .brand-word { height: 28px; }

.site-footer-logo img { height: 28px; width: auto; display: block; }

/* Hlavička menu má stejnou výšku jako horní lišta (60 px), aby spodní linky navazovaly. */
.sidebar-header {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 18px;
}

/* V aplikaci je jen ikona (web má naopak jen nápis). */
.sidebar-logo .brand-icon { height: 40px; }

/* Korálová jen na hlavní výzvy (registrace) - jinak by se pletla s červenou chyb. */
.btn-primary.btn-cta {
    background: var(--brand-coral);
    border-color: var(--brand-coral);
    font-weight: 600;
    text-decoration: none;
}

    .btn-primary.btn-cta:hover,
    .btn-primary.btn-cta:focus {
        background: #F4775A;
        border-color: #F4775A;
        text-decoration: none;
    }

    .btn-primary.btn-cta:active {
        background: #D9502F;
    }

@media (max-width: 700px) {
    .site-logo .brand-word { height: 22px; }
}
