/**
 * Estilos do Pop-up Modal F5 (mod_custom_modal)
 * Compatível com Joomla 3.10.x e temas responsivos
 */

.modal-custom {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

.modal-custom-content {
    background-color: #ffffff;
    color: #333333;
    margin: 8% auto;
    padding: 24px 28px;
    border: none;
    width: 90%;
    max-width: 620px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.6;
}

.close-modal {
    position: absolute;
    right: 14px;
    top: 10px;
    color: #888888;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.close-modal:hover,
.close-modal:focus {
    color: #111111;
    transform: scale(1.1);
}

.modal-custom-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 8px;
}

.modal-custom-body img {
    max-width: 100%;
    height: auto;
}

.modal-custom-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.modal-custom-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #666666;
    user-select: none;
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.modal-custom-checkbox-label:hover {
    color: #222222;
}

.modal-custom-checkbox {
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #28a745;
}

.timer-bar {
    height: 5px;
    background: linear-gradient(90deg, #28a745, #20c997);
    width: 100%;
    animation: timerAnimation linear forwards;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 0 0 8px 8px;
}

@keyframes timerAnimation {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

@media (max-width: 768px) {
    .modal-custom-content {
        margin: 15% auto;
        padding: 20px;
        width: 92%;
    }

    .close-modal {
        right: 12px;
        top: 8px;
        font-size: 26px;
    }
}
