/* Scrollující tip text */
.scrolling-tip-container {
    max-width: 400px;
    overflow: hidden;
    height: 24px;
    position: relative;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(0,123,255,0.1), rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 2px 8px;
    border: 1px solid rgba(0,123,255,0.2);
}

.scrolling-tip {
    display: flex;
    align-items: center;
    height: 100%;
    animation: scrollTips 25s infinite linear;
}

.tip-text {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.875rem;
    color: #212529;
    font-weight: 500;
    margin-right: 100px;
    opacity: 1;
}

/* Odstraněny animace delay pro jednotlivé tipy */
/* .tip-text[data-tip="1"] { animation-delay: 0s; } */
/* .tip-text[data-tip="2"] { animation-delay: 5s; } */
/* .tip-text[data-tip="3"] { animation-delay: 10s; } */
/* .tip-text[data-tip="4"] { animation-delay: 15s; } */
/* .tip-text[data-tip="5"] { animation-delay: 20s; } */

@keyframes scrollTips {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Odstraněna animace fadeInOut */
/* @keyframes fadeInOut {
    0%, 80%, 100% { opacity: 0; }
    10%, 70% { opacity: 1; }
} */

/* Responzivní skrytí na menších obrazovkách */
@media (max-width: 991px) {
    .scrolling-tip-container {
        display: none !important;
    }
}

/* NOVÉ: Tmavý režim - lepší viditelnost textu */
@media (prefers-color-scheme: dark) {
    .tip-text {
        color: #ffffff !important;
    }
    
    .scrolling-tip-container {
        background: linear-gradient(90deg, rgba(0,0,0,0.2), rgba(0,123,255,0.3), rgba(0,0,0,0.2));
        border-color: rgba(0,123,255,0.4);
    }
}

/* Alternativní řešení - vždy tmavý text pro lepší čitelnost */
@media (prefers-color-scheme: light) {
    .tip-text {
        color: #212529 !important;
    }
}

/* Hover efekt pro zastavení animace */
.scrolling-tip-container:hover .scrolling-tip {
    animation-play-state: paused;
}

.scrolling-tip-container:hover .tip-text {
    animation-play-state: paused;
}

/* Admin status styly */
.admin-status-container {
    position: relative;
    z-index: 1100; /* Vyšší než mapa */
}

.admin-status-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 1101; /* Zajištění zobrazení nad mapou */
}

.admin-status-badge:hover {
    background: linear-gradient(135deg, #218838, #1fa187);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.admin-status-badge i {
    margin-right: 6px;
    font-size: 1rem;
}

.admin-username {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.admin-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1102; /* Nejvyšší z-index pro dropdown */
    margin-top: 8px;
}

.admin-status-badge:hover .admin-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-link {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.admin-link:last-child {
    border-bottom: none;
}

.admin-link:hover {
    background: #f8f9fa;
    color: #0d6efd;
    text-decoration: none;
}

.admin-link.logout:hover {
    background: #fee;
    color: #dc3545;
}

.admin-link i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.admin-login-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.admin-login-link:hover {
    color: #0d6efd;
    border-color: #0d6efd;
    text-decoration: none;
    background: rgba(13, 110, 253, 0.05);
}

.admin-login-link i {
    margin-right: 6px;
}

/* Responsivní úpravy */
@media (max-width: 768px) {
    .admin-status-badge,
    .admin-login-link {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .admin-username {
        display: none;
    }
    
    .admin-dropdown {
        right: -10px;
        min-width: 150px;
        z-index: 1102; /* Zachování vysokého z-index i na mobilu */
    }
}

@media (max-width: 480px) {
    .admin-status-container,
    .admin-login-container {
        margin-right: 8px !important;
        z-index: 1100; /* Zajištění zobrazení nad mapou i na malých obrazovkách */
    }
}