﻿.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: repeating-linear-gradient(
    0deg,
    rgba(241, 243, 252, 0.02) 0px,
    rgba(241, 243, 252, 0.02) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 100;
}

.scanline-overlay {
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
}

.crt-glow {
  text-shadow: 0 0 5px rgba(156, 255, 147, 0.7);
}

.cyan-glow {
  text-shadow: 0 0 5px rgba(0, 227, 253, 0.7);
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from,
  to {
    color: transparent;
  }

  50% {
    color: #9cff93;
  }
}

body {
  min-height: max(884px, 100dvh);
}

textarea {
  min-height: 24px;
  max-height: 180px;
}

.chat-item.active {
  border-left: 2px solid #9cff93;
  background: #20262f;
  color: #9cff93;
}

.chat-item.active .material-symbols-outlined {
  color: #9cff93;
}

.message-row.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.message-row.user .message-content {
  text-align: right;
}

.message-row.user .message-header {
  justify-content: flex-end;
}

.message-row.user .message-avatar {
  background: #00fc40;
  color: #006413;
}

.message-row.user .message-bubble {
  display: inline-block;
  border-right: 2px solid #9cff93;
  background: rgba(156, 255, 147, 0.05);
  box-shadow: inset 0 0 10px rgba(156, 255, 147, 0.05);
}

.message-row.assistant .message-avatar {
  background: #006875;
  color: #00e3fd;
}

.message-row.assistant .message-bubble {
  border-left: 2px solid #00e3fd;
  background: #0f141a;
  box-shadow: inset 0 0 10px rgba(0, 227, 253, 0.05);
}

.message-rich {
  display: grid;
  gap: 12px;
}

.message-paragraph {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-inline-code {
  display: inline-block;
  margin: 0 2px;
  padding: 1px 6px;
  border: 1px solid rgba(156, 255, 147, 0.18);
  background: rgba(156, 255, 147, 0.08);
  color: #deffab;
  font-family: "Courier New", monospace;
  font-size: 0.92em;
}

.message-code-block {
  overflow: hidden;
  border: 1px solid rgba(0, 227, 253, 0.2);
  background: #081017;
  box-shadow: inset 0 0 24px rgba(0, 227, 253, 0.05);
}

.message-code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 227, 253, 0.18);
  background: linear-gradient(90deg, rgba(0, 227, 253, 0.1), rgba(156, 255, 147, 0.08));
}

.message-code-label {
  color: #00e3fd;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.message-code-copy {
  border: 1px solid rgba(156, 255, 147, 0.28);
  background: rgba(156, 255, 147, 0.08);
  color: #9cff93;
  padding: 6px 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.message-code-copy:hover {
  border-color: rgba(156, 255, 147, 0.5);
  background: rgba(156, 255, 147, 0.16);
}

.message-code-pre {
  margin: 0;
  overflow-x: auto;
  padding: 16px;
  background: #050a10;
}

.message-code-content {
  color: #d8f6ff;
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre;
}

.message-row.assistant .message-label {
  color: #00e3fd;
}

.message-row.user .message-label {
  color: #9cff93;
}

.suggestion-chip {
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.suggestion-chip:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.03);
}

#messages:empty {
  display: none;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0f141a;
}

::-webkit-scrollbar-thumb {
  background: #20262f;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a313c;
}
