.mrbrabus-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.73) !important;
    display: none; /* OSTAJE none */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Kada je popup prikazan */
.mrbrabus-popup-overlay.active {
    display: flex; /* SAMO display: flex kada je aktivan */
}

/* Container koji drži i popup i dugme za zatvaranje */
.popup-container {
    position: relative;
    padding: 15px;
}
.mrbrabus-popup {
    position: relative;
    padding: 20px;
    border-radius: 10px;
    background: white;
    z-index: 10000;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mrbrabus-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 2px solid #333;
    border-radius: 50%;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    margin: 0;
    z-index: 10001;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mrbrabus-popup-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: #333;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mrbrabus-popup-close:active {
    transform: scale(0.95) rotate(90deg);
}

.mrbrabus-popup-content {
    position: relative;
    z-index: 2;
}

/* Prevent body scroll when popup is open */
body.mrbrabus-popup-open {
    overflow: hidden;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .popup-container {
        padding: 10px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .mrbrabus-popup {
        width: 95% !important;
        max-height: 85vh;
        margin: 0 auto;
    }
    
    .mrbrabus-popup-close {
        top: -12px;
        right: -12px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}