/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 3px;
}

html, body {
  font-family: system-ui, sans-serif;
  overflow: hidden;
  height: 100%;
  background: #2E3133;
  
}

/* APP LAYOUT */
.app-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 95vh;
  overflow: hidden;
}

.split-panel {
  flex: 1;              
  min-height: 0;        
  display: flex;
}

/* LEFT PANEL */
.main-panel {
  min-width: 0;
  padding: 24px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin; 
  scrollbar-color: #353839 #2E3133;
}


.main-panel::-webkit-scrollbar-thumb:hover {
  background-color: #357ABD;
}

.button-div {
  flex: 1;
  display: flex;
  width: 100%;
  font-family: ui-monospace, monospace;
}

.button-div button {
  flex: 1;
  border-radius: 25px;
  color:white;
  font-weight: bold;
  background: transparent; 
  padding: 5px;
  margin: 3px;
  border: 3px solid #0BDA8F;
  font-family: ui-monospace, monospace;
  
  
}

.button-div button:hover {
  background: #0BDAA9;
  color: black;
}

.button-div button:focus {
  background: #0BDAA9;
  color: black;
}

.button-div button:active {
  transform: translateY(2px); 
}

.main-panel h2 {
  margin-bottom: 16px;
}



/* EXPANDERS */
.expander {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 15px;
  overflow: hidden;
  background: #FF5C00;
  
}

.text-div {
  border: 2px solid #393535;
  border-radius: 6px;
  margin-bottom: 15px;
  overflow: hidden;
  min-height: 45%;
  background: black;
  color: #0BDA51;
  font-family: ui-monospace, monospace;
  box-shadow:
    0 0 5px 0 #0BDA51;
}

.title {
  font-size: 20px;
  padding: 3px;
  margin-left: 10px;
  font-weight: bold;
}

.description {
  font-size: 15px;
  margin-left: 10px;
  margin-top: 3px;
  text-align: justify;
}

.text-div ul {
  margin-left: 30px;
  
}

.text-div li {
  font-size: 10px;
  text-align: justify;
}

.text-div li::marker {
  color: #0BDA51;
  font-size: 10px;
  
  
}

.loader-div {
  display: grid;
  grid-template-columns: repeat(100, 5px);
  grid-auto-rows: 5px;
  gap: 3px;
  align-content: center;
  justify-content: center;
  border: 2px solid #393535;
  border-radius: 6px;
  margin-bottom: 15px;
  overflow: hidden;
   max-height: 10vh;
  max-width: 100%;
   background: black;
  color: #0BDA51;
  font-family: ui-monospace, monospace;
  box-shadow:
    0 0 5px 0 #0BDA51;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  opacity: 0.5;
  
}

.dot.active {
  animation: blink 1s infinite;
}



@keyframes blink {
  0%   { opacity: 1; }
  50%  { opacity: 0.2; }
  100% { opacity: 1; }
}






/* CHAT */
.chat-container {
  width: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  outline: none;
}



.chat-message {
  /*max-width: 80%;*/
  margin-top: 100%;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  text-align: justify;
}

.chat-message.bot {
  background: black;
  color: #0BDA51;
  font-family: ui-monospace, monospace;
  white-space: pre-wrap;
}

.chat-message.user {
  background: white;
  color: black;
  margin-left: auto;
}

/* CHAT INPUT */
.chat-input {
  display: flex;
  flex-shrink: 0;
  position: sticky;
  z-index: 10;
  flex-direction: column;
  border-top: 1px solid #ddd;
  padding: 5px;
  border-radius: 15px;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  border-radius: 15px;
  background: #353839;
  color: white;
}

.chat-input button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #2b2c2f;
  color: white;
  font-size: 16px;
  cursor: pointer;
}
