/* Import Google Font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}
:root {
  /* Dark mode colors */
  --text-color: #E3E3E3;
  --subheading-color: #828282;
  --placeholder-color: #A6A6A6;
  --primary-color: #242424; 
  --secondary-color: #383838;
  --secondary-hover-color: #444;
}
.light_mode {
  /* Light mode colors */
  --text-color: #222; 
  --subheading-color: #A0A0A0;
  --placeholder-color: #6C6C6C;
  --primary-color: #FFF;
  --secondary-color: #E9EEF6;
  --secondary-hover-color: #DBE1EA;
}

::-webkit-scrollbar-track {
  background: #383838;
}

::-webkit-scrollbar-corner {
  background: #000;
}


::-webkit-scrollbar {
  height: 12px;
  width: 12px;
  background: #555;;
}

::-webkit-scrollbar-thumb {
  background: #555;;
  -webkit-border-radius: 1ex;
  -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.75);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: rgb(110, 110, 110)
}



body {
  background: var(--primary-color);
}
.header, .chat-list .message, .typing-form, .explore-container {
  margin: 0 auto;
  max-width: 980px;
}
.explore-container {
  padding: 25px;
  padding-bottom: 20px;
}
.explore-text {
  color: var(--text-color);
}
.explore-text:hover {
  cursor: pointer;
}
.header {
  margin-top: 6vh;
  padding: 1rem;
  overflow-x: hidden;
}
body.hide-header .header {
  margin: 0;
  display: none;
}


.advanced-container {
  padding-top: 50px;
  padding-left: 0px;
  padding-right: 15px;
  display: none;
  color: var(--text-color);
  overflow: auto;
  max-height: 48vh;
  margin-top: 1vh;
}

.advanced-container h5 {
  font-size: 1.6rem;
  margin-bottom: 15px;
}
.advanced-container h6 {
  font-size: 1.2rem;
}
.advanced-table {
  border-collapse: collapse;
  border-spacing: 0px 25px;
  margin-bottom: 25px;
}

.advanced-table td {
  border: 1px solid rgb(81, 81, 81);
  padding: 10px;
}

.advanced-table td:nth-child(1) {  
  font-weight: bold;
  padding-right: 15px;
  vertical-align: middle;
  padding-left: 15px;
}
.examples {
  margin-top: 25px;
}
.examples h6 {
  margin-bottom: 5px;
}

.examples .list-items {
  margin-bottom: 25px;
}
.examples .list-item {
  padding-bottom: 5px;

}

