:root {
    --app-header-h: 72px;
}

.app-header {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    max-width: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--color-primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 2010;
}

    .app-header .left {
        justify-self: start;
    }

    .app-header .middle {
        justify-self: center;
    }


#headerTitle {
    color: var(--color-text-primary);
    font-size: 18px;
    font-weight: bold;
}

.app-header .right button {
    padding: 0.4rem 0.75rem;
    cursor: pointer;
}

    .app-header .user {
        margin-right: 0.75rem;
        opacity: 0.85;
        text-decoration: none;
    }

.app-header .right {
    display: flex;
    justify-self: end;
    align-items: center;
    height: 100%;
    gap: 10px;
}

/* Icon button */
.icon-btn {
    position: relative;
    top: -6px;
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px; /* kies 12px of 50% maar 1 */
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-text-primary);
    cursor: pointer;
    padding: 0; /* belangrijk bij <button> */
    line-height: 0; /* voorkomt verticale text baseline issues */
    transition: transform 160ms cubic-bezier(.4,0,.2,1), background 160ms ease;
}

    .icon-btn:hover {
        transform: scale(1.15);
        background: rgba(255, 255, 255, 0.22);
    }

    .icon-btn:active {
        transform: scale(1.05);
    }

    /* Zorg dat svg echt gecentreerd is */
    .icon-btn svg, .user svg {
        display: block; /* belangrijk: geen inline baseline */
        width: 20px;
        height: 20px;
        stroke-width: 2;
        color: white;
    }
#userName{
    color:white;
}
/* Username */
.app-header .user {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 6px;
    opacity: 0.9;
}

[hidden] {
    display: none !important;
}


@media (max-width: 480px) {
    .app-header .middle {
        margin: 0 10px;
        text-align: center;
        align-items: baseline;
        
    }

    #userName{
        display:none;
    }
}
#userLabel svg {
    transform: translateX(-1.8px);
}

#header-placeholder {
    width: 100%;
    margin: 0;
    min-height: var(--app-header-h, 72px);
}
