:root {
  /* Colores principales */
  --bg-primary: #0f0f23;
  --surface-primary: #1a1a2e;
  --surface-secondary: #16213e;
  --surface-elevated: rgba(26, 26, 46, 0.95);
  --surface-hover: #2d2d5a;
  --surface-disabled: #1a1a2e;
  
  /* Bordes */
  --border-primary: rgba(255, 255, 255, 0.2);
  --border-secondary: rgba(255, 255, 255, 0.15);
  --border-hover: rgba(99, 102, 241, 0.5);
  --border-light: rgba(255, 255, 255, 0.1);
  
  /* Texto  */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-disabled: rgba(255, 255, 255, 0.4);
  --text-placeholder: rgba(255, 255, 255, 0.5);
  
  /* Colores de acento */
  --accent-primary: #6366f1;
  --accent-primary-alpha: rgba(99, 102, 241, 0.2);
  --accent-hover: #5b5ee7;
  
  /* Colores de error  */
  --error-bg: #dc2626;
  --error-hover: #b91c1c;
  --error-text: #ffffff;
  --error-border: #dc2626;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #6366f1, #a855f7);
  
  /* Radios */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Layout Principal  */
.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
}

.main-flex-content {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  position: relative;
}

.main-flex-content > .chat-sidebar {
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  width: 440px !important;
  min-width: 320px;
  max-width: 520px;
  height: auto !important;
  z-index: 1 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0;
  flex-shrink: 0;
  flex-grow: 0;
}

.main-flex-content > .config-sidebar {
  position: relative !important;
  right: 0 !important;
  top: 0 !important;
  width: 440px !important;
  min-width: 320px;
  max-width: 520px;
  height: auto !important;
  z-index: 1 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0;
  flex-shrink: 0;
  flex-grow: 0;
}

.main-flex-content > .messages-container,
.main-flex-content > .messages-list,
.main-flex-content > div {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}


/* Área de Input centrada */
.input-area {
  width: 100%;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  padding: 12px 0 !important;
  border-top: none !important;
  background: var(--surface-elevated);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: center; /* Centrar el input */
  border-radius: 12px;
}

.input-area-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-bottom: 16px;
}

.input-area-wrapper > * {
  max-width: 700px; /* Puedes ajustar este valor */
  width: 100%;
}

.message-form {
  max-width: 900px; /* Mismo ancho que los mensajes */
  width: 100%;
}

.input-container {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 6px;
}

.message-textarea {
  flex: 1;
  resize: none;
  border: 2px solid var(--border-secondary); 
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  background: var(--surface-secondary); 
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 56px;
  max-height: 200px;
  overflow-y: auto;
  transition: all 0.2s ease;
  font-family: inherit;
}

.message-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-alpha);
  background: var(--surface-primary); /* Fondo más claro al enfocar */
}

.message-textarea::placeholder {
  color: var(--text-placeholder);
  font-size: 0.95rem;
}

.send-button {
  width: 56px;
  height: 56px;
  border: 2px solid var(--accent-primary); 
  border-radius: var(--radius-xl);
  background: var(--accent-primary);
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--accent-primary-alpha);
}

.send-button:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-primary-alpha);
}

.send-button:disabled {
  background: var(--surface-disabled);
  border-color: var(--border-secondary);
  color: var(--text-disabled);
  cursor: not-allowed;
  box-shadow: none;
}

.send-button.stop {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error-text);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.send-button.stop:hover {
  background: var(--error-hover);
  border-color: var(--error-hover);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Sidebars con bordes más visibles */
.chat-sidebar,
.config-sidebar {
  position: fixed;
  top: 0;
  height: 100vh;
  background: var(--surface-elevated);
  border: 2px solid var(--border-primary); 
  z-index: 100;
  padding: 2rem;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0,0,0,0.2);
  /* Transición suave */
  transition: transform 0.3s ease;
}