.examples .list-item:hover {
  cursor: pointer;  color: white;
}
body.show-advanced .header .advanced-container {
  display: block;
}
body.show-advanced .suggestion-list {
  display: none;
}
body.show-advanced .chat-list {
  display: none;
}
.header :where(.title, .subtitle) {
  color: var(--text-color);
  font-weight: 500;
  line-height: 4rem;
}
.header .title {
  width: fit-content;
  font-size: 3rem;
  background-clip: text;
  background: linear-gradient(to right, #4285f4, #1c6bcc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header .subtitle {
  font-size: 2.6rem;
  color: var(--subheading-color);
}
.suggestion-list {
  width: 100%;
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin-top: 9.5vh;
  overflow: hidden;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.suggestion-list2 {
  width: 100%;
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
  overflow: hidden;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.suggestion-list .suggestion {
  cursor: pointer;
  padding: 1.25rem;
  width: 222px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border-radius: 0.75rem;
  justify-content: space-between;
  background: var(--secondary-color);
  transition: 0.2s ease;
}
.suggestion-list .suggestion2 {
  cursor: pointer;
  padding: 1.25rem;
  width: 222px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  /* align-items: flex-end; */
  border-radius: 0.75rem;
  justify-content: space-between;
  background: var(--secondary-color);
  transition: 0.2s ease;
}
.suggestion-list .suggestion:hover {
  background: var(--secondary-hover-color);
}
.suggestion-list .suggestion2:hover {
  background: var(--secondary-hover-color);
}
.suggestion-list .suggestion :where(.text, .icon) {
  font-weight: 400;
  color: var(--text-color);
}
.suggestion-list .suggestion2 :where(.text, .icon) {
  font-weight: 400;
  color: var(--text-color);
}
.suggestion-list .suggestion .icon {
  width: 42px;
  height: 42px;
  display: flex;
  font-size: 1.3rem;
  margin-top: 2.5rem;
  align-self: flex-end;
  align-items: center;
  border-radius: 50%;
  justify-content: center;
  color: var(--text-color);
  background: var(--primary-color);
}
.suggestion-list .suggestion2 .icon {
  width: 42px;
  height: 42px;
  display: flex;
  font-size: 1.3rem;
  margin-top: 2.5rem;
  align-self: flex-end;
  align-items: center;
  border-radius: 50%;
  justify-content: center;
  color: var(--text-color);
  background: var(--primary-color);
}
.chat-list {
  max-width: 968px;
  margin: auto;
  padding: 2rem 1rem 12rem;
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-color: #999 transparent;
}
.chat-list .message.incoming {
  margin-top: 1.5rem;
}
.chat-list .message .message-content {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  align-items: center;
}
.chat-list .message .text {
  color: var(--text-color);
  white-space: pre-wrap;
}
.chat-list .message.error .text {
  color: #e55865;
}
.chat-list .message.loading .text {
  display: none;
}
.chat-list .message .avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  align-self: flex-start;
}
.chat-list .message.loading .avatar {
  animation: rotate 3s linear infinite;
}
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}
.chat-list .message .icon {
  color: var(--text-color);
  cursor: pointer;
  height: 35px;
  width: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  font-size: 1.25rem;
  margin-left: 3.5rem;
  visibility: hidden;
}
.chat-list .message .icon.hide {
  visibility: hidden;
}
.chat-list .message:not(.loading, .error):hover .icon:not(.hide){
  visibility: visible;
}
.chat-list .message .icon:hover {
  background: var(--secondary-hover-color);
}
.chat-list .message .loading-indicator {
  display: none;
  gap: 0.8rem;
  width: 100%;
  flex-direction: column;
}
.chat-list .message.loading .loading-indicator {
  display: flex;
}
.chat-list .message .loading-indicator .loading-bar {
  height: 11px;
  width: 100%;
  border-radius: 0.135rem;
  background-position: -800px 0;
  background: linear-gradient(to right, #4285f4, var(--primary-color), #4285f4);
  animation: loading 3s linear infinite;
}
.chat-list .message .loading-indicator .loading-bar:last-child {
  width: 70%;
}
@keyframes loading {
  0% {
    background-position: -800px 0;
  }
  100% {
    background-position: 800px 0;
  }
}
.typing-area {
  position: fixed;
  width: 100%;
  left: 0;
  bottom: 0;
  padding: 1rem;
  background: var(--primary-color);
}
.typing-area :where(.typing-form, .action-buttons) {
  display: flex;
  gap: 0.75rem;
}
.typing-form .input-wrapper {
  width: 100%;
  height: 56px;
  display: flex;
  position: relative;
}
.typing-form .typing-input {
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 1rem;
  color: var(--text-color);
  padding: 1.1rem 4rem 1.1rem 1.5rem;
  border-radius: 100px;
  background: var(--secondary-color);
}
.typing-form .typing-input:focus {
  background: var(--secondary-hover-color);
}
.typing-form .typing-input::placeholder {
  color: var(--placeholder-color);
}
.typing-area .icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  font-size: 1.4rem;
  color: var(--text-color);
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  transition: 0.2s ease;
}
.typing-area .icon:hover {
  background: var(--secondary-hover-color);
}
.typing-form #send-message-button {
  position: absolute;
  right: 0;
  outline: none;
  border: none;
  transform: scale(0);
  background: transparent;
  transition: transform 0.2s ease;
}
.typing-form .typing-input:valid ~ #send-message-button {
  transform: scale(1);
}
.typing-area .disclaimer-text {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1rem;
  color: #747474;
}

.disclaimer-text a, .disclaimer-text a:active, .disclaimer-text a:visited, .disclaimer-text a:focus {
  color: #688fdb !important
}
/* Responsive media query code for small screen */
@media (max-width: 768px) {
  .header :is(.title, .subtitle) {
    font-size: 2rem;
    line-height: 2.6rem;
  }
  .header .subtitle {
    font-size: 1.7rem;
  }
  .typing-area :where(.typing-form, .action-buttons) {
    gap: 0.4rem;
  }
  .typing-form .input-wrapper {
    height: 50px;
  }
  .typing-form .typing-input {
    padding: 1.1rem 3.5rem 1.1rem 1.2rem;
  }
  .typing-area .icon {
    height: 50px;
    width: 50px;
  }
  .typing-area .disclaimer-text {
    font-size: 0.75rem;
    margin-top: 0.5rem;
  }
  body.hide-header .chat-button-container {
    top: 70vh;
  }
  .chat-button span {
    padding-left: 4px;
  }
}

