/* 重命名对话框样式 */
.rename-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.rename-dialog {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    animation: slideIn 0.3s ease;
}

.rename-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #E2E8F0;
}

.rename-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.rename-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.rename-close-btn:hover {
    background: #F1F5F9;
    color: var(--text-primary);
}

.rename-close-btn svg {
    width: 18px;
    height: 18px;
}

.rename-dialog-body {
    padding: 24px;
}

.rename-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #F8FAFC;
    border-radius: 8px;
    margin-bottom: 20px;
}

.rename-file-info svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.rename-current-name {
    font-size: 14px;
    color: var(--text-secondary);
    word-break: break-all;
}

.rename-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rename-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.rename-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
}

.rename-input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.rename-input.error {
    border-color: #DC2626;
    background: #FEF2F2;
}

.rename-input.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.rename-error {
    font-size: 13px;
    color: #DC2626;
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rename-dialog-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #E2E8F0;
    justify-content: flex-end;
}

.rename-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.rename-btn svg {
    width: 18px;
    height: 18px;
}

.rename-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
}

.rename-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.rename-btn-primary:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rename-btn-secondary {
    background: #F1F5F9;
    color: var(--text-secondary);
}

.rename-btn-secondary:hover {
    background: #E2E8F0;
    color: var(--text-primary);
}

/* 响应式设计 */
@media (max-width: 640px) {
    .rename-dialog {
        width: 95%;
        margin: 20px;
    }

    .rename-dialog-footer {
        flex-direction: column-reverse;
    }

    .rename-btn {
        justify-content: center;
    }
}

/* 设置 Content-Type 对话框的提示样式 */
.rename-hint {
    margin-top: 16px;
    padding: 12px 16px;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 8px;
    font-size: 13px;
    color: #0369A1;
    line-height: 1.8;
}

.rename-hint .mimetype-suggestion {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px;
    background: #E0F2FE;
    border: 1px solid #BAE6FD;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Courier New', monospace;
}

.rename-hint .mimetype-suggestion:hover {
    background: #BAE6FD;
    border-color: #7DD3FC;
    transform: translateY(-1px);
}

