/**
 * 审核面板 - 批量重命名确认对话框样式
 * 独立组件样式，仅用于审核面板
 * 
 * 命名规范：
 * - 所有类名使用 review-confirm- 前缀
 * - 避免与其他面板样式冲突
 * 
 * 字体规范：
 * - 使用 Microsoft YaHei（微软雅黑）
 * 
 * 主题：深色主题，使用项目统一的CSS变量
 */

/* ==================== 遮罩层 ==================== */
.review-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    animation: review-confirm-fade-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-confirm-overlay.active {
    display: flex;
}

/* ==================== 对话框容器 ==================== */
.review-confirm-dialog {
    background: var(--bg-card, #1e1e1e);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    min-width: 480px;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: review-confirm-scale-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

/* ==================== 对话框头部 ==================== */
.review-confirm-header {
    padding: 24px 28px 20px 28px;
    border-bottom: 2px solid var(--border-primary, #333333);
    background: linear-gradient(180deg, 
        var(--bg-card, #1e1e1e) 0%, 
        var(--bg-secondary, #1a1a1a) 100%);
    display: flex;
    align-items: center;
    gap: 14px;
}

.review-confirm-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.review-confirm-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.review-confirm-icon.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.review-confirm-icon svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.review-confirm-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin: 0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==================== 对话框内容 ==================== */
.review-confirm-body {
    padding: 24px 28px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-card, #1e1e1e);
}

.review-confirm-message {
    font-size: 14px;
    color: var(--text-secondary, #b3b3b3);
    line-height: 1.7;
    margin: 0 0 18px 0;
    white-space: pre-line;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

/* 文件信息区域 */
.review-confirm-file-info {
    background: linear-gradient(135deg, 
        var(--bg-secondary, #1a1a1a) 0%, 
        var(--bg-tertiary, #2a2a2a) 100%);
    border: 1px solid var(--border-primary, #333333);
    border-radius: var(--radius-md, 8px);
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.review-confirm-file-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.review-confirm-file-row:last-child {
    margin-bottom: 0;
}

.review-confirm-file-label {
    color: var(--text-muted, #808080);
    min-width: 75px;
    font-weight: 500;
}

.review-confirm-file-value {
    color: var(--text-primary, #ffffff);
    font-weight: 600;
    word-break: break-all;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==================== 对话框底部 ==================== */
.review-confirm-footer {
    padding: 18px 28px;
    border-top: 2px solid var(--border-primary, #333333);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: linear-gradient(180deg, 
        var(--bg-secondary, #1a1a1a) 0%, 
        var(--bg-tertiary, #2a2a2a) 100%);
}

.review-confirm-btn {
    padding: 11px 28px;
    border: none;
    border-radius: var(--radius-md, 8px);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    outline: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.review-confirm-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.review-confirm-btn:hover::before {
    width: 200%;
    height: 200%;
}

.review-confirm-btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.review-confirm-btn-cancel {
    background: linear-gradient(135deg, 
        var(--bg-hover, #2d2d2d) 0%, 
        var(--bg-active, #3a3a3a) 100%);
    color: var(--text-primary, #ffffff);
    border: 1px solid var(--border-secondary, #404040);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.review-confirm-btn-cancel:hover {
    background: linear-gradient(135deg, 
        var(--bg-active, #3a3a3a) 0%, 
        #454545 100%);
    border-color: #555555;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.review-confirm-btn-cancel:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.review-confirm-btn-confirm {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: 1px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3),
                0 0 20px rgba(245, 158, 11, 0.15);
}

.review-confirm-btn-confirm:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #fbbf24;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4),
                0 0 30px rgba(245, 158, 11, 0.25);
    transform: translateY(-1px);
}

.review-confirm-btn-confirm:active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* ==================== 动画 ==================== */
@keyframes review-confirm-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes review-confirm-scale-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes review-confirm-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes review-confirm-scale-out {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.9);
        opacity: 0;
    }
}

/* ==================== 关闭动画 ==================== */
.review-confirm-overlay.closing {
    animation: review-confirm-fade-out 0.2s ease-out;
}

.review-confirm-overlay.closing .review-confirm-dialog {
    animation: review-confirm-scale-out 0.2s ease-out;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 640px) {
    .review-confirm-dialog {
        min-width: 90%;
        max-width: 90%;
        margin: 0 5%;
    }
    
    .review-confirm-header {
        padding: 16px 20px;
    }
    
    .review-confirm-body {
        padding: 20px;
    }
    
    .review-confirm-footer {
        padding: 12px 20px;
        flex-direction: column-reverse;
    }
    
    .review-confirm-btn {
        width: 100%;
    }
}

/* ==================== 滚动条样式 ==================== */
.review-confirm-body::-webkit-scrollbar {
    width: 8px;
}

.review-confirm-body::-webkit-scrollbar-track {
    background: var(--bg-secondary, #1a1a1a);
    border-radius: 4px;
}

.review-confirm-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        var(--bg-active, #3a3a3a) 0%, 
        var(--bg-hover, #2d2d2d) 100%);
    border-radius: 4px;
    border: 2px solid var(--bg-secondary, #1a1a1a);
}

.review-confirm-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        #454545 0%, 
        var(--bg-active, #3a3a3a) 100%);
}
