﻿.custom-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 0; /* zmenšeno */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.logo-img {
    max-height: 150px; /* větší logo */
    height: auto;
    width: auto;
    display: block;
    transform: translateY(10px) scale(1.1); /* lehce posuneme dolů a zvětšíme */
    transition: transform 0.3s ease;
    object-fit: contain;
    max-width: 100%;
    pointer-events: none; /* neovlivňuje interakce */
}

.navbar-brand {
    line-height: 0;
    overflow: visible;
    display: flex;
    align-items: center;
}


    .logo-img:hover {
        transform: scale(1.05);
    }

/* === Navigace === */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    font-size: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem; /* zmenšeno */
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

    .nav-link:hover {
        background-color: #f8f9fa;
        color: #000;
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
        transform: translateY(-2px);
    }

@media (max-width: 768px) {
    .logo-img {
        max-height: 100px;
        transform: scale(1) translateY(0);
    }
}


/* === Mobilní verze === */
@media (max-width: 768px) {
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        padding: 0 1rem;
        overflow: hidden;
    }


    .logo-img {
        max-height: 80px;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 0.5rem 0.75rem;
    }
}

.admin-icon-link {
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 1100;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .admin-icon-link:hover {
        opacity: 0.9;
        transform: scale(1.05);
    }

.admin-icon {
    height: 64px;
    width: 64px;
    object-fit: contain;
}

.user-panel-wrapper {
    position: relative;
    display: inline-block;
}

.user-trigger {
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    color: #444;
    transition: background-color 0.2s ease;
}

    .user-trigger:hover {
        background-color: #f1f1f1;
    }

.user-popup {
    min-width: 260px;
    border-radius: 10px;
    background-color: #fff;
}

.avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #eaeaea;
    background-image: url('/images/avatar-placeholder.png');
    background-size: cover;
    background-position: center;
}


    .user-panel-wrapper:hover .user-popup,
    .user-popup:hover {
        display: block;
    }

.user-card {
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.user-role {
    margin: 0;
    font-size: 0.8rem;
    color: #777;
}

.user-actions .btn {
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #333;
    color: white;
    border-color: #000;
}

.btn-light:hover {
    background-color: #eaeaea;
}

.user-panel-wrapper {
    position: relative; /* jistota, aby menu drželo směr */
}

.dropdown-menu.user-popup {
    right: 0 !important;
    left: auto !important;
    min-width: 260px;
}
