/* The following imports the Fonts from Adobe */
@import url("https://use.typekit.net/oxa1jxb.css");

body {
  font-family: figtree, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: white;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  line-height: 1.6;
  overflow-y: hidden;
  overflow-x: hidden;
  max-width: 100vw;
}

.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #03213B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 50px;
  box-sizing: border-box;
  flex-shrink: 0;
  z-index: 100;
}

.solace-icon {
  position: fixed;
  top: 1.3rem;
  left: 4vw;
  max-width: 14rem;
  z-index: 999;
  margin: 0.25rem 0.5rem 0.25rem 0px;
  vertical-align: middle;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.2s ease;
  cursor: pointer;
}

.solace-icon:hover {
  opacity: 0.8;
}

/* Sidebar Icon Panel - always visible */
.sidebar-icon-panel {
  position: fixed;
  top: 100px;
  left: 0;
  width: 60px;
  height: calc(100vh - 100px);
  background-color: #03223B;
  color: white;
  z-index: 91;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  gap: 15px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  transition: width 0.3s ease;
  overflow: hidden;
}

/* Expand icon panel when sidebar is open */
body.sidebar-open .sidebar-icon-panel {
  width: 280px;
  align-items: stretch;
}

/* On desktop, icon panel stays fixed at left edge and expands when open */
@media (min-width: 1025px) {
  .sidebar-icon-panel {
    left: 0;
  }

  body.sidebar-open .sidebar-icon-panel {
    width: 280px;
  }
}

.sidebar-icon-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transition: background-color 0.3s ease, width 0.3s ease;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
}

/* Hide text in icon panel buttons by default */
.sidebar-icon-button .button-text {
  display: none;
  font-size: 14px;
  font-weight: 500;
}

/* Expand buttons and show text when sidebar is open */
body.sidebar-open .sidebar-icon-button {
  width: 100%;
  justify-content: flex-start;
  padding: 10px; /* Keep same padding to prevent icon shift */
}

body.sidebar-open .sidebar-icon-button .button-text {
  display: inline;
}

.sidebar-icon-button:hover {
  background-color: rgba(0, 200, 149, 0.2);
}

.sidebar-icon-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  flex-shrink: 0;
}

.chat-container {
  flex-grow: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 100px; /* Same as top-banner height */
  display: flex;
  flex-direction: column;
  background-color: white;
  overflow: hidden;
  height: calc(100vh - 100px); /* Set height to viewport height minus top banner */
}

.chat-header {
  font-size: 2.125rem;
  color: rgb(49, 51, 63);
  margin: 20px auto;
  text-align: left;
  max-width: 850px;
  width: 100%;
}

