/* --- EdCare Modular Popup Styling --- */
.ed-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 25, 56, 0.6); /* Darker blue-tinted overlay */
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ed-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ed-popup-card {
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: scale(0.9) translateY(30px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ed-popup-overlay.active .ed-popup-card {
    transform: scale(1) translateY(0);
}

.ed-popup-icon-container {
    width: 70px;
    height: 70px;
    background: rgba(var(--ed-color-theme-primary-rgb), 0.1);
    color: var(--ed-color-theme-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px; /* Adjust icon size */
}

.ed-popup-title {
    font-family: var(--ed-ff-heading);
    font-size: 24px;
    font-weight: 700;
    color: #1b1b1b;
    margin-bottom: 12px;
}

.ed-popup-message {
    font-family: var(--ed-ff-body);
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.ed-popup-footer {
    display: flex;
    gap: 12px;
}

.ed-popup-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-positive {
    background: var(--ed-color-theme-primary);
    color: white;
}

.btn-positive:hover {
    filter: brightness(1.1);
}

.btn-negative {
    background: #f1f3f7;
    color: #666;
}

.btn-negative:hover {
    background: #e6e9ef;
}