.gameforge-chat {
  display: flex;
  height: 100%;
  background: var(--bg-primary, #f5f5f5);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gameforge-chat.embedded {
  border-radius: 0;
  box-shadow: none;
}

.gameforge-chat-sidebar {
  width: 260px;
  background: var(--bg-secondary, #ffffff);
  border-right: 1px solid var(--border-color, #e0e0e0);
  display: flex;
  flex-direction: column;
}

.gameforge-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary, #f5f5f5);
}

.project-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
  background: var(--bg-accent, #fafafa);
}

.project-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #333);
}

.loading,
.error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary, #666);
}

.error {
  flex-direction: column;
  gap: 16px;
}

.error button {
  padding: 8px 16px;
  background: var(--primary-color, #4CAF50);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.error button:hover {
  background: var(--primary-hover, #45a049);
}

.no-channel-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary, #999);
  font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
  .gameforge-chat-sidebar {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .gameforge-chat {
    flex-direction: column;
  }

  .gameforge-chat-sidebar {
    width: 100%;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
  }
}