.chat-header h1 {
  font-size: 2.125rem;
  font-weight: 500;
  margin: 0;
  margin-top: 20px;
  color: #333;
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto; /* Ensure vertical scrolling is enabled */
  overflow-x: hidden; /* Prevent horizontal overflow */
  padding: 20px 10px;
  padding-bottom: 30px;
  font-size: 1rem;
  scroll-behavior: smooth; /* Add smooth scrolling */
  min-height: 200px; /* Ensure minimum height for scrolling */
  max-width: 850px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Learning Prompts Pills Container - Hidden (pills now in welcome message) */
.learning-prompts-container {
  display: none;
}

/* Welcome message pills container */
.welcome-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Welcome message pills */
.welcome-pill {
  flex: 0 1 auto;
  max-width: 100%;
  word-wrap: break-word;
  white-space: normal !important;
  text-align: left;
  box-sizing: border-box;
  flex-shrink: 1 !important;
}

/* Mobile adjustments for welcome pills */
@media (max-width: 768px) {
  .welcome-pills-container {
    gap: 6px;
    margin-top: 12px;
  }

  .welcome-pill {
    font-size: 12px;
    padding: 7px 12px;
  }

  .welcome-pills-container {
    margin-right: 0;
    padding-right: 0;
  }

  .chat-messages {
    padding: 15px 10px;
  }

  .message {
    max-width: 100%;
    padding-right: 5px;
  }

  .bot-message {
    max-width: 100%;
    padding-right: 5px;
  }
}

@media (max-width: 540px) {
  .welcome-pills-container {
    gap: 5px;
    margin-top: 10px;
  }

  .welcome-pill {
    font-size: 11px;
    padding: 6px 10px;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .chat-messages {
    padding: 15px 8px;
  }
}

@media (max-width: 400px) {
  .welcome-pill {
    font-size: 10px;
    padding: 5px 8px;
  }

  .chat-container {
    padding-left: 3px;
    padding-right: 3px;
  }

  .chat-messages {
    padding: 10px 3px !important;
  }

  .message {
    margin-bottom: 15px;
  }
}

.learning-prompts-container.hidden {
  display: none;
}

.learning-prompts-icon {
  flex-shrink: 0;
  color: #00C895;
  stroke: #00C895;
  order: -1;
  margin-right: 2px;
}

.learning-prompts-pills {
  display: contents;
}

.learning-prompt-pill {
  padding: 8px 16px;
  background-color: #E8F4F8;
  border: 1px solid #E8F4F8;
  border-radius: 20px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.learning-prompt-pill:hover:not(.disabled) {
  background-color: #B3E5E8;
  border-color: #B3E5E8;
}

.learning-prompt-pill:active:not(.disabled) {
  background-color: #8DD5DB;
  border-color: #8DD5DB;
}

.learning-prompt-pill.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Close prompts button */
.close-prompts-button {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  opacity: 0.5;
}

.close-prompts-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
  opacity: 1;
}

.close-prompts-button svg {
  stroke: #666;
}

.chat-input-wrapper {
  flex-shrink: 0;
  padding: 15px;
  background-color: white;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  box-sizing: border-box;
  position: sticky;
  bottom: 0;
  z-index: 50;
}

.chat-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 2px solid #d0d0d0;
  border-radius: 12px;
  padding: 16px;
  background-color: white;
  transition: border-color 0.3s ease;
}

.chat-input:focus-within {
  border-color: #00C895;
}

#user-input {
  flex-grow: 1;
  padding: 0;
  border: none;
  transition: height 0.2s ease, overflow-y 0.2s ease, opacity 0.3s ease;
  font-size: 14px;
  min-width: 0;
  box-sizing: border-box;
  resize: none;
  overflow-y: hidden;
  min-height: 24px;
  max-height: 150px;
  line-height: 1.5;
  font-family: figtree, Arial, sans-serif;
  background-color: transparent;

  /* Hide scrollbar in Firefox */
  scrollbar-width: none;

  /* Hide scrollbar in IE/Edge (legacy) */
  -ms-overflow-style: none;

  /* Keep space for scrollbar to prevent layout shift */
  scrollbar-gutter: stable;
}

#user-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

/* Class to show scroll functionality but keep scrollbar hidden */
#user-input.show-scrollbar {
  overflow-y: auto;
}

/* Hide scrollbar in WebKit browsers (Chrome, Safari, Edge) while keeping functionality */
#user-input::-webkit-scrollbar {
  width: 0;
  background: transparent; /* Optional: make scrollbar transparent */
  display: none; /* Ensure it's hidden */
}

#user-input::-webkit-scrollbar-track {
  display: none;
}

#user-input::-webkit-scrollbar-thumb {
  display: none;
}

#user-input:focus {
  outline: none;
}

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

.char-counter-container {
  font-size: 11px;
  color: #666;
  white-space: nowrap;
}

.context-indicator-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.context-indicator {
  position: relative;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #666;
  padding: 6px 10px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.context-indicator:hover {
  background-color: #f0f0f0;
}

.context-indicator.visible {
  display: flex;
}

.context-label {
  white-space: nowrap;
}

.context-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.context-progress-bar {
  width: 80px;
  height: 6px;
  background-color: #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
}

.context-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00C895 0%, #00E5A8 100%);
  transition: width 0.4s ease, background 0.4s ease;
  border-radius: 3px;
}

