@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css?family=Raleway:300,400,700');
@import url("https://fonts.googleapis.com/css?family=Metal+Mania");
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&family=Montserrat:wght@300&display=swap');

* {
  box-sizing: border-box;
}

:root {
  --primary-color: #047aed;
  --secondary-color: blue;
  --dark-color: #002240;
  --light-color: #f4f4f4;
  --success-color: #5cb85c;
  --error-color: #d9534f;
  --background-color: #f5f6fa;
  --text-color: #2c3e50;
  --border-color: #dcdde1;
  --hover-bg: #ecf0f1;
  --menu-item-hover-bg: #eef9fc;
  --success-color: #27ae60;
  --warning-color: #f1c40f;
  --danger-color: #e74c3c;
  --transition-speed: 0.2s;
}


#inner_desk {
  width: fit-content;
  padding: 10px;
  background-color: #ddd;
  align-items: center;
  vertical-align: middle;
}



#greet {
  font-size: 1.5em;
  font-family: "Dancing Script";
}


#right-info-control-div {
  font-size: 0.9rem;
}


#right-info-control {
  position: absolute;
  bottom: 2px;
  right: 3px;
}

#left-nav-control-div {
  font-size: 0.9rem;
}

#left-nav-control {
  position: absolute;
  bottom: 2px;
  left: 3px;
}


.toggle-btn {
  padding: 5px 5px;
  color: rgb(0, 86, 139);
  border: none;
  background-color: transparent;
  font-weight: 600;
  margin-right: 15px;
  cursor: pointer;
  left: 10px;
}

.toggle-label {
  margin: 2px 10px;
  font-size: 0.9rem;
  font-weight: 500;
}


.hidden {
  display: none;
}

.resizer {
  width: 10px;
  height: 10px;
  background: #ccc;
  position: absolute;
  right: 0;
  bottom: 0;
  cursor: se-resize;
}

.bb-red {
  border-bottom: #b90b45 3px solid;
  margin-bottom: 8px;
}

.bb-gray {
  border-bottom: lightgrey 3px solid;
  margin-bottom: 8px;
}

.text-purple {
  color: purple
}

.darkgold {
  color: darkgoldenrod;
}

.darkblue {
  color: darkblue;
}

.display-8 {
  font-size: 2rem;
  font-weight: 500;
  color: #107bbe;
}

.art-flex-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  min-width: 660px;
  justify-content: space-between;
}

.channel {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  width: 100%;
  border-radius: 1px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
  font-family: Tahoma, Verdana, sans-serif;
}

.channel-heading {
  text-transform: uppercase;
  color: #002250;
  margin-left: 16px;
  text-align: center;
}

.channel-item-heading {
  text-transform: uppercase;
  font-size: 1.3rem;
  font-weight: 560;
  color: #107bbe;
  text-align: end;
}

.dropbtn {
  background-color: transparent;
  color: dodgerblue;
  border: none;
  margin-top: 6px;
}

.dropfloat {
  background-color: transparent;
  position: relative;
  display: inline-block;
  font-family: Raleway;
  margin-left: 10px;
}

.dropfloat-content {
  display: none;
  position: absolute;
  left: -6px;
  background-color: #f1f1f1;
  min-width: fit-content;
  border-radius: 5px;
  box-shadow: 2px 2px 2px 2px #888888;
  z-index: 103;
}

.dropfloat-content a {
  color: black;
  padding: 1px 5px;
  text-decoration: none;
  width: 98%;
  display: block;
}

.dropfloat-content a:hover {
  background-color: #ddd;
  border-radius: 5px;
}

.dropfloat:hover .dropfloat-content {
  display: block;
  border-radius: 5px;

}

.dropfloat-content-h {
  display: none;
  position: absolute;
  left: -6px;
  background-color: #f1f1f1;
  min-width: fit-content;
  border-radius: 5px;
  box-shadow: 2px 2px 2px 2px #888888;
  z-index: 103;
}