.chat-sidebar {
  left: 0;
  width: 440px;
  height: 100vh;
  background: var(--surface-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-primary);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  color: var(--text-primary);
  position: fixed;
  top: 0;
  z-index: 1000;
  transform: translateX(-100%);
  box-shadow: 0 0 30px rgba(0,0,0,0.2);
  
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--surface-variant) transparent;
}

.chat-sidebar.visible {
  transform: translateX(0);
}

.config-sidebar {
  right: 0;
  width: 440px;
  /* Oculto por defecto */
  transform: translateX(100%);
}

.config-sidebar.visible {
  transform: translateX(0);
}

/* Overlay para cerrar sidebar */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 1;
  visibility: visible;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-secondary);
}

.sidebar-header h3 {
  margin: 0;
  color: var(--accent-primary);
  font-size: 1.4rem;
  font-weight: 600;
}

.close-btn {
  background: var(--error-bg);
  border: 2px solid var(--error-border); 
  color: var(--error-text);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.close-btn:hover {
  background: var(--error-hover);
  border-color: var(--error-hover);
}

/* Chat List */
.chat-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-item {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #23272f 70%, #3A455B 100%);
  border: 2px solid var(--border-secondary); 
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
}

.chat-item:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px #b983ff33;
  background: linear-gradient(90deg, #3A455B 70%, #b983ff 100%);
}


.chat-name-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 1rem 1.25rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
  font-weight: 500;
}

.chat-name-btn:hover {
  background: var(--surface-hover);
  color: var(--accent-primary);
}

/* Formularios */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-primary); 
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: var(--surface-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-alpha);
  background: var(--surface-primary);
}

.form-control.textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.range-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: var(--surface-secondary);
  border: 2px solid var(--border-secondary);
  border-radius: 4px;
  outline: none;
  margin: 0.5rem 0;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; 
  height: 24px;
  background: var(--accent-primary);
  border: 2px solid white; 
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.range-input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--accent-primary);
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.range-labels span {
  font-weight: 500;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 2px solid transparent; /* Borde por defecto */
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.btn-primary {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  box-shadow: 0 2px 8px var(--accent-primary-alpha);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-primary-alpha);
}

