/* ==========================================================================
   Mededeling / Alert - Topbar
   ========================================================================== */

.hopmans-mededeling-topbar {
    position: relative;
    width: 100%;
    height: 40px;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    padding: 0 20px;
    box-sizing: border-box;
}

.hopmans-mededeling-topbar .hopmans-mededeling-title {
    font-weight: 700;
}

.hopmans-mededeling-topbar .hopmans-mededeling-message {
    font-weight: 400;
}

/* Hidden state for 'both' mode - topbar hidden until popup is closed */
.hopmans-mededeling-topbar.hopmans-topbar-hidden {
    display: none;
}

/* Responsive topbar */
@media (max-width: 600px) {
    .hopmans-mededeling-topbar {
        height: auto;
        min-height: 40px;
        padding: 8px 15px;
        font-size: 13px;
        flex-wrap: wrap;
        text-align: center;
    }
}

/* ==========================================================================
   Mededeling / Alert - Popup
   ========================================================================== */

.hopmans-mededeling-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.hopmans-mededeling-popup {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: hopmansFadeIn 0.3s ease;
}

@keyframes hopmansFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hopmans-popup-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: 24px !important;
    line-height: 32px !important;
    cursor: pointer;
    color: #666 !important;
    border-radius: 4px !important;
    transition: background 0.2s ease, color 0.2s ease;
    box-shadow: none !important;
}

.hopmans-popup-close:hover {
    background: #f0f0f0 !important;
    color: #333 !important;
}

.hopmans-mededeling-popup-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
}

.hopmans-mededeling-popup-message {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
}

.hopmans-popup-btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hopmans-popup-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Responsive popup */
@media (max-width: 480px) {
    .hopmans-mededeling-popup {
        padding: 25px 20px;
    }

    .hopmans-mededeling-popup-title {
        font-size: 20px;
    }

    .hopmans-mededeling-popup-message {
        font-size: 15px;
    }
}
