/* ===================================
   FONT IMPORTS
   =================================== */

/* Switzer Font Family */
@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-Thin.woff2') format('woff2'),
    url('fonts/Switzer-Thin.woff') format('woff'),
    url('fonts/Switzer-Thin.ttf') format('truetype');
  font-weight: 100;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-ThinItalic.woff2') format('woff2'),
    url('fonts/Switzer-ThinItalic.woff') format('woff'),
    url('fonts/Switzer-ThinItalic.ttf') format('truetype');
  font-weight: 100;
  font-display: swap;
  font-style: italic;
}

@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-Extralight.woff2') format('woff2'),
    url('fonts/Switzer-Extralight.woff') format('woff'),
    url('fonts/Switzer-Extralight.ttf') format('truetype');
  font-weight: 200;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-ExtralightItalic.woff2') format('woff2'),
    url('fonts/Switzer-ExtralightItalic.woff') format('woff'),
    url('fonts/Switzer-ExtralightItalic.ttf') format('truetype');
  font-weight: 200;
  font-display: swap;
  font-style: italic;
}

@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-Light.woff2') format('woff2'),
    url('fonts/Switzer-Light.woff') format('woff'),
    url('fonts/Switzer-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-LightItalic.woff2') format('woff2'),
    url('fonts/Switzer-LightItalic.woff') format('woff'),
    url('fonts/Switzer-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
  font-style: italic;
}

@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-Regular.woff2') format('woff2'),
    url('fonts/Switzer-Regular.woff') format('woff'),
    url('fonts/Switzer-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-Italic.woff2') format('woff2'),
    url('fonts/Switzer-Italic.woff') format('woff'),
    url('fonts/Switzer-Italic.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: italic;
}

@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-Medium.woff2') format('woff2'),
    url('fonts/Switzer-Medium.woff') format('woff'),
    url('fonts/Switzer-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-MediumItalic.woff2') format('woff2'),
    url('fonts/Switzer-MediumItalic.woff') format('woff'),
    url('fonts/Switzer-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
  font-style: italic;
}

@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-Bold.woff2') format('woff2'),
    url('fonts/Switzer-Bold.woff') format('woff'),
    url('fonts/Switzer-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-BoldItalic.woff2') format('woff2'),
    url('fonts/Switzer-BoldItalic.woff') format('woff'),
    url('fonts/Switzer-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
  font-style: italic;
}

