/* 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;
}

.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: 1rem;
  left: 3vw;
  max-width: 17.5rem;
  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;
}

#new-conversation-button {
  height: 40px;
  padding: 0 25px;
  background: #ABFF88; /* fallback solid color for older browsers */
  background: linear-gradient(
        90deg,                     /* direction: left → right */
        rgba(171, 255, 136, 1) 0%, /* light green on the left */
        rgba(0, 200, 149, 1) 100%  /* darker green on the right */
    );
  color: #03213B;
  font-weight: 700;
  border: 2px solid #00C895;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  margin: 10px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 180px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  /* Prevent text rendering issues on transform */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  will-change: transform;
}

#new-conversation-button:hover {
  background: linear-gradient(
        90deg,
        rgba(191, 255, 156, 1) 0%,
        rgba(0, 220, 169, 1) 100%
    );
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  border-color: #00DC95;
}

.chat-container {
  flex-grow: 1;
  width: 100%;
  max-width: 800px;
  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;
  text-align: left;
}

.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 */
  padding: 20px 10px;
  font-size: 1rem;
  scroll-behavior: smooth; /* Add smooth scrolling */
  min-height: 200px; /* Ensure minimum height for scrolling */
}

.chat-input {
  flex-shrink: 0;
  display: flex;
  padding: 15px;
  background-color: white;
  border-top: 1px solid #f0f0f0;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  position: sticky;
  bottom: 0;
  z-index: 50;
}

#user-input {
  flex-grow: 1;
  padding: 12px;
  padding-right: 24px; /* Keep padding for content spacing */
  border: 1px solid #4b4a4a;
  border-radius: 30px;
  transition: border-color 0.3s ease, 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; /* Default to hidden, will be changed via JavaScript when needed */
  min-height: 44px;
  max-height: 150px;
  line-height: 1.4;
  font-family: figtree, Arial, sans-serif;
  
  /* 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;
  border-color: #20c997;
}

#send-button {
  margin-left: 10px;
  padding: 12px;
  background: #ABFF88; /* fallback solid color for older browsers */
  background: linear-gradient(
        90deg,                     /* direction: left → right */
        rgba(171, 255, 136, 1) 0%, /* light green on the left */
        rgba(0, 200, 149, 1) 100%  /* darker green on the right */
    );
  color: #03213B;
  border: 2px solid #03213B;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  font-size: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  line-height: 1;
  /* Prevent text rendering issues on transform */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
}

#send-button:hover:not(:disabled) {
  background-color: #1ba37e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #cccccc;
}

/* Character counter styles */
.char-counter {
  position: absolute;
  bottom: -0px;
  right: 80px;
  font-size: 11px;
  color: #666;
  transition: color 0.3s ease;
}

.char-counter.warning {
  color: #e74c3c;
  font-weight: bold;
}

/* Hide character counter on mobile devices */
@media (max-width: 767px) {
  .char-counter {
    display: none;
  }
}

.disclaimer {
  flex-shrink: 0;
  text-align: center;
  padding: 12px;
  color: #4a4a4a;
  font-size: 13px;
  background-color: #f8f8f8;
  /*border-top: 1px solid #e0e0e0; removing for now*/ 
}

.feedback-button {
  position: fixed;
  bottom: 1px;
  right: 2px;
  z-index: 950;
  padding: 12px 20px;
  text-decoration: none;
  white-space: nowrap;
  font-family: figtree, Arial, sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid #d0d0d0;
  background-color: #f8f8f8;
  color: #015b82;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 10px 0 0 0;
}

.feedback-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background-color: #f0f0f0;
  border-color: #b0b0b0;
}


/* 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;
  }

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

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

  #send-button {
    font-size: 16px;
    margin-right: 10px;
    width: 50px;
  }

  .chat-input {
    flex-direction: row;
    width: 100%;
    margin: 0;
  }

  .chat-input {
    width: calc(100% - 50px);
    box-sizing: border-box;
  }

  #user-input {
    width: calc(100% - 50px);
    box-sizing: border-box;
  }

  .chat-messages {
    padding: 15px 5px;
    font-size: 0.7rem;
  }
  
  .osano-cm-widget--position_left {
    right: 15px;
  }

  .feedback-button {
    max-width: 15%;
    font-size: 12px;
    bottom: 1px;
    right: 2px;
    padding: 10px 16px;
  }
}

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

@media (max-width: 750px) {
  .feedback-button {
    font-size: 8px;
  }
}

@media (max-width: 620px) {
  .feedback-button {
    font-size: 8px;
  }
}

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

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

  .chat-container {
    max-width: 85%;
    height: calc(100vh - 140px); /* Adjust height for mobile */
    font-size: 1.25rem;
  }

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

  .chat-input {
    position: fixed;
    bottom: 36px;
    left: 10px;
    right: 0px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    z-index: 100;
    font-size: 12px;
    background-color: white;
  }
 
  .disclaimer {
    position: fixed;
    bottom: 0;
    width: 100%;
    left: -1.5rem;
    font-size: 8px;
    box-sizing: border-box;
    z-index: 20 ;
  }

  #send-button {
    font-size: 17px;
  }
  
  #new-conversation-button {
    font-size: 11px;
    height: 34px;
    min-width: 140px;
    padding: 0 15px;
    top: 25px;
  }
  
  .chat-messages {
    padding: 12px;
    padding-bottom: 150px; /* Significantly increased padding to ensure multiple links at bottom are visible */
  }

  .solace-icon {
    margin-top: 0;
    max-width: 8.5rem;
    top: 2.4em;
  }
