/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  margin: 0.67em 0;
  font-size: 2em;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  margin: 0; /* 2 */
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  padding: 0;
  border-style: none;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  color: inherit; /* 2 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  font: inherit; /* 2 */
  -webkit-appearance: button; /* 1 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

:root {
  --color-bg: #002756; /* Deep navy background */
  --color-surface: #083b6f; /* Slightly lighter panel surface */
  --color-border: #1e4f84; /* Muted border contrast */
  /* Text colors */
  --color-text-primary: #e2e8f0; /* Almost white but soft */
  --color-text-secondary: #94a3b8; /* Muted gray-blue for less important text */
  /* Input and interactive elements */
  --color-input-bg: #0c3b68; /* Input fields surface */
  --color-input-border: #285e9c; /* Subtle border */
  --color-hover-bg: #104d88; /* Hover state, lighter blue tone */
  /* Accent elements (subtle) */
  --color-accent-muted: #4e80c7; /* Muted blue-gray for icons, lines */
  --color-focus-outline: #5ca2ff; /* Bright outline for focus rings */
  /* Accent elements (vivid) */
  --color-accent: #3b82f6; /* Primary vivid blue */
  --color-accent-hover: #60a5fa; /* Lighter hover for vivid accents */
  /* System messages or status bubbles */
  --color-system-bg: #0e3f72; /* Subtle info panel background */
  /* Error state */
  --color-error: #ef4444; /* Bright error red */
  --color-error-border: #b91c1c; /* Deep border red */
  --color-error-text: #fca5a5; /* Lighter red text for readability */
  --font-family: "WintershallDea";
  --radius: 4px;
  font-size: 62.5%;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  margin-top: 0;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.field {
  margin-bottom: 10px;
}
.field__label {
  display: inline-block;
  padding: 5px 5px 0;
  font-size: 1.4rem;
  background: var(--color-input-bg);
  position: relative;
  top: 9px;
  left: 4px;
}
.field__field {
  width: 100%;
  height: 40px;
  padding-left: 9px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}
.field__field:focus-visible {
  outline: 2px solid var(--color-accent);
}

.form-btn {
  margin-top: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 4px;
  color: var(--color-text-primary);
}

.form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.error-message {
  font-size: 1.2rem;
  color: var(--color-error-text);
}

.chat-wrapper {
  position: relative;
  height: 100dvh;
}

.chat-interface {
  overflow-y: auto;
  position: relative;
  padding-inline: 10px;
}

.message-input {
  field-sizing: content;
  max-width: 900px;
  width: 100%;
  color: var(--color-text-primary);
}
.message-input::-moz-placeholder {
  color: var(--color-text-primary);
  opacity: 0.8;
}
.message-input::placeholder {
  color: var(--color-text-primary);
  opacity: 0.8;
}

.input-area-wrapper {
  position: fixed;
  bottom: 20px;
  left: 300px;
  right: 0;
}
.input-area-wrapper::after {
  content: "";
  position: absolute;
  top: -20px;
  bottom: -50px;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, var(--color-bg) 17%, var(--color-bg) 100%);
}
@media (max-width: 768px) {
  .input-area-wrapper {
    left: 0;
    right: 0;
    bottom: 10px;
    padding: 0 10px;
  }
}

.input-area {
  max-width: 900px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: 8px;
  position: relative;
  z-index: 9;
}

.message-input {
  min-height: 40px;
  border: 0;
  background: transparent;
  padding: 10px;
  resize: none;
}