.context-progress-fill.warning {
  background: linear-gradient(90deg, #f39c12 0%, #f9a825 100%);
}

.context-progress-fill.critical {
  background: linear-gradient(90deg, #e67e22 0%, #d35400 100%);
}

.context-percent {
  font-weight: 600;
  min-width: 35px;
  text-align: right;
}

.context-warning-icon {
  color: #f39c12; /* Orange for warning state (70-89%) */
  cursor: pointer;
  display: flex;
  align-items: center;
}

.context-warning-icon.critical {
  color: #e74c3c; /* Red for critical state (90%+) */
}

.context-warning-icon.hidden {
  display: none;
}

.context-warning-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background-color: white;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
  pointer-events: none;
  display: none;
}

.context-warning-tooltip.show {
  display: block;
}

.context-indicator:hover .context-warning-tooltip.show,
.context-warning-tooltip.show:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.context-warning-tooltip .tooltip-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #e74c3c;
  margin-bottom: 8px;
  font-size: 13px;
}

.context-warning-tooltip .tooltip-header svg {
  flex-shrink: 0;
  color: #e74c3c;
}

/* Warning state styling (70-89% usage) */
.context-warning-tooltip.warning-state .tooltip-header {
  color: #f39c12;
}

/* Critical state styling (90%+ usage) - default */
.context-warning-tooltip.critical-state .tooltip-header {
  color: #e74c3c;
}

/* Info state styling (50-69% usage) */
.context-warning-tooltip.info-state .tooltip-header {
  color: #0066cc;
}

.context-warning-tooltip.info-state .tooltip-header svg {
  color: #0066cc;
}

.context-warning-tooltip .tooltip-body {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.send-button {
  padding: 10px;
  background: linear-gradient(135deg, #00C895 0%, #00E5A8 100%);
  color: #03213B;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
}

#send-button img {
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(12%) sepia(27%) saturate(1810%) hue-rotate(173deg) brightness(96%) contrast(99%);
}

#send-button:active:not(:disabled) img,
#send-button:disabled img,
#send-button.processing img {
  filter: brightness(0) saturate(100%) invert(56%) sepia(8%) saturate(595%) hue-rotate(157deg) brightness(92%) contrast(88%);
}

#send-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #00DC95 0%, #00FFC0 100%);
  box-shadow: 0 4px 12px rgba(0, 200, 149, 0.3);
  transform: scale(1.05);
}

#send-button:active:not(:disabled) {
  background: #B0BEC5;
  color: #5A6F7D;
  transform: scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#send-button:disabled {
  background: #B0BEC5;
  color: #5A6F7D;
  cursor: not-allowed;
  opacity: 0.8;
}

/* Processing state for send button */
#send-button.processing {
  background: #B0BEC5;
  color: #5A6F7D;
  cursor: default;
}

/* Old char-counter styles removed - now using char-counter-container */

.disclaimer {
  flex-shrink: 0;
  text-align: center;
  padding: 12px;
  color: #666;
  font-size: 13px;
  background-color: white;
  max-width: 850px;
  width: 100%;
  margin-left: calc(50vw - 410px);
  margin-right: auto;
  transition: margin-left 0.3s ease;
}

body.sidebar-open .disclaimer {
  margin-left: calc(50vw - 300px);
}

.feedback-button {
  position: fixed;
  bottom: 1px;
  right: 2px;
  z-index: 950;
  padding: 10px 18px;
  text-decoration: none;
  white-space: nowrap;
  font-family: figtree, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1.5px solid #00C895;
  background: white;
  color: #015E64;
  box-shadow: 0 2px 6px rgba(0, 200, 149, 0.15);
  border-radius: 8px 0 0 0;
}

.feedback-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 200, 149, 0.25);
  background: linear-gradient(135deg, rgba(171, 255, 136, 0.1) 0%, rgba(0, 200, 149, 0.1) 100%);
  border-color: #00C895;
  color: #015E64;
}

/* Old context-ring styles removed - now using new context-indicator design */


/* Osando Cookie Widget styles */