.dropfloat-content-h a,
.dropfloat-content-h span {
  color: darkblue;
  padding: 1px 5px;
  text-decoration: none;
  display: inline;
}

.dropfloat-content-h a:hover,
.dropfloat-content-h span:hover {
  background-color: #ddd;
  border-radius: 5px;
  cursor: pointer;
}

.dropfloat:hover .dropfloat-content-h {
  display: flex;
  flex-direction: row;
  border-radius: 5px;

}

.dropfloat:hover .dropbtn {
  background-color: transparent;
}

.floatbtn {
  background-color: transparent;
  color: white;
  border: none;
}

.floatinfo {
  background-color: transparent;
  position: relative;
  justify-items: right;
  align-content: flex-end;
  justify-content: end;
  display: inline-block;
  margin-right: 10px;
}

.floatinfo-content {
  display: block;
}

.container-out-column {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.header-container {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.top-nav {
  display: inline-flex;
  width: 100%;
  height: 80px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  color: dodgerblue;
  flex-wrap: nowrap;
  padding: 3px 10px 0 10px;
  z-index: 101;
  font-size: 1.2em;
}

.account-section {
  list-style-type: none;
  padding-left: 0;
  flex-wrap: nowrap;
}

.logo-section {
  list-style-type: none;
  padding-left: 0;
  flex-wrap: nowrap;
}

.menu-section {
  list-style-type: none;
  padding-left: 0;
  line-height: normal;
}

.menu-div {
  flex-wrap: wrap;
}

.account-div {
  flex-wrap: nowrap;
}

.top-nav-item {
  display: inline-flex;
  padding-right: 3px;
  color: dodgerblue;
}

.top-nav-item a {
  text-decoration: none;
  color: dodgerblue;
}

.top-nav-item a:hover {
  text-decoration: none;
  color: rgb(180, 132, 12)
}

.top-nav .left-nav-link {
  text-decoration: none;
  font-size: inherit;
  color: blue;
  white-space: nowrap;
  text-transform: capitalize;
}


.left-nav-link {
  text-decoration: none;
  font-size: inherit;
  color: blue;
  white-space: nowrap;
  text-transform: capitalize;
}

.zone-menu-container {
  display: inline-flex;
  width: 90%;
  justify-content: space-between;
}

.pointer {
  cursor: pointer;
}

.zone-nav {
  display: inline-flex;
  width: 100%;
  height: auto;
  border-radius: 3px;
  flex-direction: row;
  padding: 10px 6px;
  flex-wrap: nowrap;
  vertical-align: middle;
  align-items: center;
  justify-content: space-evenly;
  font-size: 1.2em;
  background-color: #eee;
  color: rgb(69, 69, 186);
  position: relative;
}

.a-zone-nav {
  float: left;
  display: block;
  color: black;
  text-align: left;
  text-decoration: none;
}

.active {
  display: block;
}

.zone-nav .search-container {
  display: inline-block;
}

.zone-nav input[type=text] {
  padding: 3px;
  margin-top: 3px;
  border: 0px solid black;
  border-radius: 8px;
}

.zone-nav .search-container button {
  float: right;
  margin: 3px 3px 3px 3px;
  background: #ddd;
  border: none;
  cursor: pointer;
  color:#661717;
  border-radius: 50px;
}

.zone-nav .search-container button:hover {
  background: goldenrod;
}

.big-inline-link {
  color: blue;
  text-decoration: none;
  font-size: 1.1em;
}

.inline-link {
  color: rgb(69, 69, 186);
  text-decoration: none;
  margin-left: 13px;
  margin-right: 13px;
}

.container-spotlight {
  display: flex;
  align-self: center;
  align-items: center;
  border: 0px solid #eee;
  padding: 20px 0 20px 0;
  width: 88%;
  height: fit-content;
  flex-direction: row;
  justify-content: center;
  font-size: 2rem;
  color: darkgoldenrod;
  margin: 10px 30px;
}

.container-display-big-flex {
  justify-content: space-evenly;
  justify-items: stretch;
  margin: 10px 10px 30px 10px;
  gap: 10px;
  display: flex;
  flex-wrap: wrap;
}

.main {
  display: flex;
  padding: 2px 30px;
  flex-direction: row;
  flex: 1;
  align-items:flex-start;
  justify-content: space-around;
  margin-top: 10px;
  margin-bottom: 5px;
}

.container-main-row {
  display: flex;
  width: 100%;
  padding: 10px 1px;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-around;
}

.container-main-column {
  display: flex;
  width: 100%;
  padding: 10px 1px;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-evenly;
}

.inner-desk-white {
  display: flex;
  flex-direction: column;
  flex:1;
  padding: 10px;
}

.text-black {
  color: #000000;
  font-weight: 500;
}

.response {
  margin-left: 3px;
  height: 100%;
  padding: 18px;
  font: size 1.2em;
}

.title {
  text-transform: capitalize;
  font-size: 1.2rem;
  color: darkblue;
  margin-top: 10px;
}

.align-inline {
  float: left;
}

.writer {
  border-radius: 50%;
  width: 100px;
  height: 100px;
}

.gallery {
  border-radius: 5px;
  width: 500px;
  height: 580px;
}

.copyright {
  margin-right: 10px;
  font-size: 0.8rem;
  font-family: "Dancing Script";
  color: white;
}

.footer-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  color: white;
  font-size: smaller;
}


.footer-container ul {
  list-style: none;
  display: inline-flex;
}


.footer-container li {
  margin-right: 10px;
  margin-top: 10px;
}

.footer-container span {
  color: #fff;
  font-size: 0.9em;
}

.footer-container a {
  color: white;
  font-size: 0.8em;
  text-decoration: none;
}

.footer-container a:hover {
  color: red;
}

.footer-container .social {
  margin-top: 10px;
}

.footer-container .social a {
  margin-right: 10px;
  color: white;
}

.social {
  margin-top: 10px;
}

.fa-github {
  color: white;
}

.fa-facebook {
  color: white;
}

.fa-instagram {
  color: white;
}

.fa-twitter {
  color: white;
}

.plain-logo {
  text-decoration: none;
  color: goldenrod;
  font-family: "Dancing Script";
  font-size: 1.2em;
}

.org-name-box {
  width: 88%;
  text-align: center;
  height: auto;
  font-family: "Dancing Script";
  font-size: 5rem;
}

.container-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
}

