/**
 * Vigthoria Critical Layout Fixes
 * Addresses specific layout issues while maintaining the original design
 * Version: 1.0.0 (May 2025)
 */

/* Dashboard content layout adjustment */
.dashboard-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 60px);
  overflow: hidden;
}

/* Fix sidebar width to prevent header element overlapping */
.dashboard-sidebar {
  width: 280px;
  max-width: 280px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Fix model cards to display full LLM names */
.model-card {
  width: 100%;
  overflow: hidden;
  margin-bottom: 8px;
}

.model-name {
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* Fix chat container to ensure message area and input form are visible */
.chat-container {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  height: calc(100% - 150px);
  overflow-y: auto;
}

.chat-form {
  height: 150px;
  min-height: 150px;
}

/* Fix templates container to prevent overflow */
.templates-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.templates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Fix dashboard panel to ensure proper display */
.dashboard-panel {
  width: 100%;
  padding: 10px;
  z-index: 10;
}

/* Make sure "ACTIVE MODEL" header is correctly positioned */
.active-model {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 15px;
}