.top {
  display: flex;
  justify-content: space-between;
}

.top div {
  /* width: 50%; */
}

.top-right {
  display: flex;
  justify-content: end;
}

.adash-logo {
  max-width: 180px;
}

.incoming .message-content a,
.incoming .message-content a:visited,
.incoming .message-content a:active {
  color: #688fdb !important;
}

@media (max-width: 769px) {
  .top {
    flex-direction: column-reverse;
  }

  .typing-form .typing-input {
    font-size: 0.9rem;
  }

  .top-right {
    margin-bottom: 30px;
    justify-content: flex-start;
  }

  .suggestion-list .suggestion {
    width: 140px;
  }
  .suggestion-list .suggestion .icon {
    margin-top: 0.5rem;
  }
  .suggestion-list .suggestion2 {
    width: 140px;
  }
  .suggestion-list .suggestion2 .icon {
    margin-top: 0.5rem;
  }

  .header {
    margin-top: 2vh;
  }
}

.chat-button-container {
    position: fixed;
    top: 32px; /* Equivalent to Tailwind's bottom-4 (16px) */
    bottom: initial;
    right: 16px;  /* Equivalent to Tailwind's right-4 (16px) */
    z-index: 1000; /* Equivalent to Tailwind's z-50 (a high z-index) */
    transition: all 1s ease;
}

/* The Chat Button styles */
.chat-button {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 164px;
    height: 40px; /* Equivalent to Tailwind's h-16 (64px) */
    background-color: #0b427f; /* Equivalent to Tailwind's bg-blue-600 */
    color: #ffffff; /* Equivalent to Tailwind's text-white */
    border-radius: 20px; /* Makes it circular */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Equivalent to Tailwind's shadow-lg */
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Equivalent to Tailwind's transition duration-300 ease-in-out */
    text-decoration: none; /* Remove underline for anchor tag */
    outline: none; /* Remove default focus outline */
}
 
/* Hover effects */
.chat-button:hover, .chat-button:active, .chat-button:visited, .chat-button:focus {
    background-color: #0b427f; /* Equivalent to Tailwind's hover:bg-blue-700 */
    transform: scale(1.05); /* Equivalent to Tailwind's hover:scale-105 */
    color: white;
}

/* Focus ring (custom implementation for focus:ring-2 focus:ring-blue-500 focus:ring-opacity-75) */
.chat-button:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.5), 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Custom focus ring */
}

/* SVG icon size */
.chat-button svg {
    width: 28px;  /* Equivalent to Tailwind's w-8 (32px) */
    height: 28px; /* Equivalent to Tailwind's h-8 (32px) */
}



@media (min-width: 769px) {  
  .chat-button-container {
    position: fixed;
    top: initial; /* Equivalent to Tailwind's bottom-4 (16px) */
    bottom: 16px;
    right: 16px;  /* Equivalent to Tailwind's right-4 (16px) */
    z-index: 1000; /* Equivalent to Tailwind's z-50 (a high z-index) */
}
    .chat-button {
        border-radius: 20px;
        font-weight: 400;
        justify-content: space-evenly;
        width: 184px;
    }

    .chat-button span {
        display: inline;
    }
}


/* FORMU LOCALSTORAGE */

    form.ls {
            max-width: 400px;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 5px;
            color: white;
        }
        .ls div {
            margin-bottom: 15px;
        }
        .ls label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        .ls select, textarea {
            width: 100%;
            padding: 8px;
            box-sizing: border-box;
            border: 1px solid #ddd;
            border-radius: 4px;
            resize: vertical;
        }
             textarea {
            min-height: 100px;
        }
        .ls button {
            padding: 10px 15px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }
        .ls button:hover {
            background-color: #0056b3;
        }
        #zprava {
            margin-top: 15px;
            color: green;
        }