.channel-item-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  text-align: center;
  justify-content: space-around;
  justify-items: stretch;
  align-content: center;
  margin: auto;
  padding-top: 50px;
  gap: 10px;
  color: black;
  background-color: #eeeeee;
}

.slide-container {
  width: fit-content;
  height: fit-content;
  margin: auto;
  padding-top: 1em;
}

.ism-slider {
  width: 330px;
  height: 360px;
  margin-left: auto;
  margin-right: auto;
}

.carousel {
  margin: 2rem 1rem;
}

.carousel-caption {
  bottom: 3rem;
  z-index: 10;
}

.carousel-item {
  height: 500px;
  width: 390px;
}

.container-banner {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  align-content: space-between;
  overflow: auto;
  line-height: 1.5;
  background-color: #a06e2c;
  color: #ffffff;
}

.org-logo-box {
  margin-left: 6px;
  margin-right: auto;
  padding: 10px;
  max-width: fit-content;
  max-height: auto;
}

.banner-slogan {
  font-family: Raleway, Lato;
  line-height: 1.5;
  font-weight: normal;
}

.app-title {
  color: white;
  font-weight: 600;
  margin-left: 10px;
  margin-top: 5px;
}

.app-footer {
  height: 50px !important;
  transition: all 0.3s ease;
}

.main-container {
  display: flex;
  padding: 2px 10px;
  flex: 1;
  justify-content: space-around;
  margin-top: 20px;
  min-height: calc(100vh - 200px);
  resize: vertical;
  overflow: auto;
}

