/* ==========================================================================
   MODERN UI - Consistent Modal Popup Styles
   ONLY for Modern UI implementations (RecruiterUser, AdminModern, EmployerUserModern, EmployerLayout)
   NOT for old UI (EmployerUser, Admin, JobseekerUser)
   ========================================================================== */

/* Standard Modal Popup Overlay */
.modern-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modern-modal-overlay.active {
    display: flex;
}

/* Standard Modal Popup Card */
.modern-modal-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modern-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modern-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.modern-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: #64748b;
    padding: 0.25rem;
    transition: color 0.15s ease;
}

.modern-modal-close:hover {
    color: #1e293b;
}

.modern-modal-body {
    padding: 1.5rem;
}

.modern-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Login Popup Specific Styles */
#loginPopup.modern-modal-overlay {
    z-index: 2000;
}

#loginPopup .modern-modal-card {
    max-width: 420px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-modal-card {
        width: 95%;
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .modern-modal-header {
        padding: 1rem;
    }
    
    .modern-modal-title {
        font-size: 1.1rem;
    }
    
    .modern-modal-body {
        padding: 1rem;
    }
    
    .modern-modal-footer {
        padding: 0.75rem 1rem;
        flex-direction: column;
    }
    
    .modern-modal-footer button {
        width: 100%;
    }
}