.send-btn {
  border: 0;
  background: url(../icons/send.svg) no-repeat center transparent;
  background-size: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.attach-btn {
  border: 0;
  background: url(../icons/attachment.svg) no-repeat center transparent;
  background-size: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
  position: relative;
}
.attach-btn:hover {
  opacity: 0.7;
}

.attach-btn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.messages {
  max-width: 900px;
  width: 100%;
  margin-inline: auto;
  padding-top: 50px;
  padding-bottom: 300px;
}
@media (max-width: 768px) {
  .messages {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 70px;
  }
}

.message.user {
  max-width: 500px;
  margin-left: auto;
  background: var(--color-surface);
  padding: 10px;
  border-radius: 8px;
  margin-block: 20px;
}
.message.ai .message-content pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 12px;
  overflow-x: auto;
  margin: 10px 0;
}
.message.ai .message-content pre code {
  background: transparent;
  padding: 0;
  border: none;
  font-size: 1.3rem;
  line-height: 1.5;
}
.message.ai .message-content code {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 2px 6px;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.3rem;
}
.message.ai .message-content h1,
.message.ai .message-content h2,
.message.ai .message-content h3,
.message.ai .message-content h4,
.message.ai .message-content h5,
.message.ai .message-content h6 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.3;
}
.message.ai .message-content h1 {
  font-size: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}
.message.ai .message-content h2 {
  font-size: 1.8rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 6px;
}
.message.ai .message-content h3 {
  font-size: 1.6rem;
}
.message.ai .message-content h4 {
  font-size: 1.5rem;
}
.message.ai .message-content h5,
.message.ai .message-content h6 {
  font-size: 1.4rem;
}
.message.ai .message-content ul,
.message.ai .message-content ol {
  margin: 10px 0;
  padding-left: 24px;
}
.message.ai .message-content ul li,
.message.ai .message-content ol li {
  margin: 4px 0;
  line-height: 1.6;
}
.message.ai .message-content ul {
  list-style-type: disc;
}
.message.ai .message-content ol {
  list-style-type: decimal;
}
.message.ai .message-content blockquote {
  border-left: 4px solid var(--color-border);
  padding-left: 16px;
  margin: 10px 0;
  color: var(--color-text-secondary);
  font-style: italic;
}
.message.ai .message-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
  font-size: 1.4rem;
}
.message.ai .message-content table th,
.message.ai .message-content table td {
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  text-align: left;
}
.message.ai .message-content table th {
  background: var(--color-surface);
  font-weight: 700;
}
.message.ai .message-content table tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}
.message.ai .message-content a {
  color: var(--color-accent);
  text-decoration: none;
}
.message.ai .message-content a:hover {
  text-decoration: underline;
}
.message.ai .message-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 16px 0;
}
.message.ai .message-content p {
  margin: 8px 0;
  line-height: 1.6;
}
.message.ai .message-content strong {
  font-weight: 700;
}
.message.ai .message-content em {
  font-style: italic;
}

.chat-bubble.user {
  background-color: var(--color-input-bg);
  border: 1px solid var(--color-border);
}

.chat-bubble.ai {
  background-color: var(--color-surface);
}

.chat-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 300px auto;
}
@media (max-width: 768px) {
  .chat-wrapper {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  background: var(--color-surface);
  position: relative;
}
.sidebar .top {
  text-align: center;
}
.sidebar .bottom {
  padding: 10px;
}
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    bottom: 0;
    width: 300px;
    z-index: 1000;
    transition: left 0.3s ease;
  }
  .sidebar.active {
    left: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }
}

.chats-list {
  height: calc(100dvh - 190px);
  overflow-y: auto;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block: 10px;
  /* Handle */
  /* Handle on hover */
}
.chats-list::-webkit-scrollbar {
  width: 5px;
  border-radius: 5px;
}
.chats-list::-webkit-scrollbar-track {
  background: var(--color-border);
}
.chats-list::-webkit-scrollbar-thumb {
  background: var(--color-accent);
}
.chats-list::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-hover);
}

