.rename-kb-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.rename-kb-modal {
  background: #1e1e1e;
  border-radius: 0;
  box-shadow: none;
  width: 500px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  color: #abb2bf;
}

.rename-kb-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #444;
  background: #2a2a2a;
}

.rename-kb-modal-header h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.rename-kb-modal-header .close-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #abb2bf;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.rename-kb-modal-header .close-btn:hover {
  color: #fff;
  background-color: #444;
}

.rename-kb-modal-header .close-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rename-kb-modal-body {
  padding: 20px;
  background: #1e1e1e;
}

.file-info {
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  border-left: 4px solid #4CAF50;
  background: #2a2a2a;
  border: 1px solid #444;
}

.file-info p {
  margin: 5px 0;
  color: #abb2bf;
  font-size: 14px;
}

.file-info p strong {
  color: #fff;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ddd;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background-color: #1e1e1e;
  color: #abb2bf;
  border: 2px solid #555;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group input:disabled {
  background-color: #2a2a2a;
  color: #888;
  cursor: not-allowed;
}

.error-message {
  background: #2a2a2a;
  color: #ff6b6b;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid #ff6b6b;
  font-size: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.modal-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-actions .cancel-btn {
  background: #666;
  color: white;
}

.modal-actions .cancel-btn:hover:not(:disabled) {
  background: #777;
}

.modal-actions .confirm-btn {
  background: #4CAF50;
  color: white;
}

.modal-actions .confirm-btn:hover:not(:disabled) {
  background: #45a049;
}

.modal-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 600px) {
  .rename-kb-modal {
    width: 95vw;
    margin: 20px;
  }
  
  .rename-kb-modal-body {
    padding: 15px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-actions button {
    width: 100%;
  }
}