/* New Osano tags added */
.osano-cm-dialog--type_bar .osano-cm-button.osano-cm-accept-all {
  background-color: #f37021;
}
/* New Osano tags added */
.osano-cm-info {
  max-width: 22em;
}
.osano-cm-view {
  padding: 0 1em;
}
/* .osano-cm-widget--position_right{right:auto;left:12px} */
.osano-cm-info-dialog-header {
  border-bottom: 1px solid #ccc;
  margin-bottom: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,.2);
}
.osano-cm-header,
.osano-cm-info-dialog-header {
  background: #fff !important;
}
.osano-cm-info-dialog__info p {
  font-size: 14px;
  line-height: 1.4;
  color: #647481;
}
.osano-cm-drawer-toggle .osano-cm-label,
.osano-cm-info__info-dialog-header p {
  color: #273749;
  font-size: 16px;
  font-weight: 600;
}
.osano-cm-info__info-dialog-header p {
  font-size: 22px;
  font-weight: 600;
  height: 103px;
}
.osano-cm-toggle__input + .osano-cm-toggle__switch:before {
  border-color: #ababab;
}
.osano-cm-toggle__input:checked + .osano-cm-toggle__switch:before {
  border-color: #b3dedf;
}
.osano-cm-list-item__disclosure {
  padding-top: .7em;
}
.osano-cm-toggle__input:disabled:checked + .osano-cm-toggle__switch::before,
.osano-cm-toggle__input:disabled:checked:focus + .osano-cm-toggle__switch::before,
.osano-cm-toggle__input:disabled:checked:hover + .osano-cm-toggle__switch::before {
  background-color: #f3f9f9;
}
.osano-cm-toggle__input:disabled:checked + .osano-cm-toggle__switch::after,
.osano-cm-toggle__input:disabled:checked:focus + .osano-cm-toggle__switch::after,
.osano-cm-toggle__input:disabled:checked:hover + .osano-cm-toggle__switch::after {
  background-color: #7ac5c6;
}
.osano-cm-dialog--type_bar .osano-cm-button.osano-cm-accept-all {
  background-color: #f37021;
}
.osano-cm-info--position_left .osano-cm-save {
  background-color: #fca829;
  border-color: #fca829;
  border-radius: 30px;
  padding: 15px;
  font-size: 16px;
}
.osano-cm-info-dialog-header__close,
.osano-cm-info-dialog-header__close:focus,
.osano-cm-info-dialog-header__close:hover {
  background-color: #f7f8f9;
  stroke: #647481 !important;
  padding: 5px;
  border: 1px solid #222 !important;
  outline: 0;
}
.osano-cm-close {
  stroke-width: 2px !important;
}
.osano-cm-widget:focus {
  border-radius: 50%;
  outline: #00c895 solid 1px;
}
.osano-cm-description {
  color: #273749 !important;
}

/* trying to control menu placement with the next two styles */
.osano-cm-info {
  animation: none;
}
/* End- New Osano tags added */
.osano-cm-info--position_left {
  left: auto;
  transform: none;
  right: 0;
}

.osano-cm-description:first-child {
  color: #273749 !important;
  font-size: 15px;
  line-height: 1.4;
  font-family: figtree, "open-sans", Tahoma, Verdana, sans-serif;
}

.osano-cm-description:first-child p {
  color: #273749 !important;
  font-size: 15px;
  line-height: 1.4;
  font-family: figtree, "open-sans", Tahoma, Verdana, sans-serif !important;
}

.osano-cm-description p {
  color: #647481 !important;
  font-size: 15px;
  line-height: 1.4;
  font-family: figtree, "open-sans", Tahoma, Verdana, sans-serif !important;
}

.osano-cm-header {
  color: #273749 !important;
  font-weight: 600;
  font-size: 16px;
  height: 103px;
  font-family: figtree, "open-sans", Tahoma, Verdana, sans-serif !important;
}

p.osano-cm-label {
  color: #273749 !important;
  font-size: 16px;
  font-weight: 600;
}

.osano-cm-info-dialog-header__close {
  border-radius: 50px;
  background-color: #00c895;
  padding: 5px;
  font-size: 16px;
  font-family: figtree, "open-sans", Tahoma, Verdana, sans-serif !important;
  background-color: #f7f8f9;
  stroke: #647481 !important;
  border: 1px solid #222 !important;
}

.osano-cm-powered-by__link {
  text-decoration: none !important;
}

.osano-cm-powered-by__link:hover {
  background-color: none !important;
  text-decoration: underline !important;
  color: white !important;
}