.home-sidebar {
  width:290px;
  margin-top: 50px;
  padding: 5px;
  background-color: #eee;
  max-height: calc(100vh - 298px);
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
  border-radius: 5px;
}

.container-c1 {
  display: none;
  width: auto;
  padding: 20px;
  flex: 1;
  text-align: center;
  max-width: 98%;
  padding-left: 10px;
  max-height: calc(100vh - 298px);
}

.container-c2 {
  display: flex;
  margin: auto;
  padding: 20px;
  flex: 1;
  flex-direction: column;
  align-self: flex-end;
  max-width: 98%;
  padding-left: 10px;
  max-height: calc(100vh - 298px);
}

.container-c3 {
  display: none;
  width: auto;
  padding: 20px;
  flex: 1;
  text-align: center;
  max-height: calc(100vh - 298px);
  max-width: 98%;
  padding-left: 10px;
}

.main-content-container {
  display: flex;
  width: auto;
  height: 100%;
  flex: 1;
  flex-direction: row;
}

.chat-container {
  display: flex;
  height: calc(100vh - 90px);
  background: white;
  flex-grow: 1;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-sidebar {
  margin-top: 20px;
  width: 280px;
  height: auto;
  border-right: none;
  border-top: 1px solid var(--border-color);
}

.custom-style {
  height: 3px;
  border: none;
  background-color: peru;
}

.new-chat-file-upload {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.file-upload-group {
  margin-bottom: 10px;
}

.file-upload-btn {
  display: inline-block;
  padding: 6px 12px;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.file-list {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-left: 10px;
}

.new-chat-btn {
  height: 30px;
  padding: 6px 12px;
  color: darkblue;
  background: var(--background-color);
  border: none;
  padding-bottom: 8px;
  font-size: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition-speed);
}

.session-list {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 5px;
}

.session-group {
  margin-bottom: 15px;
}

.session-header {
  display: flex;
  padding: 8px;
  background: #f5f5f5;
  border-radius: 4px;
  cursor: pointer;
  justify-content: space-between;
  transition: background var(--transition-speed);
}


.radio-spaced {
  margin-right: 10px;
}
  
.session-header:hover {
  background: var(--hover-bg);
}

.session-header.active {
  color: white;
  background: var(--secondary-color);
}

.session-header::after {
  content: '▶';
  transition: transform var(--transition-speed);
}

.session-header.active::after {
  content: '▼';
}


.message-label {
  color: #2c3e50;
  margin-top: 10px;
  font-weight: 800;
}


.message-list {
  display: none;
  margin-left: 15px;
  padding-top: 8px;
}

.session-header.active+.message-list {
  display: block;
}


.message-item {
  padding: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background var(--transition-speed);
}

.message-item:hover {
  background: var(--menu-item-hover-bg);
}

.chat-main {
  display: flex;
  height: 100%;
  flex: 1;
  flex-direction: column;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.chat-messages {
  margin: 10px 15px;
  padding: 15px;
  background: #fafafa;
  flex: 1;
  text-align: left;
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
}


#session_info {
  width: 88%;
  padding: 8px 10px;
  color: black;
  background-color: #eee;
  border-bottom: 2px #222 solid;
  text-align: center;
  align-self: center;
  border-radius: 5px;
  box-shadow: 8px 8px 10px #888;
}


.model-selector {
  width: fit-content;
  padding: 15px 15px;
  font-size: 0.8rem;
  border-bottom: 0px solid var(--border-color);
}

.message-card {
  animation: slideIn 0.3s ease-out;
  margin-bottom: 20px 10px;
}

.user-message {
  padding: 12px 30px;
  background: white;
  border-radius: 6px;
  margin-top: 15px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ai-response {
  padding: 12px 30px;
  background: white;
  border-radius: 6px;
  border-left: 4px solid var(--secondary-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


/* Loading Overlay */
.loading-overlay {
  position: fixed;
  display: none;
  background: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  animation: spin 1s linear infinite;
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
}

#loading-spinner {
  display: none;
  width: 24px;
  height: 24px;
  color: darkred;
  border: 3px solid #f3f3f3;
  animation: spin 1s linear infinite;
  margin-right: 10px;
  border-top: 3px solid var(--accent);
  border-radius: 50%;
}

@keyframes spin {
  0% {
      transform: rotate(0deg);
  }

  100% {
      transform: rotate(360deg);
  }
}

.typing-indicator {
  display: none;
  padding: 0.5rem 1rem;
  color: var(--secondary);
  font-style: italic;
}

.history-panel {
  display: none;
  height: 100%;
  padding: 15px 20px;
  background: white;
  flex: 1;
  border-right: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  margin-right: 20px;
  resize: horizontal;
  /* Allow resizing both horizontally and vertically */
  overflow: auto;
  /* Ensure content is scrollable if it overflows */

}

.history-panel.active {
  display: block;
}

.history-content {
  height: 100%;
  overflow-y: auto;
  padding-right: 20px;
}


.chat-input-area {
  padding: 15px;
  background: white;
  border: 1px solid var(--border-color);
  margin-top: 10px;
}

#CDSControl-container {
  display: flex;
  padding: 10px;
  border: #7f8c8d;
  flex-direction: column;
  background-color: #eee;
  border-radius: 5px;
}

#CDSControl {
  display: inline-flex;
  border-radius: 5px;
  background-color: #eee;
}


#CDSControl-home {
  display: inline-flex;
  border-radius: 5px;
  background-color: #eee;
  width: fit-content;
  padding-top: 10px;
  margin-right:30px;
}

#promptInput {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  resize: vertical;
  min-height: 80px;
}