.btn-danger {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error-text);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
  background: var(--error-hover);
  border-color: var(--error-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Animaciones y efectos */
.typing-indicator {
  display: flex;
  gap: 6px;
  padding: 1.5rem 0;
  justify-content: center;
}

.typing-indicator span {
  width: 10px;
  height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* Estilos para código inline y bloques */
.inline-code {
  background: var(--surface-secondary);
  color: var(--accent-primary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.9em;
  border: 1px solid var(--border-secondary);
}

/* Mensajes con código */
.assistant-message p:last-child {
  margin-bottom: 0;
}

.assistant-message pre {
  margin: 1rem 0;
}

.assistant-message ul, 
.assistant-message ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.assistant-message li {
  margin: 0.25rem 0;
}

.assistant-message h1,
.assistant-message h2,
.assistant-message h3,
.assistant-message h4,
.assistant-message h5,
.assistant-message h6 {
  margin: 1rem 0 0.5rem 0;
  color: var(--text-primary);
}

.assistant-message h1 { font-size: 1.5rem; }
.assistant-message h2 { font-size: 1.3rem; }
.assistant-message h3 { font-size: 1.2rem; }
.assistant-message h4 { font-size: 1.1rem; }

.assistant-message blockquote {
  border-left: 4px solid var(--accent-primary);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

.assistant-message table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

.assistant-message th,
.assistant-message td {
  border: 1px solid var(--border-secondary);
  padding: 0.5rem;
  text-align: left;
}

.assistant-message th {
  background: var(--surface-secondary);
  font-weight: 600;
}

.assistant-message a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent-primary);
}

.assistant-message a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}
/* Botón flotante para abrir chat */
.gguf-fab{
  position: fixed;
  bottom: 6.5rem; 
  right: 2.2rem;
  z-index: 1000;
  background: var(--primary, #6366f1);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.7rem;
  box-shadow: 0 4px 24px 0 rgba(99,102,241,0.18);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Responsive design mejorado para dispositivos móviles */
@media (max-width: 768px) {
  /* Layout principal móvil */
  .app-layout {
    flex-direction: column;
    overflow: auto;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height para Safari */
    min-height: -webkit-fill-available;
  }
  
  /* Contenedor principal sin márgenes */
  .main-container.sidebar-left-open,
  .main-container.sidebar-right-open {
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Header móvil optimizado */
  .app-header {
    padding: 0.75rem 1rem;
    min-height: 60px;
    flex-wrap: wrap;
    gap: 0.5rem;
    /* Fijar header en Safari móvil */
    position: sticky;
    top: 0;
    z-index: 100;
    /* Asegurar que el header no se corte */
    flex-shrink: 0;
  }
  
  .header-left {
    flex: 1;
    gap: 1rem;
    min-width: 0;
  }
  
  .app-title {
    font-size: 1.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* Controles del header en dos filas si es necesario */
  .header-controls {
    gap: 0.2rem !important;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  /* Toggle group más compacto pero visible */
  .toggle-group {
    display: flex;
    gap: 0.75rem;
    margin-right: 0;
    padding: 0.5rem 0.75rem;
    background: var(--surface-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-secondary);
    order: 1;
    width: 100%;
    justify-content: space-around;
    margin-top: 0.5rem;
  }
  
  .toggle-label {
    font-size: 0.75rem;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
  }
  
  .toggle-slider {
    width: 36px;
    height: 20px;
    border-radius: 10px;
  }
  
  .toggle-slider::before {
    width: 16px;
    height: 16px;
    top: 1px;
    left: 1px;
  }
  
  .toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(16px);
  }
  
  /* Tokens counter más pequeño */
  .tokens-counter {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    min-width: auto;
  }    /* Sidebars en móvil - Mayor prioridad */
  .chat-sidebar,
  .config-sidebar {
    width: 100vw !important;
    height: 100vh !important;
    padding: 1rem !important;
    position: fixed !important;
    top: 0 !important;
    z-index: 1000 !important; /* Mayor que el desktop */
    /* Transición suave para mostrar/ocultar */
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    /* Fondo reforzado para evitar blanco */
    background: linear-gradient(135deg, #23233a 0%, #3A455B 60%, #4A3B6B 100%) !important;
  }
  
  .chat-sidebar {
    left: 0 !important;
  }
  
  .config-sidebar {
    right: 0 !important;
    left: auto !important;
    transform: translateX(100%) !important;
  }
    /* Mostrar sidebars cuando están visibles */
  .chat-sidebar.visible {
    transform: translateX(0) !important;
  }
  
  .config-sidebar.visible {
    transform: translateX(0) !important;
  }
  
  /* Overlay para cerrar sidebar */  .sidebar-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 999 !important; /* Justo debajo de los sidebars */
    opacity: 1 !important;
    visibility: visible !important;
  }/* Chat container ajustado */
  .chat-container {
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px); /* Dynamic viewport height para Safari */
    display: flex;
    flex-direction: column;
    min-height: -webkit-fill-available;
    overflow-y: auto; /* Permitir scroll vertical para leer mensajes previos */
  }
  
  /* Lista de mensajes con más espacio */
  .messages-list {
    padding: 1rem;
    gap: 1rem;
    flex: 1;
    overflow-y: auto;
  }
  
  /* Mensajes móviles */
  .user-message,
  .assistant-message {
    max-width: 100%;
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .user-message {
    margin-left: 10%;
  }
  
  .assistant-message {
    margin-right: 5%;
  }
  
  /* Área de input móvil */
  .input-area {
    padding: 1rem;
    background: var(--surface-elevated);
    position: sticky;
    bottom: 0;
  }
  
  .message-form {
    max-width: 100%;
  }
  
  .input-container {
    gap: 0.5rem;
    align-items: flex-end;
  }
  
  .message-textarea {
    min-height: 44px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--radius-lg);
  }
  
  .send-button {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
  }
  
  /* Buttons del header más pequeños */
  .header-button {
    padding: 0.5rem;
    min-width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
  }
  
  /* Botón flotante de descargas dentro del header en móvil */
  .gguf-fab {
    position: static !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 1.2rem !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    box-shadow: none !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
}

/* Media query adicional para pantallas muy pequeñas */
@media (max-width: 480px) {
  .app-layout {
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
  }
  
  .app-header {
    padding: 0.5rem;
    min-height: 55px;
    position: sticky;
    top: 0;
    flex-shrink: 0;
  }
  
  .app-title {
    font-size: 1rem;
  }
  
  .toggle-group {
    padding: 0.4rem 0.5rem;
    gap: 0.5rem;
  }
  
  .toggle-label {
    font-size: 0.7rem;
    gap: 0.4rem;
  }
  
  .toggle-slider {
    width: 32px;
    height: 18px;
    border-radius: 9px;
  }
  
  .toggle-slider::before {
    width: 14px;
    height: 14px;
  }
  
  .toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(14px);
  }
  
  .messages-list {
    padding: 0.75rem;
  }
  
  .input-area {
    padding: 0.75rem;
  }
  
  .message-textarea {
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
  }
  
  .send-button {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .header-button {
    padding: 0.4rem;
    min-width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

/* Landscape móvil */
@media (max-width: 768px) and (orientation: landscape) {
  .app-layout {
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
  }
  
  .app-header {
    min-height: 50px;
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    flex-shrink: 0;
  }
  
  .toggle-group {
    margin-top: 0;
    width: auto;
    order: 0;
  }
  
  .chat-container {
    height: calc(100vh - 50px);
    height: calc(100dvh - 50px);
    min-height: -webkit-fill-available;
  }
}

/* Landscape móvil y tablets: ajuste para 960px o menos */
@media (max-width: 960px) and (orientation: landscape) {
  .app-layout {
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    background: linear-gradient(120deg, #191a1a 0%, #23272f 100%) !important;
  }
  body, #root {
    background: linear-gradient(120deg, #191a1a 0%, #23272f 100%) !important;
  }


}

/* Ajustes para pantallas de escritorio */
@media (min-width: 769px) {
  .main-flex-content > .chat-sidebar,
  .main-flex-content > .config-sidebar {
    width: 440px !important;
    min-width: 320px;
    max-width: 520px;
  }

  .config-sidebar, .chat-sidebar {
    width: 280px !important;
    max-width: 520px;
    min-width: 320px;
  }

}

/* Nuevos estilos para botones de RAG y herramientas */
.input-bottom-buttons {
  display: inline-flex;
  gap: 4px;
  justify-content: flex-start;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: var(--input-area-bg, #f3f4f6); /* igual que input-area */
  padding: 0;
  margin-top: 12px;
  box-shadow: 0 1px 4px #0001;
  width: auto;
  min-width: 0;
  max-width: 100vw;
}

.input-bottom-buttons .input-icon-button {
  padding: 0 !important;
  min-width: unset;
  min-height: unset;
  background: transparent;
}

.main-flex-content.with-sidebar-padding {
  padding-left: 320px;
}

@media (max-width: 768px) {
  .main-flex-content.with-sidebar-padding {
    padding-left: 0;
  }
  body, #root {
  background: linear-gradient(120deg, #191a1a 0%, #23272f 100%) !important;
  background: linear-gradient(120deg, #191a1a 0%, #23272f 100%) !important;
}
  .chat-sidebar,
  .config-sidebar {
    background: linear-gradient(135deg, #23233a 0%, #3A455B 60%, #4A3B6B 100%) !important;
    box-shadow: 0 0 30px 10px #181828cc !important;
  }
}

