/* Custom Modals - Premium Design */
:root {
    --modal-bg: rgba(255, 255, 255, 0.95);
    --modal-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    --modal-radius: 24px;
    --primary-modal: #10b981;
    --warning-modal: #f59e0b;
    --error-modal: #ef4444;
    --info-modal: #3b82f6;
}

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.custom-modal-card {
    background: var(--modal-bg);
    width: 90%;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: var(--modal-radius);
    box-shadow: var(--modal-shadow);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.custom-modal-overlay.active .custom-modal-card {
    transform: scale(1);
    opacity: 1;
}

.custom-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: 50%;
    background: #f1f5f9;
}

.custom-modal-icon.success { color: var(--primary-modal); background: #ecfdf5; }
.custom-modal-icon.warning { color: var(--warning-modal); background: #fffbeb; }
.custom-modal-icon.error   { color: var(--error-modal); background: #fef2f2; }
.custom-modal-icon.info    { color: var(--info-modal); background: #eff6ff; }

.custom-modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
}

.custom-modal-message {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
    white-space: pre-wrap;
}

.custom-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.custom-modal-btn {
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.custom-modal-btn-primary {
    background: var(--primary-modal);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.custom-modal-btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.custom-modal-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.custom-modal-btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Specific for Error/Delete */
.custom-modal-btn-danger {
    background: var(--error-modal);
    color: white;
}

.custom-modal-btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}
