/* =============================================
   Shared Confirm Dialog
   ============================================= */

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1rem;
    animation: confirmFadeIn 0.15s ease-out;
}

@keyframes confirmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.confirm-dialog {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: confirmSlideIn 0.2s ease-out;
}

@keyframes confirmSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

body.dark-mode .confirm-dialog {
    background: #1e293b;
}

.confirm-dialog-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.confirm-icon-info {
    background: rgba(0, 180, 255, 0.1);
    color: #00b4ff;
}

.confirm-icon-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.confirm-icon-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.confirm-dialog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem;
}

body.dark-mode .confirm-dialog-title {
    color: #f1f5f9;
}

.confirm-dialog-message {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

body.dark-mode .confirm-dialog-message {
    color: #94a3b8;
}

.confirm-dialog-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.confirm-btn-cancel {
    padding: 0.7rem 1.5rem;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-btn-cancel:hover {
    background: #e2e8f0;
}

body.dark-mode .confirm-btn-cancel {
    background: #0f172a;
    color: #e2e8f0;
    border-color: #334155;
}

body.dark-mode .confirm-btn-cancel:hover {
    background: #334155;
}

.confirm-btn-confirm {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.confirm-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.confirm-btn-primary {
    background: linear-gradient(135deg, #00b4ff, #0099dd);
}

.confirm-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(0, 180, 255, 0.3);
}

.confirm-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.confirm-btn-danger:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.confirm-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.confirm-btn-warning:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