.input-controls {
  display: flex;
  height: 30px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.send-btn {
  padding: 5px 10px;
  color: white;
  background: darkolivegreen;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity var(--transition-speed);
}

.selectable-item {
  display: flex;
  padding: 4px 0;
  align-items: center;
  gap: 12px; /* Adjust as needed */
}

.selectable-item input[type="radio"] {
  margin: 0; /* Reset default margin */
  cursor: pointer;
}


.sidebar-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sidebar-menu {
  position: relative;
}

.menu-btn {
  padding: 4px 8px;
  background: none;
  color: darkcyan;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.menu-dropdown {
  position: absolute;
  display: none;
  background: white;
  border: 1px solid var(--border-color);
  right: 0;
  top: 100%;
  margin-top: -10px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-width: 160px;
}



.menu-dropdown button {
  display: block;
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.8rem;
  color: darkblue;
}

.menu-dropdown button:hover {
  background: var(--hover-bg);
}

.menu-dropdown.show {
  display: block;
}

.sidebar {
  margin-top: 20px;
  display: none;
}

.sidebar.show {
  display: block;
}

.message-detail {
  padding: 1rem;
}

.message-content {
  padding: 1rem;
  background: white;
  margin-top: 0.5rem;
  border-radius: 4px;
}

.session-edit-form {
  padding: 1rem;
}

.message-edit-form {
  padding: 1rem;
}

.btn-save {
  padding: 0.5rem 1rem;
  color: white;
  background: var(--secondary-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-cancel {
  padding: 0.5rem 1rem;
  color: var(--text-color);
  background: #f0f0f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 0.5rem;
}

.btn-close {
  padding: 0px 8px;
  color: #e74c3c;
  border: none;
  border-radius: 50%;
  margin-bottom: 10px;
}

.btn-toggle {
  padding: 0px 8px;
  color: #e74c3c;
  border: none;
  border-radius: 50%;
  margin-bottom: 10px;
}

.app-header {
  height: 50px;
  top: 0;
  border-bottom: 1px solid #dee2e6;
}

.header-content {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.bi {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.nav-button {
  margin: 3px 10px;
  color: var(--nav-text);
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.dropdown {
  position: relative;
  display: inline-block;
}