/* ===== MODULE POPUP STYLES ===== */
.module-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.module-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.module-popup {
    background-color: #F9FAFB;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    transition: all 0.4s ease;
    opacity: 0;
}

.module-popup-overlay.active .module-popup {
    transform: translateY(0);
    opacity: 1;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #4CAF91;
    color: white;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.popup-content {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.popup-details {
    display: none;
}

.popup-details.active {
    display: block;
}

.popup-details h4 {
    font-size: 1.8rem;
    color: #4CAF91;
    margin-bottom: 15px;
}

.popup-details h5 {
    font-size: 1.2rem;
    color: #333333;
    margin: 20px 0 10px;
}

.popup-details p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555555;
}

.popup-details ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.popup-details ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
    color: #555555;
}

.popup-details ul li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #4CAF91;
}

/* Responsive styles */
@media (max-width: 768px) {
    .module-popup {
        width: 95%;
    }
    
    .popup-title {
        font-size: 1.3rem;
    }
    
    .popup-details h4 {
        font-size: 1.5rem;
    }
}