.starters-list {
  position: fixed;
  bottom: 100px;
  left: 300px;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
@media (max-width: 768px) {
  .starters-list {
    left: 0;
    right: 0;
    bottom: 90px;
    padding: 0 10px;
  }
}
.starters-list .starter-btn {
  border: 1px solid var(--color-input-border);
  background: var(--color-input-bg);
  padding: 5px 10px;
  line-height: 140%;
  border-radius: 4px;
  font-size: 1.4rem;
  cursor: pointer;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 250px;
  transition: background 0.2s;
}
.starters-list .starter-btn:hover {
  background: var(--color-border);
}
@media (max-width: 768px) {
  .starters-list .starter-btn {
    font-size: 1.3rem;
    max-width: 150px;
    padding: 4px 8px;
  }
}

.chat-link-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.chat-link-wrapper:hover .chat-link-settings-btn {
  opacity: 1;
  pointer-events: auto;
}

.chat-link {
  background: var(--color-border);
  display: block;
  padding: 10px;
  border-radius: var(--radius);
  transition: background-color 0.2s;
  flex: 1;
}
.chat-link:hover, .chat-link.active {
  background-color: var(--color-accent);
}
.chat-link__name {
  overflow: hidden;
  white-space: nowrap;
  display: block;
  text-overflow: ellipsis;
  font-weight: 700;
  max-width: 240px;
}
.chat-link__bottom {
  font-size: 1.2rem;
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
}

.chat-link-settings-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-surface);
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 10;
  padding: 0;
}
.chat-link-settings-btn img {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.chat-link-settings-btn:hover {
  background: var(--color-hover-bg);
}
.chat-link-settings-btn:hover img {
  opacity: 1;
}

.filepond--root {
  margin-bottom: 10px;
}

.filepond--drop-label {
  min-height: 40px !important;
}

.filepond--panel-root {
  background-color: transparent;
  border: 1px dashed var(--color-input-border);
  border-radius: 4px;
}

.filepond--item-panel {
  background-color: var(--color-surface);
}

.filepond--drip-blob {
  background-color: var(--color-input-border);
}

.filepond--drop-label label {
  font-size: 1.4rem;
  color: var(--color-text-primary);
}

.uploaded-files-list {
  display: none;
  max-width: 900px;
  width: 100%;
  margin-inline: auto;
  margin-bottom: 10px;
  padding: 10px;
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: 8px;
  gap: 8px;
  flex-direction: column;
}
.uploaded-files-list:empty {
  display: none;
}

.upload-status {
  display: none;
  max-width: 900px;
  width: 100%;
  margin-inline: auto;
  margin-bottom: 10px;
  padding: 10px 15px;
  background: var(--color-surface);
  border: 1px solid var(--color-input-border);
  border-radius: 8px;
  font-size: 1.4rem;
  color: var(--color-text-primary);
  position: relative;
  z-index: 10;
}
.upload-status::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--color-text-primary);
  border-top-color: transparent;
  border-radius: 50%;
  margin-right: 8px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.uploaded-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--color-surface);
  border-radius: 4px;
  font-size: 1.4rem;
}
.uploaded-file-item .file-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 10px;
}
.uploaded-file-item .remove-file-btn {
  background: transparent;
  border: 0;
  color: var(--color-text-primary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}
.uploaded-file-item .remove-file-btn:hover {
  opacity: 1;
  color: #ff4444;
}

.message.loading {
  max-width: 500px;
  padding: 10px;
  border-radius: 8px;
  margin-block: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
}
.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-text-primary);
  opacity: 0.4;
  animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}