/* Switzer Variable Font */
@font-face {
  font-family: 'Switzer-Variable';
  src: url('fonts/Switzer-Variable.woff2') format('woff2'),
    url('fonts/Switzer-Variable.woff') format('woff'),
    url('fonts/Switzer-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Switzer-Variable';
  src: url('fonts/Switzer-VariableItalic.woff2') format('woff2'),
    url('fonts/Switzer-VariableItalic.woff') format('woff'),
    url('fonts/Switzer-VariableItalic.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
  font-style: italic;
}

/* Clash Display Font Family */
@font-face {
  font-family: 'Clash Display';
  src: url('fonts/ClashDisplay-Extralight.woff2') format('woff2'),
    url('fonts/ClashDisplay-Extralight.woff') format('woff'),
    url('fonts/ClashDisplay-Extralight.ttf') format('truetype');
  font-weight: 200;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Clash Display';
  src: url('fonts/ClashDisplay-Light.woff2') format('woff2'),
    url('fonts/ClashDisplay-Light.woff') format('woff'),
    url('fonts/ClashDisplay-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Clash Display';
  src: url('fonts/ClashDisplay-Regular.woff2') format('woff2'),
    url('fonts/ClashDisplay-Regular.woff') format('woff'),
    url('fonts/ClashDisplay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Clash Display';
  src: url('fonts/ClashDisplay-Medium.woff2') format('woff2'),
    url('fonts/ClashDisplay-Medium.woff') format('woff'),
    url('fonts/ClashDisplay-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Clash Display';
  src: url('fonts/ClashDisplay-Semibold.woff2') format('woff2'),
    url('fonts/ClashDisplay-Semibold.woff') format('woff'),
    url('fonts/ClashDisplay-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Clash Display';
  src: url('fonts/ClashDisplay-Bold.woff2') format('woff2'),
    url('fonts/ClashDisplay-Bold.woff') format('woff'),
    url('fonts/ClashDisplay-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

/* Clash Display Variable Font */
@font-face {
  font-family: 'Clash Display-Variable';
  src: url('fonts/ClashDisplay-Variable.woff2') format('woff2'),
    url('fonts/ClashDisplay-Variable.woff') format('woff'),
    url('fonts/ClashDisplay-Variable.ttf') format('truetype');
  font-weight: 200 700;
  font-display: swap;
  font-style: normal;
}

/* ===================================
   GLOBAL STYLES
   =================================== */

:root {
  --primary-color: #1A54F9;
  --headline-font: "Clash Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --text-font: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--text-font);
  font-weight: 400;
}

body {
  background: #E3F2FD;
}

h2 {
  font-family: var(--headline-font);
  font-weight: 600;
}

/* ===================================
   CHATBOT TOGGLER
   =================================== */

.chatbot-toggler {
  position: fixed;
  bottom: 30px;
  right: 35px;
  outline: none;
  border: none;
  height: 50px;
  width: 50px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chatbot-toggler:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.show-chatbot .chatbot-toggler {
  transform: rotate(90deg);
}

.chatbot-toggler span {
  color: #fff;
  position: absolute;
}

.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child {
  opacity: 0;
}

body.show-chatbot .chatbot-toggler span:last-child {
  opacity: 1;
}

/* ===================================
   CHATBOT CONTAINER
   =================================== */

.chatbot {
  position: fixed;
  right: 35px;
  bottom: 90px;
  width: 420px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: bottom right;
  box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1),
    0 32px 64px -48px rgba(0, 0, 0, 0.5);
  transition: all 0.1s ease;
}

body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* ===================================
   FULLSCREEN MODE
   =================================== */

.chatbot.maximized {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0;
  transform: scale(1);
  transform-origin: center;
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.chatbot:not(.maximized) {
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.chatbot.maximized .chatbox {
  height: calc(100vh - 150px);
  transition: height 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.chatbot:not(.maximized) .chatbox {
  transition: height 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Hide toggler when maximized */
body.show-chatbot .chatbot.maximized~.chatbot-toggler {
  display: none;
}

/* ===================================
   CHATBOT HEADER
   =================================== */
.chat-header {
  display: flex;
  align-items: center;
  /* vertical alignment */
  gap: 10px;
  /* space between items */

  padding: 12px 16px;
  border-bottom: 1px solid #e5e5e5;

  background: var(--primary-color);
  /* MATCH THEME COLOR */
  color: #ffffff;

  width: 100%;
  /* match chatbot width */
  box-sizing: border-box;
  /* padding included in width */
}

.chat-header img {
  height: 28px;
  /* control height */
  width: auto;
  /* preserve aspect ratio */
  flex-shrink: 0;
  /* prevent squishing */
}

.chat-header h2 {
  flex: 1;
  /* take remaining space */
}

.chat-header .maximize-btn {
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
  user-select: none;
  font-size: 1.3rem;
}

.chat-header .maximize-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===================================
   CHATBOX
   =================================== */

.chatbot .chatbox {
  overflow-y: auto;
  height: 510px;
  padding: 30px 20px 100px;
  background: #f8f9fa;
}

/* Empty state */
.chatbox:empty::after {
  content: "Beginne eine Unterhaltung...";
  display: block;
  text-align: center;
  color: #999;
  font-style: italic;
  margin-top: 50px;
}

/* ===================================
   SCROLLBAR
   =================================== */

.chatbot .chatbox::-webkit-scrollbar {
  width: 6px;
}

.chatbot .chatbox::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.chatbot .chatbox::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}

.chatbot .chatbox::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ===================================
   CHAT MESSAGES
   =================================== */

.chatbox .chat {
  display: flex;
  list-style: none;
  margin-bottom: 20px;
  flex-direction: column;
  animation: fadeIn 0.5s;
}

/* Outgoing (User) Messages */
.chatbox .outgoing {
  align-items: flex-end;
}

.chatbox .outgoing p {
  align-self: flex-end;
  font-family: var(--text-font);
  background: var(--primary-color);
  color: #fff;
  padding: 14px 18px;
  border-radius: 18px 18px 4px 18px;
  max-width: 85%;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.5;
  font-size: 0.95rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  animation: slideInRight 0.3s ease;
}

/* Incoming (Bot) Messages */
.chatbox .incoming {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.chatbox .incoming img {
  width: 32px;
  height: 32px;
  color: #fff;
  cursor: default;
  text-align: center;
  line-height: 32px;
  align-self: flex-start;
  background: var(--primary-color);
  border-radius: 4px;
  margin: 0 10px 7px 0;
}

.chatbox .incoming .message-content {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.chatbox .incoming p,
.chatbox .incoming .bot-answer {
  background: #fff;
  color: #333;
  padding: 14px 18px;
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
  line-height: 1.6;
  animation: slideInLeft 0.3s ease;
}


/* Bot Answer Specific Styling */
.bot-answer {
  font-family: var(--text-font);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.bot-answer strong {
  font-weight: 600;
  color: #1a1a1a;
}

.bot-answer p {
  margin-bottom: 1em;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.bot-answer ul {
  list-style: disc;
  margin-bottom: 1em;
  padding-left: 1.25em;
}

.bot-answer ol {
  list-style: decimal;
  margin-bottom: 1em;
  padding-left: 1.25em;
}

.bot-answer li {
  margin-bottom: 0.5em;
}


/* System Messages */
.chatbox .system p {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
  background: transparent;
  padding: 10px;
  margin: 20px auto;
}

/* Error Messages */
.chatbox .chat p.error {
  color: #721c24;
}

/* ===================================
   THINKING INDICATOR
   =================================== */

.thinking-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 18px;
  background: #fff;
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.thinking-indicator .dot {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.7;
  animation: dotPulse 1.8s ease-in-out infinite;
}

.thinking-indicator .dot:nth-child(1) {
  animation-delay: 0.2s;
}

.thinking-indicator .dot:nth-child(2) {
  animation-delay: 0.3s;
}

.thinking-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* ===================================
   CHAT INPUT
   =================================== */

/* Feedback Validation Styles */
.feedback-textarea-error {
  border-color: #dc3545 !important;
  background-color: #fff8f8 !important;
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.feedback-error-msg {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.chatbot .chat-input {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #f0f0f0;
  padding: 15px 20px;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);

  display: grid;
  grid-template-columns: auto 1fr auto;
  /* filter | textarea | send */
  grid-template-rows: auto;
  grid-template-areas: "filter input send";
  gap: 10px;
  align-items: center;
}

/* Wrapper for Toggle + Popup */
.filter-wrapper {
  grid-area: filter;
  position: relative;
  display: flex;
  align-items: center;
}

/* The Tune Icon */
.filter-toggle-btn {
  color: #888;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-toggle-btn:hover,
.filter-toggle-btn.active {
  background: #e0e0e0;
  color: var(--primary-color);
}

/* The Popup Menu */
.chat-input .module-filter {
  position: absolute;
  bottom: 50px;
  left: 0;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  /* Stack vertically for menu look */
  gap: 6px;
  min-width: 150px;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  pointer-events: none;
}

/* Show State */
.filter-wrapper.show .module-filter {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-input .module-filter .module {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  /* cleaner look */
  background: transparent;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

/* Hover */
.chat-input .module-filter .module:hover {
  background: #f5f5f5;
  color: var(--primary-color);
}

/* Selected */
.chat-input .module-filter .module.active {
  background: var(--primary-color);
  /* Light blue bg optionally? or full solid? */
  color: #fff;
  border-color: transparent;
}

.chat-input textarea {
  grid-area: input;
  height: 50px;
  width: 100%;
  border: 1px solid #e0e0e0;
  outline: none;
  resize: none;
  max-height: 150px;
  padding: 14px 16px;
  font-size: 0.95rem;
  border-radius: 25px;
  background: #f8f9fa;
  transition: all 0.3s ease;
  font-family: var(--text-font);
  overflow-y: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.chat-input textarea::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Edge (Chromium) */
}


.chat-input textarea:focus {
  border-color: var(--primary-color);
  background: #fff;
}

.chat-input .send-btn {
  grid-area: send;
  align-self: flex-end;
  color: var(--primary-color);
  cursor: pointer;
  height: 50px;
  display: flex;
  align-items: center;
  visibility: hidden;
  font-size: 1.35rem;
}

.chat-input textarea:valid~.send-btn {
  visibility: visible;
}

/* ===================================
   FAQ BUTTONS
   =================================== */

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
}

.faq-btn {
  background: #fff;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 18px;
  border-radius: 25px;
  /* Pill shape */
  font-family: var(--text-font);
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
  /* Full width in the container */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.faq-btn:hover {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* ===================================
   FEEDBACK SYSTEM
   =================================== */

.feedback-icons {
  margin-top: 5px;
  display: flex;
  gap: 10px;
}

.feedback-icons .thumbs-icon {
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--primary-color);
  background: none;
  border: none;
  padding: 4px;
  margin: 0;
  transition: all 0.3s ease;
}

.feedback-icons .thumbs-icon:hover {
  background: rgba(26, 84, 249, 0.1);
  border-radius: 50%;
}

.feedback-icons .thumbs-icon.active {
  color: #fff;
  background: var(--primary-color);
  border-radius: 4px;
  padding: 4px;
}

/* Modern Minimal Feedback System */
.inline-feedback {
  margin-top: 12px;
  margin-bottom: 8px;
  padding: 0;
  border: none;
  background: transparent;
  animation: fadeIn 0.4s ease;
}

.inline-feedback textarea {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: none;
  background: #fcfcfc;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  min-height: 80px;
}

.inline-feedback textarea:focus {
  background: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(26, 84, 249, 0.1);
  outline: none;
}

.inline-feedback-buttons {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.inline-feedback-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.inline-feedback-buttons button.feedback-submit {
  background: var(--primary-color);
  color: #fff;
}

.inline-feedback-buttons button.feedback-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(26, 84, 249, 0.2);
}

.inline-feedback-buttons button.feedback-cancel {
  background: transparent;
  color: #666;
}

.inline-feedback-buttons button.feedback-cancel:hover {
  background: #f0f0f0;
  color: #333;
}

.feedback-already-submitted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 4px;
  padding: 0;
  background: transparent;
  font-weight: 400;
  animation: fadeIn 0.3s ease;
}

.feedback-already-submitted .material-symbols-rounded {
  font-size: 0.95rem;
  color: #28a745;
}

.feedback-thankyou {
  font-size: 0.95rem;
  color: var(--primary-color);
  text-align: center;
  margin-top: 8px;
  padding: 12px;
  background: #eef2ff;
  border-radius: 12px;
  font-weight: 500;
  animation: fadeIn 0.4s ease;
}

/* ===================================
   MODAL
   =================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  animation: modalSlideIn 0.3s ease;
}

.modal-content h3 {
  margin: 0 0 15px 0;
  color: var(--primary-color);
  font-family: var(--headline-font);
  font-size: 1.5rem;
}

.modal-content p {
  margin: 0 0 25px 0;
  color: #333;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.modal-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--text-font);
}

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

.modal-cancel:hover {
  background: #e0e0e0;
}

.modal-confirm {
  background: var(--primary-color);
  color: #fff;
}

.modal-confirm:hover {
  background: #1545d9;
  box-shadow: 0 2px 8px rgba(26, 84, 249, 0.3);
}

/* ===================================
   IMAGE LIGHTBOX
   =================================== */

.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  cursor: zoom-out;
  animation: fadeIn 0.25s ease;
}

.image-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  animation: lightboxZoomIn 0.3s ease;
  cursor: default;
  object-fit: contain;
}

.image-lightbox .lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.image-lightbox .lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes lightboxZoomIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Bot-answer images: thumbnail preview, clickable for full-res */
.bot-answer img {
  max-width: 120px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 8px 0;
  cursor: zoom-in;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background: #fff;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.bot-answer img:hover {
  opacity: 0.85;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes dotPulse {

  0%,
  44% {
    transform: translateY(0);
  }

  28% {
    opacity: 0.4;
    transform: translateY(-4px);
  }

  44% {
    opacity: 0.2;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 490px) {
  .chatbot-toggler {
    right: 20px;
    bottom: 20px;
  }

  .chatbot {
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    width: 100%;
  }

  .chatbot .chatbox {
    height: 90%;
    padding: 25px 15px 100px;
  }

  .chatbot header .close-btn {
    right: 15px;
  }
}
