.simli-chat {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.video-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.chat-controls {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#chat-form {
  display: flex;
  gap: 0.5rem;
}

#chat-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  background: white;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

#chat-input:focus {
  outline: none;
  border-color: #ffd200;
  box-shadow: 0 0 0 2px rgba(255, 210, 0, 0.2);
}

button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: #ffd200;
  color: #000;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:hover {
  background: #e6bd00;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.error {
  color: red;
  margin-top: 0.5rem;
}

.connection-status {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #000;
  font-weight: 500;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ff4444;
  border: 2px solid rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.status-item.connected .status-dot {
  background-color: #00c851;
  border-color: rgba(0, 0, 0, 0.1);
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.loading-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-overlay p {
  color: white;
  margin: 0;
  text-align: center;
}

.start-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.start-overlay.hidden {
  display: none;
}

.start-button {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background: #ffd200;
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.start-button:hover {
  background: #e6bd00;
}

.retry-status {
  color: #ffd200;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.retry-button {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  background: #ffd200;
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none; /* Hidden by default */
}

.retry-button:hover {
  background: #e6bd00;
  transform: translateY(-1px);
}

.loading-overlay.visible .retry-button {
  margin-top: 1rem;
}

.connection-note {
  color: #ffd200;
  font-size: 0.85rem;
  margin: 0.5rem 0;
  text-align: center;
  opacity: 0.9;
  max-width: 80%;
}

.loading-overlay p.connection-note {
  color: #ffd200; /* Override the default white color for loading overlay text */
}
