/* Professional Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: var(--card, #ffffff);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-container {
    transform: scale(1) translateY(0);
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes popupSlideOut {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border, #e5e5e5);
    position: relative;
}

.popup-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.popup-container.popup-success .popup-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.popup-container.popup-error .popup-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.popup-container.popup-warning .popup-icon {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

.popup-container.popup-info .popup-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.popup-container.popup-question .popup-icon {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

.popup-title {
    flex: 1;
    font-size: 1.25em;
    font-weight: 700;
    color: var(--text, #1a1a1a);
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted, #888);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.popup-close:hover {
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text, #1a1a1a);
}

.popup-body {
    padding: 25px;
}

.popup-message {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-secondary, #666);
    margin: 0;
    text-align: right;
}

.popup-footer {
    display: flex;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid var(--border, #e5e5e5);
    justify-content: flex-end;
}

.popup-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.popup-btn-primary {
    background: var(--gold, #d4af37);
    color: #1a1a1a;
}

.popup-btn-primary:hover {
    background: var(--gold-dark, #b8960c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.popup-btn-secondary {
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text, #1a1a1a);
}

.popup-btn-secondary:hover {
    background: var(--border, #e5e5e5);
}

/* Dark mode support */
[data-theme="dark"] .popup-container {
    background: var(--card, #1f1f1f);
    color: var(--text, #f5f5f5);
}

[data-theme="dark"] .popup-title {
    color: var(--text, #f5f5f5);
}

[data-theme="dark"] .popup-message {
    color: var(--text-secondary, #a0a0a0);
}

[data-theme="dark"] .popup-btn-secondary {
    background: var(--bg-secondary, #2a2a2a);
    color: var(--text, #f5f5f5);
}

[data-theme="dark"] .popup-btn-secondary:hover {
    background: var(--border, #333);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .popup-header {
        padding: 15px 20px;
    }
    
    .popup-body {
        padding: 20px;
    }
    
    .popup-footer {
        padding: 15px 20px;
        flex-direction: column-reverse;
    }
    
    .popup-btn {
        width: 100%;
    }
}












