input,
textarea {
  flex: 1;
  width: 100%;
  font-size: 1rem;
  padding: 0.5rem;
  resize: none;
  border-radius: 10px;
  border: 2px dashed #ddd;
  outline: none;
  transition: all 0.3s ease;
}
input:focus,
textarea:focus {
  border: 2px dashed #4caf50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #e6e6e6;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
body > div {
  border: 1px solid #ddd;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

button {
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
}

#chat-container {
  display: none;
  height: 80vh;
  width: 90vw;
  overflow: hidden;
}
#chat-container .sessions-container {
  width: 25%;
  background-color: #eeeeee;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow-y: auto;
  height: 100%;
  max-width: 350px;
  border-right: 1px solid #ddd;
}
#chat-container .sessions-container .search-container {
  display: flex;
  margin-bottom: 1rem;
}
#chat-container .sessions-container #sessions {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
  scrollbar-width: none;
}
#chat-container .sessions-container .session-item {
  background-color: #f8f8f8;
  border-radius: 6px;
  margin-bottom: 8px;
  padding: 0.7rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
#chat-container .sessions-container .session-item:hover {
  background-color: #e6e6e6;
}
#chat-container .sessions-container .session-item.active {
  background-color: #e6e6e6;
}
#chat-container .sessions-container .session-item .session-name {
  flex-basis: 70%;
  word-break: break-all;
  font-weight: 500;
}
#chat-container .sessions-container .session-item .buttons-wrapper {
  display: flex;
  gap: 8px;
  margin-top: 0.5rem;
}
#chat-container .sessions-container .session-item .buttons-wrapper button {
  flex: 1;
  cursor: pointer;
}
#chat-container .sessions-container .session-item .buttons-wrapper .regenerate-button {
  background-color: #2196f3;
  padding: 0.4rem 0.8rem;
  transition: all 0.3s ease;
}
#chat-container .sessions-container .session-item .buttons-wrapper .regenerate-button:hover {
  background-color: #0c83e2;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
#chat-container .sessions-container .session-item .buttons-wrapper .regenerate-button:active {
  background-color: #0a6ebd;
  transform: translateY(2px);
}
#chat-container .sessions-container .session-item .buttons-wrapper .edit-button {
  background-color: #4caf50;
  padding: 0.4rem 0.8rem;
  transition: all 0.3s ease;
}
#chat-container .sessions-container .session-item .buttons-wrapper .edit-button:hover {
  background-color: #409444;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
#chat-container .sessions-container .session-item .buttons-wrapper .edit-button:active {
  background-color: #357a38;
  transform: translateY(2px);
}
#chat-container .sessions-container .session-item .buttons-wrapper .delete-button {
  background-color: #f44336;
  padding: 0.4rem 0.8rem;
  transition: all 0.3s ease;
}
#chat-container .sessions-container .session-item .buttons-wrapper .delete-button:hover {
  background-color: #f22112;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
#chat-container .sessions-container .session-item .buttons-wrapper .delete-button:active {
  background-color: #d2190b;
  transform: translateY(2px);
}
#chat-container .sessions-container > button {
  margin-top: 0;
  background-color: #4caf50;
  padding: 0.4rem 0.8rem;
  transition: all 0.3s ease;
}
#chat-container .sessions-container > button:hover {
  background-color: #409444;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
#chat-container .sessions-container > button:active {
  background-color: #357a38;
  transform: translateY(2px);
}
#chat-container .sessions-container #logoutButton {
  margin-top: 0.5rem;
  background-color: #f44336;
  padding: 0.4rem 0.8rem;
  transition: all 0.3s ease;
}
#chat-container .sessions-container #logoutButton:hover {
  background-color: #f22112;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
#chat-container .sessions-container #logoutButton:active {
  background-color: #d2190b;
  transform: translateY(2px);
}
#chat-container .right-panel {
  width: 25%;
  background-color: #eeeeee;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow-y: auto;
  height: 100%;
  width: 20%;
  max-width: 300px;
  border-left: 1px solid #ddd;
}
#chat-container .right-panel .memory-progress {
  background-color: #f8f8f8;
  border-radius: 6px;
  margin-bottom: 8px;
  padding: 0.7rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  height: 2rem;
  overflow: hidden;
}
#chat-container .right-panel .memory-progress:hover {
  background-color: #e6e6e6;
}
#chat-container .right-panel .memory-progress .progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  background: #4caf50;
  transition: width 0.3s ease;
}
#chat-container .right-panel .memory-progress .free-memory, #chat-container .right-panel .memory-progress .used-memory {
  position: absolute;
  z-index: 2;
  padding: 0.2rem;
  color: #333;
  font-weight: 500;
  top: 50%;
  transform: translateY(-50%);
}
#chat-container .right-panel .memory-progress .used-memory {
  left: 1rem;
}
#chat-container .right-panel .memory-progress .free-memory {
  right: 1rem;
}
#chat-container .right-panel .model-item {
  background-color: #f8f8f8;
  border-radius: 6px;
  margin-bottom: 8px;
  padding: 0.7rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
