/* 自定义确认对话框样式 */
.custom-dialog-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: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-dialog {
    background: var(--background);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.custom-dialog-overlay.active .custom-dialog {
    transform: translateY(0);
    opacity: 1;
}

.custom-dialog-header {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 15px 20px;
    color: white;
    position: relative;
}

.custom-dialog-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.custom-dialog-body {
    padding: 25px 20px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
}

.custom-dialog-footer {
    display: flex;
    padding: 15px 20px;
    border-top: 1px solid var(--gray);
    justify-content: flex-end;
    gap: 10px;
}

.custom-dialog-btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.custom-dialog-btn-cancel {
    background: var(--gray);
    color: var(--text);
}

.custom-dialog-btn-cancel:hover {
    background: var(--light-gray);
}

.custom-dialog-btn-confirm {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
}

.custom-dialog-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* 动画效果 */
@keyframes pulse-light {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

.custom-dialog-btn-confirm {
    animation: pulse-light 2s infinite;
}
