/* Popup Base Styles - easily themeable */
.crm-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crm-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.crm-popup-content-wrap {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 100000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.crm-popup-size-small .crm-popup-content-wrap { width: 400px; max-width: 90%; }
.crm-popup-size-medium .crm-popup-content-wrap { width: 600px; max-width: 90%; }
.crm-popup-size-large .crm-popup-content-wrap { width: 800px; max-width: 90%; }

.crm-popup-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.crm-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: #666;
}

.crm-popup-close:hover {
    color: #000;
}

/* Animations */
.crm-popup-anim-fade {
    animation: crmFadeIn 0.3s ease-in-out;
}
@keyframes crmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.crm-popup-anim-slide .crm-popup-content-wrap {
    animation: crmSlideIn 0.3s ease-out;
}
@keyframes crmSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
