/* Kontejner pro lajky a mazání */
.media-interactions {
    display: flex;
    justify-content: space-between; /* Rozdělí lajky doleva a koš doprava */
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #eee; /* Jemná linka nad interakcemi */
    margin-top: 10px;
}

.media-interactions a {
    text-decoration: none !important; /* Definitivní konec podtržení */
    color: #666; /* Základní barva ikon */
    font-size: 0.9rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Styl pro lajk */
.like-btn:hover {
    color: #e74c3c; /* Srdíčko zčervená */
    transform: scale(1.1);
}

/* Styl pro smazání */
.delete-btn {
    color: #ccc; /* Odpadkový koš bude nenápadný */
}

.delete-btn:hover {
    color: #e74c3c; /* Při najetí zčervená (varování) */
}

/* Počet lajků */
.like-count {
    font-weight: bold;
    color: #444;
}

/* Styl pro texty z Parsedownu */
.description ul, .kronika-text ul {
    padding-left: 25px;
    margin-bottom: 15px;
}

.description blockquote, .kronika-text blockquote {
    border-left: 4px solid #0084ff;
    padding-left: 15px;
    color: #666;
    font-style: italic;
    margin: 15px 0;
}

.description h3, .kronika-text h3 {
    color: #333;
    margin-top: 20px;
}

/* Hlavní kontejner boxíku */
.announcement-box {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    margin: 20px 0 !important;
    padding: 15px 25px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    border-left: 8px solid !important;
    font-family: sans-serif;
}

/* Modrá - Info */
.announcement-box.info {
    background-color: #e3f2fd !important;
    color: #0d47a1 !important;
    border-left-color: #2196f3 !important;
}

/* Červená - Varování (Warning) */
.announcement-box.warning {
    background-color: #ffebee !important;
    color: #b71c1c !important;
    border-left-color: #f44336 !important;
}

/* Zelená - Úspěch (Success) */
.announcement-box.success {
    background-color: #e8f5e9 !important;
    color: #1b5e20 !important;
    border-left-color: #4caf50 !important;
}

/* Ikona */
.announcement-box i {
    font-size: 1.8rem !important;
}

/* Text uvnitř */
.announcement-text {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
}

.announcement-text p {
    margin: 0 !important;
}

.new-feature-badge {
    background-color: #ff3e3e;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 5px;
    animation: pulse 2s infinite; /* Aby to trochu blikalo a lákalo oči */
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 62, 62, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 62, 62, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 62, 62, 0); }
}

/* Aby se mapa nedostala nad navigaci (z-index) */
#map {
    height: 70vh;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
    position: relative;
    z-index: 1; /* Leaflet má standardně vysoký z-index, tohle ho zkrotí */
}

/* Fix pro navigaci - ujisti se, že má vyšší z-index než mapa */
.sticky-nav-body .navbar {
    z-index: 1000 !important;
}

/* Boxíky pod mapou - srovnání vedle sebe */
.map-stats {
    display: flex;         /* Přepnuto na Flexbox */
    flex-wrap: wrap;       /* Na mobilu se dají pod sebe, pokud se nevejdou */
    gap: 20px;
    margin-top: 20px;
    justify-content: center; /* Vycentrování na střed */
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex: 1;               /* Každý boxík zabere stejné místo */
    min-width: 250px;      /* Minimální šířka, než se zalomí na mobilu */
    max-width: 400px;      /* Aby nebyly příliš široké na monitoru */
}

/* RESET KONFLIKTŮ - Vynutíme čistý štít pro dokumentaci */
.docs-global-wrapper * {
    transition: none !important; /* Vypne globální problikávání */
    box-sizing: border-box;
}

.docs-global-wrapper {
    margin-top: -20px; /* Kompenzace tvého padding-top v body */
    background: #fff;
}

.gitbook-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* LEVÝ SIDEBAR */
.docs-sidebar {
    width: 280px;
    height: calc(100vh - 80px); /* Odečte výšku tvého fixního navbaru */
    position: sticky;
    top: 80px;
    background: #f8f9fa;
    border-right: 1px solid #eef0f2;
    overflow-y: auto;
}

.sidebar-inner { padding: 20px 0; }
.search-area { padding: 0 20px 20px; }

.nav-folder-title {
    padding: 15px 20px 5px;
    font-size: 11px;
    font-weight: bold;
    color: #9daab6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.docs-nav-menu ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.docs-nav-menu li { margin: 0 !important; padding: 0 !important; }

.docs-nav-menu a {
    display: block;
    padding: 8px 20px;
    color: #3b454e !important;
    text-decoration: none !important;
    font-size: 14px;
}

.docs-nav-menu a:hover { background: #e6ecf1; }
.docs-nav-menu a.active {
    color: #3498db !important;
    background: #fff;
    border-right: 3px solid #3498db;
    font-weight: 600;
}

/* HLAVNÍ OBSAH */
.docs-main-content {
    flex: 1;
    padding: 40px 60px;
    min-width: 0;
}

.docs-article { max-width: 800px; margin: 0 auto; }
.docs-article h1 { font-size: 2.2rem; margin-bottom: 30px; }
.docs-article h2 { border-bottom: 1px solid #eee; padding-bottom: 10px; margin-top: 40px; }

/* PRAVÝ PANEL (TOC) */
.docs-toc {
    width: 240px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    padding: 40px 20px;
    border-left: 1px solid #f5f7f9;
}

#dynamic-toc h4 { font-size: 12px; color: #9daab6; text-transform: uppercase; margin-bottom: 15px; }
#dynamic-toc ul { list-style: none; padding: 0; border-left: 2px solid #f0f0f0; }
#dynamic-toc li { padding: 5px 15px; }
#dynamic-toc a { font-size: 13px; color: #666; text-decoration: none; }
#dynamic-toc a:hover { color: #3498db; }
#dynamic-toc .toc-h3 { padding-left: 30px; font-size: 12px; }

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0; width: 0;
}

.checkmark {
    position: absolute;
    top: 0; left: 0;
    height: 20px; width: 20px;
    background-color: #eee;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.checkbox-container:hover input ~ .checkmark { background-color: #ddd; }
.checkbox-container input:checked ~ .checkmark { background-color: #3498db; border-color: #3498db; }

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px; top: 3px;
    width: 5px; height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.checkbox-container input:checked ~ .checkmark:after { display: block; }
.custom-select-wrapper { position: relative; }
.custom-dropdown {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none; /* Schované, dokud se nezačne psát */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.dropdown-item:hover { background: #f8f9fa; color: #3498db; }
.dropdown-item.no-results { color: #888; font-style: italic; cursor: default; }
.album-status-hint {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}
.status-new { color: #e67e22; font-weight: bold; } /* Oranžová pro nové */
.status-exists { color: #27ae60; font-weight: bold; } /* Zelená pro existující */

/* Upravený dropdown aby nezakrýval status hned */
.custom-dropdown {
    top: 45px; /* Uprav podle výšky tvého inputu */
}