.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-10px);
  }
}
.file-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.file-modal.active {
  display: flex;
}
.file-modal .file-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.file-modal .file-modal-content {
  position: relative;
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}
.file-modal .file-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-input-border);
}
.file-modal .file-modal-header h3 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text-primary);
}
.file-modal .file-modal-close {
  background: transparent;
  border: 0;
  font-size: 3rem;
  line-height: 1;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.file-modal .file-modal-close:hover {
  opacity: 1;
}
.file-modal .file-modal-body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
}
.file-modal .file-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-input-border);
  display: flex;
  justify-content: flex-end;
}
.file-modal .file-modal-done-btn {
  background: var(--color-accent);
  color: white;
  border: 0;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.file-modal .file-modal-done-btn:hover {
  opacity: 0.9;
}

.file-modal .filepond--root {
  width: 100%;
  margin-right: 0;
}

.file-modal .filepond--drop-label {
  min-height: 150px !important;
}

.source-link {
  font-size: 1.2rem;
  display: inline-block;
  margin-right: 10px;
}

.filepond--drop-label,
.filepond--drip {
  background: var(--color-border);
  opacity: 1;
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
  background: var(--color-accent);
  border: 0;
  border-radius: 4px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.2s;
}
.sidebar-toggle:hover {
  background: var(--color-accent-hover);
}
.sidebar-toggle span {
  width: 24px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sidebar-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.sidebar-toggle.active span:nth-child(2) {
  opacity: 0;
}
.sidebar-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
@media (max-width: 768px) {
  .sidebar-toggle {
    display: flex;
  }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
  opacity: 1;
}
@media (max-width: 768px) {
  .sidebar-overlay.active {
    display: block;
  }
}

.chat-header {
  position: fixed;
  top: 10px;
  left: 300px;
  right: 0;
  z-index: 100;
  padding: 0 20px;
}
@media (max-width: 768px) {
  .chat-header {
    left: 0;
    padding: 0 60px 0 15px;
  }
}

.chat-header-content {
  max-width: 900px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.chat-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
@media (max-width: 768px) {
  .chat-title {
    font-size: 1.3rem;
  }
}

#chatSettingsModal .chat-settings-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
#chatSettingsModal .chat-settings-form label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 5px;
  display: block;
}
#chatSettingsModal .chat-settings-form .chat-name-input {
  width: 100%;
  padding: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-primary);
  font-size: 1.4rem;
  font-family: var(--font-family);
}
#chatSettingsModal .chat-settings-form .chat-name-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
#chatSettingsModal .chat-settings-form .btn-primary {
  background: var(--color-accent);
  color: white;
  border: 0;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
#chatSettingsModal .chat-settings-form .btn-primary:hover {
  opacity: 0.9;
}
#chatSettingsModal .chat-settings-form .divider {
  height: 1px;
  background: var(--color-border);
  margin: 10px 0;
}
#chatSettingsModal .chat-settings-form .btn-danger {
  background: var(--color-error);
  color: white;
  border: 0;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
#chatSettingsModal .chat-settings-form .btn-danger:hover {
  opacity: 0.9;
}

.admin-box {
  background-color: var(--color-input-bg);
  border: 1px solid var(--color-border);
  padding: 20px;
  border-radius: 8px;
  max-width: 700px;
  width: 100%;
  margin-inline: auto;
}
.admin-box textarea {
  resize: none;
  height: 100px;
  padding-top: 10px;
}

.starter-form {
  margin-bottom: 30px;
}

.starter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.starter-header h3 {
  margin-block: 0;
}

.remove-btn {
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-message {
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-system-bg);
  font-weight: 700;
  padding: 10px;
}
.admin-message.error {
  color: var(--color-error-text);
}

.action-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.action-button .form-btn {
  margin-top: 0;
}

.filepond--file {
  font-size: 16px !important;
}

/* montserrat-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "WintershallDea";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/WintershallDea-55.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-700 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "WintershallDea";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/WintershallDea-75.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  line-height: 125%;
}

*:focus {
  outline: none;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 1.6rem;
  -webkit-font-smoothing: antialiased;
}
body.login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

button {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--color-text-primary);
}
button img {
  display: block;
}

.login-container {
  background-color: var(--color-input-bg);
  border: 1px solid var(--color-border);
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
}

input {
  background-color: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  color: var(--color-text-primary);
}

input:focus {
  outline: 2px solid var(--color-focus-outline);
}

.logout-form {
  display: inline;
}

.logout-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  color: var(--color-text-primary);
  text-decoration: none;
}
.logout-btn:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .logout-btn {
    right: 15px;
    top: 22px;
    font-size: 1.1rem;
  }
}

.hidden {
  display: none !important;
}

.show-block {
  display: block !important;
}

.show-flex {
  display: flex !important;
}

a {
  color: inherit;
  text-decoration: none;
}

.btn {
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  background: var(--color-accent);
  border-radius: var(--radius);
  transition: background-color 0.2s;
}
.btn:hover {
  background: var(--color-accent-hover);
}
/*# sourceMappingURL=main.css.map */