.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 {
    margin-bottom: 0px;
    padding: 8px 12px;
    position: fixed;
    bottom: 5px;
    right: 2px;
    font-size: 8px;
    border: 1px solid #d0d0d0;
    background-color: #f8f8f8;
    color: #015b82;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-radius: 8px 0 0 0;
    z-index: 950;
  }
}

/* 
@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){
    .solace-icon {
        margin-top: 0;
        max-width: 5rem;
        top: 25px;
    }
    #new-conversation-button {
        font-size: 10px;
        height: 30px;
        min-width: 120px;
        padding: 0 10px;
        top: 25px;
	}
  
    .osano-cm-widget--position_left {
       /* top: 80px;  Move to top right for smaller devices too */
	    bottom: 130px;
        margin-right: 1px;
    }

    .feedback-button {
        margin-bottom: 0px;
        font-size: 8px;
        padding: 8px 12px;
    }
    
    .chat-messages {
        padding-bottom: 150px; /* Significantly increased padding for small screens */
    }
}

/* Very small screens */
@media (max-width: 339px) {
    .solace-icon {
        margin-top: 0;
        max-width: 4.5rem;
        top: 25px;
    }
    #new-conversation-button {
        font-size: 9px;
        height: 28px;
        min-width: 110px;
        padding: 0 8px;
        top: 25px;
    }
    
    .chat-messages {
		padding-bottom: calc(env(safe-area-inset-bottom) + 16px);
    }
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 100px; /* Same as top-banner height */
  left: 0;
  width: 280px;
  height: calc(100vh - 100px);
  background-color: #03223B;
  color: white;
  transition: transform 0.3s ease;
  z-index: 90;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar.collapsed {
  transform: translateX(-280px);
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  padding: 0;
  background-color: #015B82;
}

.sidebar-tabs {
  display: flex;
  width: 100%;
}

.sidebar-tab {
  flex: 1;
  padding: 15px;
  background-color: #015B82;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border-bottom: 3px solid transparent;
}

.sidebar-tab:hover {
  background-color: #014668;
}

.sidebar-tab.active {
  background: linear-gradient(
    90deg,
    rgba(171, 255, 136, 1) 0%,
    rgba(0, 200, 149, 1) 100%
  );
  color: #03213B;
  font-weight: 700;
  border-bottom: 3px solid #00C895;
}

#sidebar-toggle {
  background: #03223B;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.sidebar.collapsed .toggle-icon {
  transform: rotate(180deg);
}

.sidebar-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  position: relative;
}

.tab-content {
  display: none !important;
  flex-direction: column;
  gap: 10px;
}

.tab-content.active {
  display: flex !important;
}

.saved-chats-list {
  width: 100%;
}

.learning-prompts-list {
  width: 100%;
}

.learning-prompt-item {
  padding: 12px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.learning-prompt-item:hover:not(.disabled) {
  background: linear-gradient(
    90deg,
    rgba(171, 255, 136, 0.3) 0%,
    rgba(0, 200, 149, 0.3) 100%
  );
  border-color: #00C895;
}

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

.learning-prompt-title {
  font-weight: normal;
  margin-bottom: 5px;
  color: white;
}

.learning-prompt-preview {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.chat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}

.chat-item:hover {
  background: linear-gradient(
    90deg,
    rgba(171, 255, 136, 0.3) 0%,
    rgba(0, 200, 149, 0.3) 100%
  );
  border-color: #00C895;
}

.chat-item.active {
  background: linear-gradient(
    90deg,
    rgba(171, 255, 136, 1) 0%,
    rgba(0, 200, 149, 1) 100%
  );
  color: #03213B;
  font-weight: 700;
}

.chat-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* 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 when sidebar is open */
.chat-container {
  margin-left: auto;
  margin-right: auto;
}

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

/* 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);
}

/* External sidebar toggle button */
.sidebar-toggle-external {
  position: fixed;
  top: 100px;
  left: 0;
  background-color: #015B82;
  color: white;
  border: none;
  border-radius: 0 0 5px 0;
  padding: 12px 10px;
  cursor: pointer;
  z-index: 89;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.3s ease, background-color 0.3s ease;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  width: 45px;
  height: 51px;
}

.sidebar-toggle-external:hover {
  background-color: #014668;
}

body.sidebar-open .sidebar-toggle-external {
  left: 280px;
}

/* Hamburger icon */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate hamburger to X when sidebar is open */
body.sidebar-open .hamburger-icon span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

body.sidebar-open .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

body.sidebar-open .hamburger-icon span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Responsive styles for sidebar */
/* Tablet and below - auto-hide sidebar like ChatGPT */
@media (max-width: 1024px) {
  /* Hide sidebar by default on smaller screens */
  .sidebar {
    transform: translateX(-280px);
  }
  
  /* Show sidebar when explicitly opened */
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  
  /* Keep toggle button visible and at left edge when sidebar is hidden */
  .sidebar-toggle-external {
    left: 0;
  }
  
  /* Move toggle button with sidebar when open */
  body.sidebar-open .sidebar-toggle-external {
    left: 280px;
  }
  
  /* Add overlay when sidebar is open */
  body.sidebar-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 80;
  }
  
  body.sidebar-open .chat-container {
    margin-left: 0;
  }
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .sidebar {
    width: 240px;
    transform: translateX(-240px);
  }
  
  .sidebar.collapsed {
    transform: translateX(-240px);
  }
  
  /* Show sidebar when explicitly opened */
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  
  .chat-title {
    max-width: 160px;
  }

  /* Ensure sidebar toggle button stays attached to sidebar on mobile */
  body.sidebar-open .sidebar-toggle-external {
    left: 240px;
  }
}
