/**
 * Confirm Dialog Styles
 * 确认对话框样式 - Glassmorphism design
 */

/* Backdrop */
.confirm-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Dialog Container */
.confirm-dialog {
    width: 90%;
    max-width: 400px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.confirm-dialog-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.confirm-dialog-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Body */
.confirm-dialog-body {
    padding: 1.25rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.confirm-dialog-body p {
    margin: 0;
}

/* Footer */
.confirm-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

/* Buttons */
.confirm-dialog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
    position: relative;
    z-index: 10002;
}

.confirm-dialog-btn:hover {
    background: var(--glass-hover);
    transform: translateY(-1px);
}

.confirm-dialog-btn:active {
    transform: translateY(0);
}

/* Primary Button (Confirm) */
.confirm-dialog-btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.confirm-dialog-btn-primary:hover {
    background: var(--accent-color);
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Danger Button (for destructive actions) */
.confirm-dialog-btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.confirm-dialog-btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .confirm-dialog {
        width: 95%;
        max-width: none;
        margin: 1rem;
    }
    
    .confirm-dialog-header {
        padding: 1rem 1.25rem;
    }
    
    .confirm-dialog-body {
        padding: 1rem 1.25rem;
    }
    
    .confirm-dialog-footer {
        padding: 0.875rem 1.25rem;
    }
    
    .confirm-dialog-btn {
        flex: 1;
        padding: 0.75rem 1rem;
    }
}
