.sidebar {
  position: fixed;
  top: 5%; 
  left: 0;
  height: calc(100vh - 60px); 
  width: 400px;
  background-color: var(--color-background-layout-main);
  box-shadow: var(--shadow-container);
  transition: transform 0.3s ease;
  z-index: 999; 
  overflow-y: auto;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-content {
  padding: 20px;
}

.sidebar-toggle {
  position: fixed;
  left: 400px;
  top: 80px; 
  background: var(--color-background-button-normal-default);
  border: 1px solid var(--color-border-button-normal-default);
  border-left: none;
  padding: 10px;
  cursor: pointer;
  z-index: 999; 
  transition: left 0.3s ease;
}

.sidebar.collapsed + .sidebar-toggle {
  left: 0;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.refresh-container,
.status-check-container {
  padding: 15px;
  border-radius: 4px;
}

.refresh-button,
.status-check-button {
  width: 100%;
  background-color: #0972d3; 
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
  transition: background-color 0.1s ease;
}

.refresh-button:hover,
.status-check-button:hover {
  background-color: #033160; 
}

.refresh-button:disabled,
.status-check-button:disabled {
  background-color: #033160;
  color: #9ba7b6; 
  cursor: not-allowed;
}

.refresh-button:active,
.status-check-button:active {
  background-color: #044281; 
}

.status-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
}

.status-message.success {
  background-color: var(--color-background-status-success);
  color: var(--color-text-status-success);
}

.status-message.error {
  background-color: var(--color-background-status-error);
  color: var(--color-text-status-error);
}

.job-ids {
  margin-top: 10px;
  font-size: 0.9em;
  color: var(--color-text-body-secondary);
}

.statistics-details {
  margin-top: 10px;
  font-size: 0.9em;
  color: var(--color-text-body-secondary);
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8em;
  font-weight: bold;
}

.status-badge.completed {
  background-color: var(--color-background-status-success);
  color: var(--color-text-status-success);
}

.status-badge.in_progress {
  background-color: var(--color-background-status-info);
  color: var(--color-text-status-info);
}

.status-badge.failed {
  background-color: var(--color-background-status-error);
  color: var(--color-text-status-error);
}

.job-status-details {
  margin-top: 15px;
}

.status-section {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid var(--color-border-divider-default);
  border-radius: 4px;
  background-color: var(--color-background-container-content);
}

.status-section h5 {
  margin: 0 0 10px 0;
  color: var(--color-text-heading-default);
}

/* Guardrail Container CSS */
.guardrail-container {
  padding: 1rem;
}

.guardrail-container textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
}

/* Inference Container CSS */
.inference-container {
  padding: 1rem;
}

.inference-container input[type="number"] {
  width: 100%;
}

.inference-container input[type="number"]::-webkit-inner-spin-button,
.inference-container input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Model ID validation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s;
}