.osano-cm-widget--position_left {
  right: 30px !important;
  left: auto;
  margin-bottom: 50px;
}

a.osano-cm-link {
  text-decoration: underline;
  border-bottom: none !important;
}

a.osano-cm-link:hover {
  border-bottom: none;
  text-decoration: none;
  font-weight: 300;
  background-color: none !important;
  border-bottom: none !important;
}

.osano-cm-link {
  color: #165E64 !important;
}

.osano-cm-disclosure__toggle {
  color: #165E64 !important;
}

/*
.osano-cm-widget--position_left
	{
		right: 0 !important;
	}
*/


/* End Osano Widget Styles */

@media (max-width: 1145px) {
  .chat-container {
    max-width: 88%;
    margin: 0 20px;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .chat-container {
    max-width: 100% !important;
    width: 100vw;
    margin: 0 !important;
    padding-left: 5px;
    padding-right: 5px;
    box-sizing: border-box;
  }

  .chat-messages {
    padding: 15px 5px !important;
    overflow-x: hidden;
  }

  .chat-header {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .chat-header h1 {
    font-size: 1.5rem;
  }

  #user-input {
    font-size: 13px;
  }

  .send-button {
    width: 42px;
    height: 42px;
  }

  .chat-messages {
    padding: 15px 5px;
    font-size: 0.7rem;
  }

  .osano-cm-widget--position_left {
    right: 15px;
  }

  .feedback-button {
    font-size: 11px;
    padding: 8px 14px;
  }

  /* Hide learning prompts on smaller screens if needed */
  .learning-prompts-container {
    padding: 8px 2px;
    gap: 6px;
  }

  .learning-prompt-pill {
    font-size: 12px;
    padding: 7px 12px;
  }

  .learning-prompts-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
  }

  .close-prompts-button {
    width: 20px;
    height: 20px;
    padding: 2px;
  }

  .close-prompts-button svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 967px) {
  .feedback-button {
    font-size: 10px;
    padding: 7px 12px;
  }
}

@media (max-width: 750px) {
  .feedback-button {
    font-size: 9px;
    padding: 6px 10px;
  }
}

@media (max-width: 620px) {
  .feedback-button {
    font-size: 9px;
    padding: 6px 10px;
  }
}

/* Extra small screens (mobile portrait) */
@media (max-width: 540px) and (min-width: 360px) {
  .top-banner {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center content on mobile */
  }

  .solace-icon {
    position: fixed;
    left: 50%;
    transform: translateX(-50%); /* Center the logo horizontally */
  }

  /* Sidebar appears above input bar on mobile */
  .sidebar-icon-panel {
    z-index: 110 !important;
  }

  body.sidebar-open .sidebar-icon-panel {
    z-index: 110 !important;
  }

  .chat-header {
    padding-left: 15px;
  }

  .chat-header h1 {
    font-size: 1rem;
    max-width: 70%;
  }

  .chat-container {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    height: auto;
    max-height: calc(100vh - 100px);
    font-size: 1.25rem;
  }

  #user-input {
    font-size: 12px;
    min-height: 24px;
    line-height: 1.3;
    padding: 4px 0;
  }

  .chat-input-wrapper {
    position: fixed;
    bottom: 36px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    padding: 8px;
    box-sizing: border-box;
  }

  .chat-input {
    padding: 10px;
    box-sizing: border-box;
  }

  .input-controls {
    flex-wrap: wrap;
    gap: 8px;
  }

  .char-counter-container {
    font-size: 10px;
  }

  .context-indicator {
    font-size: 10px;
  }

  .context-label {
    display: none; /* Hide "Context Usage:" text on mobile */
  }

  .context-progress-bar {
    width: 60px; /* Smaller progress bar on mobile */
  }

  .context-percent {
    font-size: 10px;
    min-width: 30px;
  }

  .send-button {
    width: 40px;
    height: 40px;
  }

  .context-warning-tooltip {
    width: 250px;
    right: -10px;
    left: auto;
    bottom: calc(100% + 8px);
  }

  .context-indicator-container {
    position: relative;
  }

  .learning-prompts-container {
    padding: 6px 2px !important;
    gap: 5px !important;
  }

  .learning-prompts-icon {
    width: 14px !important;
    height: 14px !important;
    margin-right: 3px !important;
  }

  .learning-prompt-pill {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }

  .close-prompts-button {
    width: 18px !important;
    height: 18px !important;
    padding: 2px !important;
  }

  .close-prompts-button svg {
    width: 10px !important;
    height: 10px !important;
  }

  .disclaimer {
    position: fixed;
    bottom: 0;
    width: calc(100% - 20px);
    font-size: 9px;
    background-color: white;
    box-sizing: border-box;
    z-index: 20;
    max-width: calc(100% - 120px);
    margin-left: 28px;
    margin-right: auto;
    left: 0;
  }

  #send-button {
    font-size: 17px;
  }
  
  .chat-messages {
    padding: 15px;
    padding-bottom: 140px;
    max-height: calc(100vh - 280px);
  }

  .solace-icon {
    margin-top: 0;
    max-width: 13.5rem;
    top: 2em;
  }

  .osano-cm-widget--position_left {
    position: fixed;
    border-radius: 3rem;
    right: 1rem;
    left: 0.1rem;
    bottom: -3.2rem;
    font-size: 1rem;
    transform: scale(0.7);
    font-family: figtree, "open-sans", Tahoma, Verdana, sans-serif !important;
  }

  .osano-cm-widget:focus, .osano-cm-widget:hover {
    transform: scale(0.8) !important;
  }

  .feedback-button {
    padding: 7px 10px;
    font-size: 9px;
  }
}