#chat-container .right-panel .model-item:hover {
  background-color: #e6e6e6;
}
#chat-container .right-panel .model-item .model-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#chat-container .right-panel .model-item .model-header .model-name {
  flex-basis: 70%;
  word-break: break-all;
  font-weight: 500;
}
#chat-container .right-panel .model-item .model-header .model-size {
  color: #333;
  font-size: 0.9em;
  text-align: right;
}
#chat-container .right-panel .model-item .buttons-wrapper {
  display: flex;
  gap: 8px;
  margin-top: 0.5rem;
}
#chat-container .right-panel .model-item .buttons-wrapper button {
  flex: 1;
  cursor: pointer;
}
#chat-container .right-panel .model-item .buttons-wrapper button:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}
#chat-container .right-panel .model-item .buttons-wrapper .use-button {
  background-color: #4caf50;
  padding: 0.4rem 0.8rem;
  transition: all 0.3s ease;
}
#chat-container .right-panel .model-item .buttons-wrapper .use-button:hover {
  background-color: #409444;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
#chat-container .right-panel .model-item .buttons-wrapper .use-button:active {
  background-color: #357a38;
  transform: translateY(2px);
}
#chat-container .right-panel .model-item .buttons-wrapper .use-button.selected {
  background-color: #357a38 !important;
}
#chat-container .right-panel .model-item .buttons-wrapper .load-button {
  background-color: #2196f3;
  padding: 0.4rem 0.8rem;
  transition: all 0.3s ease;
}
#chat-container .right-panel .model-item .buttons-wrapper .load-button:hover {
  background-color: #0c83e2;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
#chat-container .right-panel .model-item .buttons-wrapper .load-button:active {
  background-color: #0a6ebd;
  transform: translateY(2px);
}
#chat-container .right-panel .model-item .buttons-wrapper .unload-button {
  background-color: #f44336;
  padding: 0.4rem 0.8rem;
  transition: all 0.3s ease;
}
#chat-container .right-panel .model-item .buttons-wrapper .unload-button:hover {
  background-color: #f22112;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
#chat-container .right-panel .model-item .buttons-wrapper .unload-button:active {
  background-color: #d2190b;
  transform: translateY(2px);
}
#chat-container .chat-main {
  display: flex;
  flex-direction: column;
  flex: 1;
}
#chat-container .chat-main .output-container {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  gap: 0;
}
#chat-container .chat-main .output-container .message {
  margin: 0.5rem 0;
  padding: 0.5rem;
  border-radius: 5px;
  white-space: pre-line;
}
#chat-container .chat-main .output-container .message.user {
  background-color: #e0f7fa;
  align-self: end;
}
#chat-container .chat-main .output-container .message.ai {
  background-color: #e6e6e6;
  align-self: baseline;
}
#chat-container .chat-main .input-container {
  display: flex;
  padding: 1rem;
  background-color: #f8f8f8;
}
#chat-container .chat-main .input-container button {
  margin: 0 0.3rem;
  background-color: #4caf50;
  padding: 0.4rem 0.8rem;
  transition: all 0.3s ease;
}
#chat-container .chat-main .input-container button:hover {
  background-color: #409444;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
#chat-container .chat-main .input-container button:active {
  background-color: #357a38;
  transform: translateY(2px);
}
#chat-container .chat-main .input-container button.stopButton {
  background-color: #f44336;
  padding: 0.4rem 0.8rem;
  transition: all 0.3s ease;
}
#chat-container .chat-main .input-container button.stopButton:hover {
  background-color: #f22112;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
#chat-container .chat-main .input-container button.stopButton:active {
  background-color: #d2190b;
  transform: translateY(2px);
}

#auth-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 300px;
  padding: 1rem;
}
#auth-container h2,
#auth-container h3 {
  text-align: center;
  margin-bottom: 0.5rem;
}
#auth-container form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
#auth-container form button {
  background-color: #4caf50;
  padding: 0.4rem 0.8rem;
  transition: all 0.3s ease;
}
#auth-container form button:hover {
  background-color: #409444;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
#auth-container form button:active {
  background-color: #357a38;
  transform: translateY(2px);
}
#auth-container .forgot-password-link {
  text-align: center;
  margin-top: 0.5rem;
  color: #2196f3;
  text-decoration: none;
}
#auth-container .forgot-password-link:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4caf50;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: slideIn 0.5s ease-out, fadeInOut 5s ease-in-out;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.error {
  background: #f44336;
}

@keyframes slideIn {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes fadeInOut {
  0%, 100% {
    opacity: 0;
  }
  10%, 90% {
    opacity: 1;
  }
}/*# sourceMappingURL=style.css.map */