﻿/* ------------------------------
   ZÁKLADNÍ NASTAVENÍ HTML A BODY
--------------------------------*/
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

/* ------------------------------
   FOCUS STYLY
--------------------------------*/
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ------------------------------
   PROFILOVÉ FOTKY
--------------------------------*/
.profile-picture-menu,
.profile-picture-menu-new {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-picture {
    width: 250px !important;
    height: 250px !important;
    object-fit: cover;
    border-radius: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* ------------------------------
   ÚVODNÍ OBRÁZEK
--------------------------------*/
.img-uvod {
    height: 420px;
    width: auto;
    object-fit: contain;
}

/* ------------------------------
   OBRÁZKY A TEXT V AKTUALITÁCH
--------------------------------*/
.aktualita-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.aktualita-img {
    max-width: 150px;
    height: auto;
    border-radius: 6px;
    flex-shrink: 0; /* zabrání zmenšování obrázku */
}

.aktualita-text {
    overflow: hidden; /* zajistí, že text bude vedle obrázku */
}


/* ------------------------------
   ZAROVNÁNÍ TEXTU MP/P
--------------------------------*/
.typ-cell {
    vertical-align: middle;
    text-align: center;
}


/* ------------------------------
   LOGIN BOX
--------------------------------*/
.right-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-box {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 18px; /* původně 25px */
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    margin-top: 15px; /* původně 20px */
}

    .login-box .form-label i {
        color: #0d6efd;
    }

    .login-box a {
        text-decoration: none;
    }

        .login-box a:hover {
            text-decoration: underline;
        }

/* ------------------------------
   TABULKY
--------------------------------*/
table td, table th {
    user-select: none;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa !important;
    pointer-events: none;
}

    .table-hover tbody tr:hover td * {
        pointer-events: auto;
    }

.form-control + span.text-danger {
    line-height: 1;
}

/* ------------------------------
   FORMULÁŘOVÉ ŘÁDKY
--------------------------------*/
.formular-row {
    background-color: #e8f4ff;
}

    .formular-row input,
    .formular-row select {
        background-color: #ffffff;
        border: 1px solid #7bb8e8;
    }

/* ------------------------------
   ÚVODNÍ STRÁNKA – POZADÍ
--------------------------------*/
.landing-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/background/vodni-plocha.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Tmavý filtr */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 1; /* ← overlay je pod obsahem */
}

/* ------------------------------
   CENTROVACÍ WRAPPER (úzký)
--------------------------------*/
.center-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding-top: 20px; /* původně 80px */
    text-align: center;
}

    /* Boxy uvnitř center-wrapper */
    .center-wrapper .login-box,
    .center-wrapper .links-box .link-tile {
        background: rgba(255,255,255,0.9);
        padding: 25px;
        border-radius: 10px;
        box-shadow: 0 0 15px rgba(0,0,0,0.3);
    }

/* ------------------------------
   ŠIRŠÍ WRAPPER PRO AKTUALITY
--------------------------------*/
.news-wrapper {
    position: relative;
    z-index: 2; /* ← nad overlay */
    width: 100%;
    max-width: 1600px;
    margin: 20px auto;
    text-align: left;
}

/* Aktuality box */
.news-box {
    width: 100%;
    background: rgba(255,255,255,0.9);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

/* ------------------------------
   DVOU-DÍLNÝ BOX S ODKAZY
--------------------------------*/
.links-box {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 5px; /* původně 10px */
    gap: 8px; /* původně 10px */
}

.link-full {
    width: 100%; /* zabere celý řádek */
}

.link-half {
    flex: 1;
    min-width: 48%; /* dva bloky vedle sebe */
}

.link-tile {
    display: block;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    color: #000;
    padding: 12px 15px; /* přidáno – kompaktnější */
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    transition: 0.2s;
}


    .link-tile:hover {
        background: rgba(255,255,255,1);
        transform: scale(1.03);
    }


.icon-blue {
    color: #0d6efd;
}

.icon-red {
    color: #dc3545;
}

.icon-green {
    color: #198754;
}

.icon-purple {
    color: #6f42c1;
}

.icon-black {
    color: #000;
}
/* ------------------------------
   RESPONSIVNÍ VERZE
--------------------------------*/
@media (max-width: 768px) {
    .center-wrapper {
        padding-top: 40px;
        max-width: 90%;
    }

    .news-wrapper {
        max-width: 90%;
    }
}
/* Rolovací okno pro aktuality */
.scroll-news {
    max-height: 350px; /* výška okna */
    overflow-y: auto; /* povolit rolování */
    padding-right: 10px; /* aby scrollbar nepřekrýval text */
}

    /* Hezčí scrollbar */
    .scroll-news::-webkit-scrollbar {
        width: 8px;
    }

    .scroll-news::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 4px;
    }

        .scroll-news::-webkit-scrollbar-thumb:hover {
            background-color: #555;
        }

/* Obrázek aktuality */
.aktualita-img {
    width: 120px;
    height: auto;
    margin-right: 10px;
    border-radius: 4px;
}

/* Text aktuality */
.aktualita-text {
    flex: 1;
}