/* 
@media (max-width: 390px) {
    .solace-icon {
        height: 1.9rem;
        margin-top: 2vh;
    }
}

@media (max-width: 360px) {
    .solace-icon {
        height: 1.7rem;
    }
}
*/
@media (max-width: 359px) and (min-width: 340px){
    .top-banner {
        justify-content: center; /* Center content on mobile */
    }

    .solace-icon {
        margin-top: 0;
        max-width: 5rem;
        top: 25px;
        left: 50%;
        transform: translateX(-50%); /* Center the logo horizontally */
    }

    /* Sidebar appears above input bar on mobile */
    .sidebar-icon-panel {
        z-index: 110 !important;
    }

    body.sidebar-open .sidebar-icon-panel {
        z-index: 110 !important;
    }

    .osano-cm-widget--position_left {
       /* top: 80px;  Move to top right for smaller devices too */
	    bottom: 130px;
        margin-right: 1px;
    }

    .feedback-button {
        font-size: 9px;
        padding: 6px 10px;
    }

    .chat-header {
        padding-left: 15px;
    }

    .chat-container {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .chat-input-wrapper {
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
    }

    .chat-messages {
        padding: 15px;
        padding-bottom: 140px;
        max-height: calc(100vh - 300px);
    }

    .learning-prompts-container {
        padding: 6px 2px !important;
        gap: 5px !important;
    }

    .learning-prompts-icon {
        width: 14px !important;
        height: 14px !important;
        margin-right: 3px !important;
    }

    .learning-prompt-pill {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }

    .close-prompts-button {
        width: 18px !important;
        height: 18px !important;
    }

    .close-prompts-button svg {
        width: 10px !important;
        height: 10px !important;
    }
}

/* Very small screens */
@media (max-width: 339px) {
    .top-banner {
        justify-content: center; /* Center content on mobile */
    }

    .solace-icon {
        margin-top: 0;
        max-width: 4.5rem;
        top: 25px;
        left: 50%;
        transform: translateX(-50%); /* Center the logo horizontally */
    }

    /* Sidebar appears above input bar on mobile */
    .sidebar-icon-panel {
        z-index: 110 !important;
    }

    body.sidebar-open .sidebar-icon-panel {
        z-index: 110 !important;
    }

    .chat-header {
        padding-left: 15px;
    }

    .chat-container {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .chat-input-wrapper {
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
    }

    .chat-messages {
        padding: 15px;
		padding-bottom: 140px;
        max-height: calc(100vh - 300px - env(safe-area-inset-bottom));
    }

    .learning-prompts-container {
        padding: 6px 2px !important;
        gap: 5px !important;
    }

    .learning-prompts-icon {
        width: 14px !important;
        height: 14px !important;
        margin-right: 3px !important;
    }

    .learning-prompt-pill {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }

    .close-prompts-button {
        width: 18px !important;
        height: 18px !important;
    }

    .close-prompts-button svg {
        width: 10px !important;
        height: 10px !important;
    }
}

/* Sidebar styles - now handled by sidebar-icon-panel */

/* Ensure no extra elements appear in section header */
.sidebar-section-header::before,
.sidebar-section-header::after {
  display: none !important;
}

.sidebar-section {
  display: none; /* Hidden by default */
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
  min-height: 0;
  width: 100%;
}

/* Show saved chats section when sidebar is open */
body.sidebar-open .sidebar-section {
  display: flex;
}

.sidebar-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 15px 12px 15px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.sidebar-section-header > span:first-child {
  flex-grow: 1;
}

.chat-count-badge {
  display: none; /* Hidden - not needed */
}

/* Old sidebar-toggle and toggle-icon styles removed - now using .sidebar-icon-button and .hamburger-icon */

.saved-chats-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 12px 15px 12px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Custom scrollbar for saved chats list */
.saved-chats-list::-webkit-scrollbar {
  width: 6px;
}

.saved-chats-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.saved-chats-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.saved-chats-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  border: 1px solid transparent;
}

.chat-item:hover {
  background-color: rgba(0, 200, 149, 0.1);
  border-color: transparent;
}

.chat-item.active {
  background-color: transparent;
  border-color: transparent;
  font-weight: 600;
  color: #00C895;
}

.chat-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.chat-item.active .chat-title {
  color: #00C895;
}

/* Chat options (ellipsis) button */
.chat-options {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0 8px;
  opacity: 0.7;
  vertical-align: middle;
  line-height: 1;
}
.chat-options:hover {
  opacity: 1;
}

/* Dropdown menu for chat options */
.chat-dropdown {
  position: absolute;
  right: 10px;
  top: 40px;
  background: #1a2b3c;
  border: 1px solid #2c3e50;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  min-width: 110px;
  z-index: 100;
  display: none;
}

/* Flip dropdown above when near bottom of sidebar */
.chat-dropdown.flip-up {
  top: auto;
  bottom: 100%; /* Position above the chat item */
  margin-bottom: 5px; /* Small gap above the chat item */
}
.chat-dropdown button {
  background: none;
  border: none;
  color: #fff;
  padding: 10px 18px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.85;
  border-radius: 0;
  transition: background 0.2s;
}
.chat-dropdown button:hover {
  background: #00C895;
  color: #fff;
  opacity: 1;
}

/* Adjust main content - center in available space */
.chat-container {
  margin-left: calc(50vw - 520px); /* Center in space after 60px sidebar: (viewport/2) - (content/2) accounting for sidebar offset */
  margin-right: auto;
  transition: margin-left 0.3s ease;
}

body.sidebar-open .chat-container {
  margin-left: calc(50vw - 410px); /* Center in space after 280px sidebar */
}

/* No chats message */
.no-chats {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 20px;
  font-style: italic;
  font-size: 13px;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #03213B;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: #f0f0f0;
  color: #333;
}

.modal-body {
  padding: 24px;
}

.modal-body label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}

