/* ==========================*/
/* EduDisplay Beheer License Banner CSS */
/* Update: 2026-08-20 */
/* ==========================*/
/* Hoort bij: includes/license-banner.html, layouts/base.html */

/* License warning banner — CSP-safe (no inline script/style injection) */

:root {
    --license-banner-offset: 0px;
}

body.has-license-banner {
    --license-banner-offset: 3.5rem;
}

#license-banner {
    position: fixed;
    top: var(--impersonation-banner-offset, 0px);
    left: 0;
    right: 0;
    z-index: 39;
    min-height: var(--license-banner-offset);
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    color: #fff;
    padding: 0;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #991b1b;
}

#license-banner.is-dismissed {
    display: none;
}

#license-banner .banner-flex {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    padding: 0 24px;
    min-height: 56px;
}

#license-banner .banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    flex-shrink: 0;
}

#license-banner .banner-center {
    display: flex;
    align-items: center;
    flex: 1 1 0%;
    padding: 0 16px;
    font-size: 1rem;
    text-align: left;
    min-width: 0;
    overflow-x: auto;
}

#license-banner .banner-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

#license-banner .banner-link {
    color: #fff;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

#license-banner .banner-link:hover {
    opacity: 0.8;
    color: #fff;
}

#license-banner .dismiss-button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

#license-banner .dismiss-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
    body.has-license-banner {
        --license-banner-offset: 5.5rem;
    }

    #license-banner .banner-flex {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
    }

    #license-banner .banner-center {
        padding: 8px 0;
    }

    #license-banner .banner-right {
        justify-content: flex-end;
        margin-top: 4px;
        flex-wrap: wrap;
    }
}