.modal-body input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: figtree, Arial, sans-serif;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.modal-body input[type="text"]:focus {
  outline: none;
  border-color: #00C895;
}

.modal-error {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 8px;
  min-height: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e0e0e0;
}

.modal-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: figtree, Arial, sans-serif;
}

.modal-btn-secondary {
  background-color: #f0f0f0;
  color: #333;
}

.modal-btn-secondary:hover {
  background-color: #e0e0e0;
}

.modal-btn-primary {
  background: linear-gradient(
    90deg,
    rgba(171, 255, 136, 1) 0%,
    rgba(0, 200, 149, 1) 100%
  );
  color: #03213B;
  border: 2px solid #00C895;
}

.modal-btn-primary:hover {
  background: linear-gradient(
    90deg,
    rgba(191, 255, 156, 1) 0%,
    rgba(0, 220, 169, 1) 100%
  );
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 200, 149, 0.3);
}

.modal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.modal-btn-danger {
  background: linear-gradient(
    90deg,
    rgba(171, 255, 136, 1) 0%,
    rgba(0, 200, 149, 1) 100%
  );
  color: #03213B;
  border: 2px solid #00C895;
}

.modal-btn-danger:hover {
  background: linear-gradient(
    90deg,
    rgba(191, 255, 156, 1) 0%,
    rgba(0, 220, 169, 1) 100%
  );
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 200, 149, 0.3);
}


/* Sidebar toggle icon (arrow) */
#sidebar-toggle-icon {
  flex-shrink: 0;
  color: #8A9BA8;
  transition: all 0.3s ease;
}

.sidebar-icon-button:hover #sidebar-toggle-icon {
  color: #8A9BA8;
}

.sidebar-icon-button:active #sidebar-toggle-icon {
  color: #00C895;
}

/* Responsive styles for sidebar */
/* Tablet and below - fully hide sidebar but keep toggle button in header */
@media (max-width: 1024px) {
  /* Center logo on mobile/tablet - slightly left to balance with button */
  .top-banner {
    justify-content: center;
  }

  .solace-icon {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Hide sidebar items except toggle button when collapsed on mobile */
  .sidebar-icon-panel {
    width: auto;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    transition: width 0.3s ease, background-color 0.3s ease;
    z-index: 110 !important;
  }

  /* Hide all sidebar buttons except the toggle */
  .sidebar-icon-panel > *:not(#sidebar-toggle) {
    display: none;
  }

  /* Show sidebar when expanded as overlay */
  body.sidebar-open .sidebar-icon-panel {
    width: 240px !important;
    padding: 10px !important;
    background-color: #03223B;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 110 !important;
  }

  /* Show all items when sidebar is open */
  body.sidebar-open .sidebar-icon-panel > * {
    display: flex !important;
  }

  /* Keep toggle button fixed in header position on mobile (both collapsed and expanded) */
  #sidebar-toggle {
    position: fixed !important;
    top: 30px !important;
    left: 15px !important;
    z-index: 120 !important;
    background-color: rgba(3, 34, 59, 0.9) !important;
    border-radius: 8px !important;
    padding: 10px !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
  }

  /* Hide toggle text on mobile - just show arrow icon */
  #sidebar-toggle-text {
    display: none !important;
  }

  /* Show text when sidebar is open on mobile */
  body.sidebar-open .sidebar-icon-button {
    width: 100% !important;
    padding: 10px 12px !important;
    justify-content: flex-start !important;
  }

  body.sidebar-open .sidebar-icon-button .button-text {
    display: inline !important;
  }

  /* Show saved chats section when sidebar is open on mobile */
  body.sidebar-open .sidebar-section {
    display: flex !important;
  }

  /* Chat container - full width when sidebar collapsed on mobile */
  .chat-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    transition: none;
  }

  body.sidebar-open .chat-container {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* Add overlay when sidebar is open on mobile */
  body.sidebar-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 89;
    pointer-events: auto;
  }

  /* Keep inner content elements at reasonable width on mobile */
  .chat-header,
  .chat-messages,
  .chat-input,
  .chat-input-wrapper {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .chat-header {
    padding-left: 15px;
  }

  .learning-prompts-container {
    max-width: 100% !important;
    padding: 8px 2px !important;
    gap: 6px !important;
  }

  /* Old context-ring mobile styles removed */

  /* Make learning prompts scrollable horizontally on mobile */
  .learning-prompts-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .learning-prompts-pills::-webkit-scrollbar {
    display: none;
  }

  .learning-prompts-icon {
    width: 16px !important;
    height: 16px !important;
    margin-right: 4px !important;
  }

  .learning-prompt-pill {
    font-size: 12px !important;
    padding: 7px 12px !important;
    flex-shrink: 0;
  }

  .close-prompts-button {
    width: 20px !important;
    height: 20px !important;
    padding: 2px !important;
  }

  .close-prompts-button svg {
    width: 12px !important;
    height: 12px !important;
  }
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .chat-title {
    max-width: 160px;
  }

  /* Icon panel stays at left on mobile */
  .sidebar-icon-panel {
    left: 0;
  }
}
/* Version: 1779903827 */
