@import url(https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap);
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */ /* 3 */
  tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
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 {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-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.
*/

::-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 {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .container {
    max-width: 1536px;
  }
}
.visible {
  visibility: visible;
}
.collapse {
  visibility: collapse;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.ml-3 {
  margin-left: 0.75rem;
}
.ml-auto {
  margin-left: auto;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-3 {
  margin-right: 0.75rem;
}
.mr-4 {
  margin-right: 1rem;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.contents {
  display: contents;
}
.hidden {
  display: none;
}
.h-12 {
  height: 3rem;
}
.h-16 {
  height: 4rem;
}
.h-20 {
  height: 5rem;
}
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.h-6 {
  height: 1.5rem;
}
.h-8 {
  height: 2rem;
}
.min-h-64 {
  min-height: 16rem;
}
.min-h-screen {
  min-height: 100vh;
}
.w-12 {
  width: 3rem;
}
.w-16 {
  width: 4rem;
}
.w-20 {
  width: 5rem;
}
.w-4 {
  width: 1rem;
}
.w-5 {
  width: 1.25rem;
}
.w-6 {
  width: 1.5rem;
}
.w-8 {
  width: 2rem;
}
.w-full {
  width: 100%;
}
.max-w-6xl {
  max-width: 72rem;
}
.max-w-md {
  max-width: 28rem;
}
.flex-1 {
  flex: 1 1;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.resize {
  resize: both;
}
.list-inside {
  list-style-position: inside;
}
.list-disc {
  list-style-type: disc;
}
.flex-col {
  flex-direction: column;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.75rem * var(--tw-space-x-reverse));
  margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(2rem * var(--tw-space-x-reverse));
  margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}
.overflow-x-auto {
  overflow-x: auto;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.border {
  border-width: 1px;
}
.border-2 {
  border-width: 2px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-b-2 {
  border-bottom-width: 2px;
}
.border-t {
  border-top-width: 1px;
}
.border-dashed {
  border-style: dashed;
}
.border-amber-200 {
  --tw-border-opacity: 1;
  border-color: rgb(253 230 138 / 1);
  border-color: rgb(253 230 138 / var(--tw-border-opacity, 1));
}
.border-blue-500 {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / 1);
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}
.border-blue-600 {
  --tw-border-opacity: 1;
  border-color: rgb(37 99 235 / 1);
  border-color: rgb(37 99 235 / var(--tw-border-opacity, 1));
}
.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / 1);
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / 1);
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.border-gray-900 {
  --tw-border-opacity: 1;
  border-color: rgb(17 24 39 / 1);
  border-color: rgb(17 24 39 / var(--tw-border-opacity, 1));
}
.border-green-200 {
  --tw-border-opacity: 1;
  border-color: rgb(187 247 208 / 1);
  border-color: rgb(187 247 208 / var(--tw-border-opacity, 1));
}
.border-red-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 202 202 / 1);
  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
}
.border-transparent {
  border-color: transparent;
}
.border-white {
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / 1);
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
}
.bg-amber-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 251 235 / 1);
  background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
}
.bg-blue-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / 1);
  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}
.bg-blue-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / 1);
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}
.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / 1);
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / 1);
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-gray-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / 1);
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.bg-gray-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / 1);
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}
.bg-gray-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / 1);
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.bg-green-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 252 231 / 1);
  background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
}
.bg-green-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(240 253 244 / 1);
  background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1));
}
.bg-green-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / 1);
  background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
}
.bg-indigo-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(224 231 255 / 1);
  background-color: rgb(224 231 255 / var(--tw-bg-opacity, 1));
}
.bg-orange-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 237 213 / 1);
  background-color: rgb(255 237 213 / var(--tw-bg-opacity, 1));
}
.bg-purple-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 232 255 / 1);
  background-color: rgb(243 232 255 / var(--tw-bg-opacity, 1));
}
.bg-purple-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(147 51 234 / 1);
  background-color: rgb(147 51 234 / var(--tw-bg-opacity, 1));
}
.bg-red-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / 1);
  background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
}
.bg-red-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / 1);
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}
.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / 1);
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / 1);
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-blue-50 {
  --tw-gradient-from: #eff6ff var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(239 246 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-blue-500 {
  --tw-gradient-from: #3b82f6 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-indigo-100 {
  --tw-gradient-to: #e0e7ff var(--tw-gradient-to-position);
}
.to-indigo-600 {
  --tw-gradient-to: #4f46e5 var(--tw-gradient-to-position);
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.pt-6 {
  padding-top: 1.5rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.italic {
  font-style: italic;
}
.text-amber-600 {
  --tw-text-opacity: 1;
  color: rgb(217 119 6 / 1);
  color: rgb(217 119 6 / var(--tw-text-opacity, 1));
}
.text-amber-700 {
  --tw-text-opacity: 1;
  color: rgb(180 83 9 / 1);
  color: rgb(180 83 9 / var(--tw-text-opacity, 1));
}
.text-amber-800 {
  --tw-text-opacity: 1;
  color: rgb(146 64 14 / 1);
  color: rgb(146 64 14 / var(--tw-text-opacity, 1));
}
.text-blue-500 {
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / 1);
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}
.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / 1);
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.text-blue-700 {
  --tw-text-opacity: 1;
  color: rgb(29 78 216 / 1);
  color: rgb(29 78 216 / var(--tw-text-opacity, 1));
}
.text-blue-800 {
  --tw-text-opacity: 1;
  color: rgb(30 64 175 / 1);
  color: rgb(30 64 175 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / 1);
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / 1);
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / 1);
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / 1);
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}
.text-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / 1);
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-green-600 {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / 1);
  color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}
.text-green-800 {
  --tw-text-opacity: 1;
  color: rgb(22 101 52 / 1);
  color: rgb(22 101 52 / var(--tw-text-opacity, 1));
}
.text-indigo-600 {
  --tw-text-opacity: 1;
  color: rgb(79 70 229 / 1);
  color: rgb(79 70 229 / var(--tw-text-opacity, 1));
}
.text-orange-600 {
  --tw-text-opacity: 1;
  color: rgb(234 88 12 / 1);
  color: rgb(234 88 12 / var(--tw-text-opacity, 1));
}
.text-purple-600 {
  --tw-text-opacity: 1;
  color: rgb(147 51 234 / 1);
  color: rgb(147 51 234 / var(--tw-text-opacity, 1));
}
.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / 1);
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.text-red-800 {
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / 1);
  color: rgb(153 27 27 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / 1);
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.underline {
  -webkit-text-decoration-line: underline;
          text-decoration-line: underline;
}
.opacity-20 {
  opacity: 0.2;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-90 {
  opacity: 0.9;
}
.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline {
  outline-style: solid;
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Global Styles - ScienceArena Inspired */
:root {
    --bg: #0a0a0a;
    --panel: #111111;
    --panel-2: #1a1a1a;
    --text: #ffffff;
    --muted: #888888;
    --primary: #00d4aa;
    --accent: #ff6b6b;
    --border: #333333;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --glow: 0 0 20px rgba(0, 212, 170, 0.3);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #0a0a0a;
    background: var(--bg);
    color: #ffffff;
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#root {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Import Inter font */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111111;
    background: var(--panel);
}

::-webkit-scrollbar-thumb {
    background: #333333;
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #888888;
    background: var(--muted);
}

/* Selection styles - removed custom green selection */

/* Focus styles */
*:focus {
    outline: 2px solid #00d4aa;
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Button reset */
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Input reset */
input,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Smooth transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.hover\:border-gray-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / 1);
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / 1);
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-300:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / 1);
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-400:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(156 163 175 / 1);
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-900:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / 1);
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}
.hover\:bg-purple-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(126 34 206 / 1);
  background-color: rgb(126 34 206 / var(--tw-bg-opacity, 1));
}
.hover\:bg-red-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(185 28 28 / 1);
  background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
}
.hover\:text-amber-800:hover {
  --tw-text-opacity: 1;
  color: rgb(146 64 14 / 1);
  color: rgb(146 64 14 / var(--tw-text-opacity, 1));
}
.hover\:text-blue-600:hover {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / 1);
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.hover\:text-gray-700:hover {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / 1);
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.hover\:text-green-800:hover {
  --tw-text-opacity: 1;
  color: rgb(22 101 52 / 1);
  color: rgb(22 101 52 / var(--tw-text-opacity, 1));
}
.hover\:text-red-600:hover {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / 1);
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.hover\:text-red-800:hover {
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / 1);
  color: rgb(153 27 27 / var(--tw-text-opacity, 1));
}
.hover\:text-white:hover {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / 1);
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-blue-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
}
@media (min-width: 640px) {

  .sm\:flex-row {
    flex-direction: row;
  }
}
@media (min-width: 768px) {

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* ScienceArena Light Theme Design */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-sidebar: #f1f3f4;
  --text-primary: #1a1a1a;
  --text-secondary: #5f6368;
  --text-muted: #9aa0a6;
  --border-color: #dadce0;
  --accent-blue: #1a73e8;
  --accent-green: #34a853;
  --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
  --shadow-md: 0 2px 4px 0 rgba(60, 64, 67, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Challenge mode theme with green #00B259 */
  --challenge-primary: #00b259;
  --challenge-sidebar-bg: #1a1f1a;
  --challenge-sidebar-text: #e8f5e9;
  --challenge-sidebar-border: #2d4a2d;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: #ffffff;
  background-color: var(--bg-primary);
  color: #1a1a1a;
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main Container */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Full-width pages without sidebar */
.app-container:not(:has(.sidebar)) {
  flex-direction: column;
}

.app-container:not(:has(.sidebar)) > * {
  width: 100%;
}

/* Mobile header - hidden on desktop, shown on mobile */
.mobile-header {
  display: none;
}

/* Tour Spotlight Styles */
.tour-spotlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  pointer-events: none;
}

.tour-highlight-border {
  border: 3px solid #1a73e8;
  border-radius: 12px;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1),
    0 0 20px rgba(26, 115, 232, 0.3);
  animation: tour-pulse 2s infinite;
}

@keyframes tour-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1),
      0 0 20px rgba(26, 115, 232, 0.3);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(26, 115, 232, 0.2),
      0 0 30px rgba(26, 115, 232, 0.5);
  }
}

.tour-spotlight-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: tour-modal-appear 0.3s ease-out;
}

@keyframes tour-modal-appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.tour-modal-arrow {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  border-right: none;
  transform: translateX(-50%) rotate(45deg);
}

.tour-modal-content {
  position: relative;
  z-index: 1;
  background: white;
}

.tour-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #f3f4f6;
}

.tour-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.tour-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  color: #6b7280;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-close:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.tour-content {
  padding: 12px 20px;
}

.tour-content p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.tour-footer {
  padding: 0 20px 16px;
}

.tour-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.tour-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.tour-btn-primary {
  background-color: #1a73e8;
  color: white;
  border-color: #1a73e8;
}

.tour-btn-primary:hover {
  background-color: #1557b0;
  border-color: #1557b0;
}

.tour-btn-outline {
  background-color: transparent;
  color: #1a73e8;
  border-color: #d1d5db;
}

.tour-btn-outline:hover {
  background-color: rgba(26, 115, 232, 0.04);
  border-color: #1a73e8;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .tour-spotlight-modal {
    width: 95% !important;
    max-width: 300px;
    left: 50% !important;
    transform: translateX(-50%);
  }

  .tour-header,
  .tour-content,
  .tour-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tour-actions {
    flex-direction: column;
  }

  .tour-btn {
    width: 100%;
  }
}

/* Site Header Styles */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: #ffffff;
  background-color: var(--bg-primary);
  border-bottom: 1px solid #dadce0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
  box-shadow: var(--shadow-sm);
}

.site-header .brand {
  font-size: 24px;
  font-weight: 700;
  color: #1a73e8;
  color: var(--accent-blue);
  margin-right: 20px;
}

.site-header .token-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #5f6368;
  color: var(--text-secondary);
}

.site-header .token-box input {
  padding: 8px 12px;
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  min-width: 200px;
}

.site-header .token-box input:focus {
  outline: none;
  border-color: #1a73e8;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

/* Navigation Dropdown Styles */
.nav-dropdown-container {
  position: relative;
  display: inline-block;
}

.nav-dropdown-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  color: var(--text-primary);
  background-color: #ffffff;
  background-color: var(--bg-primary);
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-dropdown-button:hover {
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
}

.nav-dropdown-button:focus {
  outline: none;
  border-color: #1a73e8;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.nav-dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.nav-dropdown-arrow-open {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  z-index: 1000;
  margin-top: 8px;
  width: 224px;
  background-color: #ffffff;
  background-color: var(--bg-primary);
  border-radius: 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
}

.nav-dropdown-content {
  padding: 8px 0;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 16px;
  font-size: 14px;
  color: #1a1a1a;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nav-dropdown-item:hover {
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
}

.nav-dropdown-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  color: #9aa0a6;
  color: var(--text-muted);
}

/* Page Styles */
.about-page,
.how-it-works-page,
.help-center-page,
.terms-of-use-page,
.privacy-policy-page {
  min-height: 100vh;
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
}

.back-button-container {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 50;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #ffffff;
  background-color: var(--bg-primary);
  color: #1a1a1a;
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 4px 0 rgba(60, 64, 67, 0.3);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.back-button:hover {
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
}

.back-button-icon {
  width: 16px;
  height: 16px;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  animation: fadeInUp 0.8s ease-out;
}

.page-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #1a73e8, #34a853);
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  border-radius: 2px;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) scaleX(1);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1.2);
  }
}

.page-title {
  font-size: 42px;
  font-weight: 800;
  -webkit-background-clip: text;
          background-clip: text;
  margin-bottom: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
  font-size: 22px;
  text-align: left;
  color: #5f6368;
  color: var(--text-secondary);
  margin: 0 auto 32px auto;
  line-height: 1.7;
  font-weight: 500;
  opacity: 0.9;
  background-color: white;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sidebar Styles */
.sidebar {
  width: 280px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: visible;
  background-color: #f1f3f4;
  background-color: var(--bg-sidebar);
  border-right: 1px solid #dadce0;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  position: relative;
  transition: width 0.3s ease, padding 0.3s ease;
  z-index: 100;
}

/* Sidebar Collapsed State */
.sidebar.collapsed {
  width: 64px;
  padding: 20px 8px;
}

.sidebar.collapsed .brand-section {
  justify-content: center;
  margin-bottom: 32px;
}

.sidebar.collapsed .brand-name,
.sidebar.collapsed .chevron-down {
  display: none;
}

.sidebar.collapsed .nav-links {
  align-items: center;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 12px;
  width: 48px;
  height: 48px;
}

.sidebar.collapsed .nav-link span {
  display: none;
}

.sidebar.collapsed .recent-chats {
  display: none;
}

.sidebar.collapsed .user-section {
  display: none;
}

.sidebar.collapsed .footer-links {
  display: none;
}

/* Challenge Mode Sidebar Styling */
.sidebar.challenge-mode {
  background-color: #1a1f1a;
  background-color: var(--challenge-sidebar-bg);
  border-right: 1px solid #2d4a2d;
  border-right: 1px solid var(--challenge-sidebar-border);
}
.sidebar.challenge-mode .chat-filters {
  background-color: #1a1f1a;
}

.sidebar.challenge-mode .brand-name {
  color: #e8f5e9;
  color: var(--challenge-sidebar-text);
}

.sidebar.challenge-mode .nav-link {
  color: #e8f5e9;
  color: var(--challenge-sidebar-text);
}

.sidebar.challenge-mode .nav-link:hover {
  background-color: rgba(0, 178, 89, 0.1);
}

.sidebar.challenge-mode .nav-link.active {
  background-color: rgba(0, 178, 89, 0.2);
  color: white;
}

.sidebar.challenge-mode .chat-title,
.sidebar.challenge-mode .category-title,
.sidebar.challenge-mode .filter-label {
  color: #e8f5e9;
  color: var(--challenge-sidebar-text);
}

.sidebar.challenge-mode .footer-link {
  color: #e8f5e9 !important;
  color: var(--challenge-sidebar-text) !important;
}

.sidebar.challenge-mode .brand-icon svg,
.sidebar.challenge-mode .nav-icon,
.sidebar.challenge-mode .chat-icon {
  color: #e8f5e9;
  color: var(--challenge-sidebar-text);
}

.sidebar.challenge-mode .chevron-down {
  color: #e8f5e9;
  color: var(--challenge-sidebar-text);
}

.sidebar.challenge-mode .nav-dropdown-menu,
.sidebar.challenge-mode .filter-dropdown-menu {
  background-color: #2a2f2a;
  border: 1px solid #2d4a2d;
  border: 1px solid var(--challenge-sidebar-border);
}

.sidebar.challenge-mode .nav-dropdown-item,
.sidebar.challenge-mode .filter-dropdown-item {
  color: #e8f5e9;
  color: var(--challenge-sidebar-text);
}

.sidebar.challenge-mode .nav-dropdown-item:hover,
.sidebar.challenge-mode .filter-dropdown-item:hover {
  background-color: rgba(0, 178, 89, 0.15);
}

.sidebar.challenge-mode .chat-item {
  color: #e8f5e9;
  color: var(--challenge-sidebar-text);
}

.sidebar.challenge-mode .chat-item:hover {
  background-color: rgba(0, 178, 89, 0.1);
}

.sidebar.challenge-mode .chat-item.active {
  background-color: rgba(0, 178, 89, 0.2);
}

.sidebar.challenge-mode .filter-button {
  color: #e8f5e9;
  color: var(--challenge-sidebar-text);
  background-color: rgba(0, 178, 89, 0.1);
  border: 1px solid #2d4a2d;
  border: 1px solid var(--challenge-sidebar-border);
}

.sidebar.challenge-mode .leaderboard-popover,
.leaderboard-popover.challenge-mode {
  background-color: #2a2f2a;
  border: 1px solid #2d4a2d;
  border: 1px solid var(--challenge-sidebar-border);
}

.sidebar.challenge-mode .leaderboard-popover-item,
.leaderboard-popover.challenge-mode .leaderboard-popover-item {
  color: #e8f5e9;
  color: var(--challenge-sidebar-text);
}

.sidebar.challenge-mode .leaderboard-popover-item:hover,
.leaderboard-popover.challenge-mode .leaderboard-popover-item:hover {
  background-color: #00b259;
  background-color: var(--challenge-primary);
  color: white;
}

/* Brand Section */
.brand-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: none;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  color: var(--text-primary);
}

.chevron-down {
  color: #5f6368;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.brand:hover .chevron-down {
  transform: rotate(180deg);
}

.chevron-down.rotated {
  transform: rotate(180deg);
}

.brand-icon {
  color: #5f6368;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 0 4px 4px;
  border-radius: 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, transform 0.3s ease;
}

.brand-icon:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.sidebar.collapsed .brand-icon {
  transform: rotate(90deg);
}

/* Brand Dropdown */
.brand-dropdown-container {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  margin-top: 8px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  min-width: 200px;
  overflow: hidden;
}

.nav-dropdown-content {
  padding: 4px 0;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  color: #1a1a1a;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.nav-dropdown-item:hover {
  background-color: #f3f4f6;
}

.nav-dropdown-icon {
  width: 16px;
  height: 16px;
  color: #5f6368;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Navigation Links */
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #5f6368;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border-color: transparent;
}

.nav-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
  color: var(--text-primary);
}

.nav-link.active {
  background-color: #1a73e8;
  background-color: var(--accent-blue);
  color: white;
}

.nav-icon {
  width: 16px;
  height: 16px;
}

/* Leaderboard Popover */
.nav-link-wrapper {
  position: relative;
}

.nav-link-wrapper .nav-link {
  width: 100%;
}

.nav-link-wrapper::after {
  content: "";
  position: absolute;
  cursor: pointer;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #5f6368;
  border-top: 6px solid var(--text-secondary);
  pointer-events: none;
  transition: transform 0.2s ease, border-top-color 0.2s ease;
}

.sidebar.collapsed .nav-link-wrapper::after {
  display: none;
}

.nav-link-wrapper:hover::after {
  border-top-color: #1a1a1a;
  border-top-color: var(--text-primary);
}

.nav-link-wrapper .nav-link.active + *::after,
.nav-link-wrapper:has(.nav-link.active)::after {
  border-top-color: white;
}

.leaderboard-popover {
  position: absolute;
  top: 0;
  left: 100%;
  background: white;
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 220px;
  z-index: 9999;
  animation: popover-fade-in 0.15s ease-out;
}

/* Create an invisible bridge between wrapper and popover to prevent gap issues */
.leaderboard-popover::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 0;
  width: 40px;
  /* Increased to further cover gap and improve tolerance */
  height: 100%;
  background: transparent;
  pointer-events: auto;
  /* Ensure mouse events are captured */
}

@keyframes popover-fade-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }

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

.leaderboard-popover-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  border: none;
  background: none;
  color: #1a1a1a;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.leaderboard-popover-item:hover {
  background-color: #1a73e8;
  background-color: var(--accent-blue);
  color: white;
}

.leaderboard-popover-item:active {
  transform: scale(0.98);
}

.popover-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.popover-item-text {
  flex: 1 1;
}

/* Mobile-specific styles for leaderboard popover */
@media (max-width: 768px) {
  .leaderboard-popover {
    /* Improve touch target size */
    min-width: 240px;
    /* Position below the nav link on mobile */
    position: fixed !important;
    left: 16px !important;
    right: auto;
    max-width: calc(100vw - 32px);
    /* Add smooth animation */
    animation: popover-slide-down 0.2s ease-out;
  }

  @keyframes popover-slide-down {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

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

  .leaderboard-popover-item {
    /* Larger touch targets for mobile */
    padding: 14px 16px;
    font-size: 15px;
  }

  /* Remove hover-dependent bridge on mobile */
  .leaderboard-popover::before {
    display: none;
  }

  /* Hide the arrow indicator on mobile when popover is open */
  .nav-link-wrapper:has(+ *) .leaderboard-popover::after {
    display: none;
  }
}

/* Recent Chats */
.recent-chats {
  flex: 1 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 200px;
  margin-bottom: 16px;
}

/* Chat Filters */
.chat-filters {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  padding: 12px 4px 12px 0;
  border-top: 1px solid #dadce0;
  border-top: 1px solid var(--border-color);
  margin-bottom: 12px;
  background-color: #f1f3f4;
  background-color: var(--bg-sidebar);
  z-index: 10;
}

.filter-dropdown-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.filter-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: #f8f9fa;
  background: var(--bg-secondary);
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  border-radius: var(--radius-sm);
  color: #1a1a1a;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 8px;
}

.filter-button:hover {
  background-color: #ffffff;
  background-color: var(--bg-primary);
  border-color: #1a73e8;
  border-color: var(--accent-blue);
}

.filter-button:focus {
  outline: none;
  border-color: #1a73e8;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.filter-icon {
  width: 16px;
  height: 16px;
  color: #5f6368;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.filter-label {
  flex: 1 1;
  text-align: left;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron-down {
  width: 12px;
  height: 12px;
  color: #5f6368;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.chevron-down.rotated {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  margin-top: 4px;
  background: white;
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 4px 0 rgba(60, 64, 67, 0.3);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: filterDropdownAppear 0.15s ease-out;
}

@keyframes filterDropdownAppear {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

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

.filter-dropdown-content {
  padding: 4px 0;
  max-height: 260px;
  overflow-y: auto;
}

.filter-dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: #1a1a1a;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  gap: 8px;
  text-align: left;
}

.filter-dropdown-item:hover {
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
}

.filter-dropdown-item.active {
  background-color: rgba(26, 115, 232, 0.1);
  color: #1a73e8;
  color: var(--accent-blue);
  font-weight: 500;
}

.filter-icon-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 16px;
  flex-shrink: 0;
}

.filter-icon-emoji svg {
  width: 16px;
  height: 16px;
  color: currentColor;
}

.filter-option-label {
  flex: 1 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-icon {
  width: 16px;
  height: 16px;
  color: #1a73e8;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.section-title {
  font-size: 14px;
  font-weight: 500;
  color: #9aa0a6;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Categorized Chats */
.categorized-chats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-category {
  display: flex;
  flex-direction: column;
}

.category-title {
  font-size: 12px;
  font-weight: 600;
  color: #9aa0a6;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 16px;
}

.category-chats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.chat-item:hover {
  background-color: rgba(26, 115, 232, 0.08);
  border-color: rgba(26, 115, 232, 0.2);
  transform: translateX(2px);
}

.chat-item:active {
  background-color: rgba(26, 115, 232, 0.12);
  transform: translateX(1px);
}

.chat-item.active {
  background-color: rgba(26, 115, 232, 0.15);
  border-color: #1a73e8;
  border-color: var(--accent-blue);
  color: #1a73e8;
  color: var(--accent-blue);
  font-weight: 600;
}

.chat-item.active .chat-icon {
  color: #1a73e8;
  color: var(--accent-blue);
}

.chat-item.active .chat-title {
  color: #1a73e8;
  color: var(--accent-blue);
  font-weight: 600;
}

/* Challenge mode: Green for chat items (non-sidebar context) */
.app-container.challenge-mode .chat-item:hover {
  background-color: rgba(0, 178, 89, 0.08);
  border-color: rgba(0, 178, 89, 0.2);
}

.app-container.challenge-mode .chat-item:active {
  background-color: rgba(0, 178, 89, 0.12);
}

.app-container.challenge-mode .chat-item.active {
  background-color: rgba(0, 178, 89, 0.15);
  border-color: #00b259;
  border-color: var(--challenge-primary);
  color: #00b259;
  color: var(--challenge-primary);
}

.app-container.challenge-mode .chat-item.active .chat-icon {
  color: #00b259;
  color: var(--challenge-primary);
}

.app-container.challenge-mode .chat-item.active .chat-title {
  color: #00b259;
  color: var(--challenge-primary);
}

.chat-icon {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  color: #5f6368;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Ensure SVG elements inside chat icons maintain consistent size */
.chat-icon svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
}

.chat-title {
  color: #1a1a1a;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-timestamp {
  font-size: 12px;
  color: #9aa0a6;
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
}

/* Chat actions container */
.chat-actions {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}

/* Dot icon button */
.dot-icon {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  color: #9aa0a6;
  color: var(--text-muted);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot-icon:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  color: var(--text-primary);
}

/* Action menu */
.action-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  margin-top: 4px;
}

.action-menu-content {
  background: white;
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 4px 0;
  min-width: 120px;
}

.action-item {
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1a1a1a;
  color: var(--text-primary);
  transition: background-color 0.2s ease;
}

.action-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.delete-action {
  color: #dc3545;
}

.delete-action:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

/* Loading and Error States */
.chats-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #5f6368;
  color: var(--text-secondary);
  font-size: 14px;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #dadce0;
  border: 2px solid var(--border-color);
  border-top: 2px solid #1a73e8;
  border-top: 2px solid var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.chats-error {
  padding: 12px 16px;
  color: #5f6368;
  color: var(--text-secondary);
  font-size: 14px;
}

.chats-error small {
  display: block;
  color: #9aa0a6;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
}

/* Loading more indicator */
.chats-loading-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  color: #9aa0a6;
  color: var(--text-muted);
  font-size: 14px;
}

.chats-loading-more .loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #dadce0;
  border: 2px solid var(--border-color);
  border-top: 2px solid #1a73e8;
  border-top: 2px solid var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* End of list indicator */
.chats-end {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #9aa0a6;
  color: var(--text-muted);
  font-size: 12px;
  border-top: 1px solid #dadce0;
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
}

.no-chats {
  padding: 12px 16px;
  color: #9aa0a6;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

/* User Section */
.user-section {
  margin-top: auto;
  margin-bottom: 16px;
}

.user-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #dadce0;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #1a1a1a;
  color: var(--text-primary);
  background-color: #ffffff;
  background-color: var(--bg-primary);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.user-input:focus {
  outline: none;
  border-color: #1a73e8;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.user-input.validation-valid {
  border-color: #34a853;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 2px rgba(52, 168, 83, 0.1);
}

.user-input.validation-invalid {
  border-color: #d32f2f;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.1);
}

.user-input.validation-validating {
  border-color: #1a73e8;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.validation-message {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}

.validation-message.valid {
  background-color: rgba(52, 168, 83, 0.1);
  color: #34a853;
  color: var(--accent-green);
  border: 1px solid rgba(52, 168, 83, 0.2);
}

.validation-message.invalid {
  background-color: rgba(211, 47, 47, 0.1);
  color: #d32f2f;
  border: 1px solid rgba(211, 47, 47, 0.2);
}

.validation-message.validating {
  background-color: rgba(26, 115, 232, 0.1);
  color: #1a73e8;
  color: var(--accent-blue);
  border: 1px solid rgba(26, 115, 232, 0.2);
}

.validation-icon {
  flex-shrink: 0;
}

.valid-icon {
  color: #34a853;
  color: var(--accent-green);
}

.invalid-icon {
  color: #d32f2f;
}

.validating-icon {
  color: #1a73e8;
  color: var(--accent-blue);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.user-info:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #1a73e8;
  background-color: var(--accent-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

/* Challenge mode: Green for user avatar badge */
.app-container.challenge-mode .user-avatar {
  background-color: #00b259;
  background-color: var(--challenge-primary);
}

.user-details {
  flex: 1 1;
}

.user-email {
  color: #1a1a1a;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}

.user-menu {
  color: #5f6368;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.user-menu:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Footer Links */
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #9aa0a6;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  padding-bottom: 12px;
}

.footer-link {
  color: #9aa0a6;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #5f6368;
  color: var(--text-secondary);
}

.footer-separator {
  color: #9aa0a6;
  color: var(--text-muted);
}

/* Main Content */
.main-content {
  height: 100vh;
  overflow-y: auto;
  flex: 1 1;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  background-color: var(--bg-primary);
  position: relative;
}

/* Navigation Loading Overlay */
.navigation-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #dadce0;
  border: 3px solid var(--border-color);
  border-top: 3px solid #1a73e8;
  border-top: 3px solid var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  font-size: 16px;
  font-weight: 500;
  color: #5f6368;
  color: var(--text-secondary);
}

/* Main Header */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #dadce0;
  border-bottom: 1px solid var(--border-color);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  color: var(--text-primary);
}

.header-right {
  color: #5f6368;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.header-right:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.menu-icon {
  width: 20px;
  height: 20px;
}

/* Invitation Code Input */
.invite-code-input-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.invite-code-input {
  padding: 8px 12px;
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  background-color: #ffffff;
  background-color: var(--bg-primary);
  color: #1a1a1a;
  color: var(--text-primary);
  min-width: 200px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.invite-code-input:focus {
  outline: none;
  border-color: #1a73e8;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.invite-code-input.validation-valid {
  border-color: #34a853;
  border-color: var(--accent-green);
}

.invite-code-input.validation-invalid {
  border-color: #ea4335;
}

.invite-code-input.validation-validating {
  border-color: #1a73e8;
  border-color: var(--accent-blue);
}

.validation-message {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin-top: 4px;
  white-space: nowrap;
}

.validation-message.valid {
  color: #34a853;
  color: var(--accent-green);
}

.validation-message.invalid {
  color: #ea4335;
}

.validation-message.validating {
  color: #1a73e8;
  color: var(--accent-blue);
}

.validation-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.validation-icon.valid-icon {
  color: #34a853;
  color: var(--accent-green);
}

.validation-icon.invalid-icon {
  color: #ea4335;
}

.validation-icon.validating-icon {
  color: #1a73e8;
  color: var(--accent-blue);
}

/* Battle Page */
.battle-page {
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

/* AI Models Section */
.ai-models-section {
  padding: 40px 24px 20px;
  display: flex;
  justify-content: center;
}

.ai-logos {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.ai-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}

.ai-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px 0 rgba(60, 64, 67, 0.3);
  box-shadow: var(--shadow-md);
}

.model-icon {
  font-size: 20px;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 0 24px 40px;
  max-width: 600px;
  margin: 20px auto;
  animation: fadeIn 0.6s ease-out;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-description {
  font-size: 18px;
  color: #5f6368;
  color: var(--text-secondary);
  line-height: 1.6;
}

.leaderboard-link {
  color: #1a73e8;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.leaderboard-link:hover {
  color: #1557b0;
  text-decoration: underline;
}

/* Chat Interface */
.chat-interface {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.chat-container {
  flex: 1 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.chat-messages {
  margin: 0 auto;
}

/* User Message */
.user-message {
  margin-bottom: 32px;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.user-avatar {
  font-weight: 600;
  font-size: 14px;
}

.message-timestamp {
  color: #9aa0a6;
  color: var(--text-muted);
  font-size: 12px;
}

.message-content {
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: #1a1a1a;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Battle Message */
.battle-message {
  margin-bottom: 32px;
  animation: fadeInUp 0.5s ease;
}

.battle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.battle-title {
  font-weight: 600;
  color: #1a1a1a;
  color: var(--text-primary);
  font-size: 16px;
}

.reveal-badge {
  background-color: #34a853;
  background-color: var(--accent-green);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.battle-responses {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-gap: 20px;
  gap: 20px;
  align-items: start;
}

.model-response {
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  padding-bottom: 20px;
}

.model-response:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px 0 rgba(60, 64, 67, 0.3);
  box-shadow: var(--shadow-md);
}

/* Highlighting for voted responses */
.model-response.voted-highlight {
  border: 2px solid #1a73e8;
  border: 2px solid var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.2);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.response-header.voted-highlight {
  background-color: rgba(26, 115, 232, 0.1);
  border-bottom-color: #1a73e8;
  border-bottom-color: var(--accent-blue);
  transition: all 0.3s ease;
}

/* Challenge mode: Green for voted highlights */
.app-container.challenge-mode .model-response.voted-highlight {
  border-color: #00b259;
  border-color: var(--challenge-primary);
  box-shadow: 0 0 0 4px rgba(0, 178, 89, 0.2);
}

.app-container.challenge-mode .response-header.voted-highlight {
  background-color: rgba(0, 178, 89, 0.1);
  border-bottom-color: #00b259;
  border-bottom-color: var(--challenge-primary);
}

/* Trophy winner styling for voted battles */
.model-response.winner {
  border: 3px solid #22c55e;
  /* box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2),
    0 4px 20px rgba(34, 197, 94, 0.3);
  transform: translateY(-3px); */
  transition: all 0.3s ease;
  position: relative;
}

.model-response.winner::before {
  content: "🏆";
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
  border: 2px solid #fff;
}

.response-header.winner {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.1),
    rgba(22, 163, 74, 0.1)
  );
  border-bottom-color: #22c55e;
  transition: all 0.3s ease;
}

.model-response.winner .model-name {
  color: #15803d;
  font-weight: 600;
}

.model-response.winner .model-indicator {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

/* Both bad styling - red border with thumbs down */
.model-response.both-bad {
  border: 3px solid #f44336;
  /* box-shadow: 0 0 0 6px rgba(244, 67, 54, 0.2),
    0 4px 20px rgba(244, 67, 54, 0.3);
  transform: translateY(-3px); */
  transition: all 0.3s ease;
  position: relative;
}

.model-response.both-bad::before {
  content: "👎";
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #f44336, #d32f2f);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
  border: 2px solid #fff;
}

.response-header.both-bad {
  background: linear-gradient(
    135deg,
    rgba(244, 67, 54, 0.1),
    rgba(211, 47, 47, 0.1)
  );
  border-bottom-color: #f44336;
  transition: all 0.3s ease;
}

.model-response.both-bad .model-name {
  color: #c62828;
  font-weight: 600;
}

.model-response.both-bad .model-indicator {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: #fff;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #dadce0;
  border-bottom: 1px solid var(--border-color);
  background-color: #ffffff;
  background-color: var(--bg-primary);
}

.response-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.response-header .copy-btn,
.response-header .expand-btn,
.response-header .close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 2px 4px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.response-header .copy-btn:hover,
.response-header .expand-btn:hover,
.response-header .close-btn:hover {
  background: #f0f0f0;
  border-color: #d0d0d0;
}

.response-header .response-loading-indicator {
  display: inline-block;
  font-size: 16px;
  color: #666;
  animation: loading-dots-bounce 1.4s ease-in-out infinite both;
}

.response-header .response-loading-indicator.hidden {
  display: none;
}

.model-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  background-color: #9aa0a6;
  background-color: var(--text-muted);
}

.model-indicator.a {
  background-color: #1a73e8;
  background-color: var(--accent-blue);
}

.model-indicator.b {
  background-color: #34a853;
  background-color: var(--accent-green);
}

/* Challenge mode: Green for model indicator A */
.app-container.challenge-mode .model-indicator.a {
  background-color: #00b259;
  background-color: var(--challenge-primary);
}

.anonymous-indicator {
  font-size: 10px;
}

.model-details {
  display: flex;
  flex-direction: column;
}

.model-name {
  font-weight: 600;
  color: #1a1a1a;
  color: var(--text-primary);
  font-size: 14px;
}

.model-version {
  color: #9aa0a6;
  color: var(--text-muted);
  font-size: 12px;
}

.response-timestamp {
  color: #9aa0a6;
  color: var(--text-muted);
  font-size: 12px;
}

.response-content {
  padding: 16px 8px;
  position: relative;
  overflow-y: scroll;
  max-height: calc(100vh - 600px);
  min-height: 600px;
}

.content-text {
  color: #1a1a1a;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
  position: relative;
  margin-bottom: 4px;
}

.vote-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #34a853;
  background-color: var(--accent-green);
  color: white;
  font-size: 12px;
  font-weight: 500;
}

.response-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.vs-indicator {
  background-color: #9aa0a6;
  background-color: var(--text-muted);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* Voting Interface */
.voting-interface {
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 20px auto;
  max-width: 600px;
  text-align: center;
}

.voting-header h3 {
  color: #1a1a1a;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.voting-header p {
  color: #5f6368;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.voting-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 20px;
}

.vote-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 2px solid #dadce0;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  background-color: var(--bg-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.vote-option:hover {
  border-color: #1a73e8;
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.vote-option.selected {
  border-color: #1a73e8;
  border-color: var(--accent-blue);
  background-color: #e3f2fd;
}

.vote-option.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vote-error {
  background-color: #ffebee;
  border: 1px solid #f44336;
  border-radius: 8px;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 16px 0;
  text-align: center;
}

/* Single Agent Messages (Ideation, Hypothesis_Generation, etc.) */
.single-agent-message {
  margin-bottom: 32px;
  animation: fadeInUp 0.5s ease;
}

.single-agent-response {
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  max-width: 100%;
}

.single-agent-response:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px 0 rgba(60, 64, 67, 0.3);
  box-shadow: var(--shadow-md);
}

/* Track-specific styling */
.model-indicator.ideation {
  background-color: #9c27b0;
}

.model-indicator.hypothesis {
  background-color: #ff6b6b;
}

.model-indicator.literature {
  background-color: #4285f4;
}

.model-indicator.paperqa {
  background-color: #34a853;
}

/* Legacy support for old ideation-specific classes */
.ideation-message {
  margin-bottom: 32px;
  animation: fadeInUp 0.5s ease;
}

.ideation-response {
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  max-width: 100%;
}

.ideation-response:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px 0 rgba(60, 64, 67, 0.3);
  box-shadow: var(--shadow-md);
}

.vote-error p {
  color: #d32f2f;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.vote-icon {
  font-size: 24px;
}

.vote-label {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  color: var(--text-primary);
}

.vote-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #dadce0;
  border: 2px solid var(--border-color);
  border-top: 2px solid #1a73e8;
  border-top: 2px solid var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.voting-note {
  color: #9aa0a6;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

/* Input Section */
.input-section {
  padding: 0 24px 40px;
  display: flex;
  justify-content: center;
  animation: fadeIn 1s ease-out;
}

.input-container {
  width: 100%;
  max-width: 600px;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  margin: 0 auto;
}

.input-container:focus-within {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-color: #3b82f6;
}

.input-field-container {
  position: relative;
  display: flex;
  align-items: center;
}

.main-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  color: #1a1a1a;
  color: var(--text-primary);
  background: transparent;
  padding: 12px 16px;
  border-radius: 12px;
}

.main-input::placeholder {
  color: #9ca3af;
}

.input-tools-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.input-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1;
}

.input-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.input-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.input-btn:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.input-btn.active {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

/* Challenge mode: Green for active input button */
.app-container.challenge-mode .input-btn.active {
  background-color: #00b259;
  border-color: #00b259;
}

.input-btn.disabled {
  background-color: #f3f4f6;
  border-color: #e5e7eb;
  color: #d1d5db;
  cursor: not-allowed;
  opacity: 0.6;
}

.input-btn.disabled:hover {
  background-color: #f3f4f6;
  border-color: #e5e7eb;
  color: #d1d5db;
  transform: none;
  box-shadow: none;
}

/* Drag and Drop Styles */
.input-container.dragging {
  background-color: #f0f9ff;
  border: 2px dashed #3b82f6;
  transition: all 0.2s ease;
}

.drag-drop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(59, 130, 246, 0.1);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: 12px;
  border: 2px dashed #3b82f6;
  animation: fadeIn 0.2s ease-out;
}

.drag-drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  max-width: 300px;
  text-align: center;
}

.drag-drop-icon {
  color: #3b82f6;
  opacity: 0.8;
}

.drag-drop-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drag-drop-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.drag-drop-subtitle {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}

.send-btn {
  width: 36px;
  height: 36px;
  border: none;
  background-color: #1f2937;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.5;
}

.send-btn.active {
  opacity: 1;
}

.send-btn:hover.active {
  background-color: #111827;
}

.send-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Examples Panel */
.examples-panel {
  padding: 0 24px 20px;
  display: flex;
  justify-content: center;
  animation: fadeIn 0.5s ease-out;
}

.examples-panel .examples-container {
  width: 100%;
  max-width: 600px;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.examples-header {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.examples-list {
  margin: 8px 0 0 0;
  padding-left: 20px;
  list-style-type: disc;
  list-style-position: outside;
}

.example-item {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.example-item:hover {
  background-color: #f9fafb;
}

.example-text {
  font-size: 14px;
  color: #5f6368;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Leaderboard Page */
.leaderboard-page {
  flex: 1 1;
  padding: 24px;
  margin: 0 auto;
  width: 100%;
  max-width: 1600px;
}

.leaderboard-header {
  text-align: center;
  margin-bottom: 32px;
}

.leaderboard-title {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.leaderboard-subtitle {
  font-size: 18px;
  color: #5f6368;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.leaderboard-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

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

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  color: var(--text-primary);
}

.stat-label {
  font-size: 14px;
  color: #5f6368;
  color: var(--text-secondary);
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.category-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 25px;
  background-color: #ffffff;
  background-color: var(--bg-primary);
  color: #5f6368;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.category-tab:hover {
  border-color: #1a73e8;
  border-color: var(--accent-blue);
  color: #1a1a1a;
  color: var(--text-primary);
}

.category-tab.active {
  background-color: #1a73e8;
  background-color: var(--accent-blue);
  color: white;
  border-color: #1a73e8;
  border-color: var(--accent-blue);
}

.category-icon {
  font-size: 16px;
}

.leaderboard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-control label {
  color: #5f6368;
  color: var(--text-secondary);
  font-weight: 500;
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  background-color: var(--bg-primary);
  color: #1a1a1a;
  color: var(--text-primary);
}

.view-controls {
  display: flex;
  gap: 4px;
}

.view-btn {
  padding: 8px 16px;
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  background-color: var(--bg-primary);
  color: #5f6368;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn:first-child {
  border-radius: 8px 0 0 8px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.view-btn:last-child {
  border-radius: 0 8px 8px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.view-btn.active {
  background-color: #1a73e8;
  background-color: var(--accent-blue);
  color: white;
  border-color: #1a73e8;
  border-color: var(--accent-blue);
}

/* Leaderboard Table */
.leaderboard-table {
  background-color: #ffffff;
  background-color: var(--bg-primary);
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 80px 1fr 100px 100px 100px 140px 120px;
  padding: 16px 20px;
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid #dadce0;
  border-bottom: 1px solid var(--border-color);
  color: #5f6368;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
}

.table-body {
  max-height: 600px;
  overflow-y: auto;
}

.table-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px 100px 100px 140px 120px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #dadce0;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.table-row:hover {
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
}

.table-row:last-child {
  border-bottom: none;
}

.table-cell {
  display: flex;
  align-items: center;
}

.rank-indicator {
  font-size: 18px;
  font-weight: 600;
}

.model-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.model-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.model-details {
  display: flex;
  flex-direction: column;
}

.model-name {
  font-weight: 600;
  color: #1a1a1a;
  color: var(--text-primary);
  font-size: 14px;
}

.model-version {
  color: #9aa0a6;
  color: var(--text-muted);
  font-size: 12px;
}

.elo-score {
  font-weight: 600;
  color: #1a1a1a;
  color: var(--text-primary);
}

.elo-change {
  font-size: 12px;
  margin-left: 8px;
}

.elo-change.positive {
  color: #34a853;
  color: var(--accent-green);
}

.elo-change.negative {
  color: #d32f2f;
}

.winrate-bar {
  position: relative;
  width: 80px;
  height: 20px;
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
}

.winrate-fill {
  height: 100%;
  background-color: #34a853;
  background-color: var(--accent-green);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.winrate-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  color: var(--text-primary);
}

.org-name {
  color: #5f6368;
  color: var(--text-secondary);
  font-size: 14px;
}

.leaderboard-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #dadce0;
  border-top: 1px solid var(--border-color);
}

.update-info {
  color: #9aa0a6;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.methodology-link .link {
  color: #1a73e8;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.methodology-link .link:hover {
  text-decoration: underline;
}

/* Enhanced Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

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

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

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

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  }

  50% {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .battle-responses {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .response-divider {
    order: 1;
  }

  .vs-indicator {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .table-header,
  .table-row {
    grid-template-columns: 60px 1fr 80px 80px 80px 120px 100px;
  }

  .table-cell.organization {
    display: none;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 240px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
  }

  .ai-logos {
    gap: 12px;
  }

  .ai-logo {
    width: 40px;
    height: 40px;
  }

  .leaderboard-stats {
    flex-direction: column;
    gap: 16px;
  }

  .category-tabs {
    flex-direction: column;
    align-items: center;
  }

  .leaderboard-controls {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .table-header,
  .table-row {
    grid-template-columns: 50px 1fr 70px 70px 70px;
  }

  .table-cell.votes,
  .table-cell.winrate,
  .table-cell.organization {
    display: none;
  }
}

@media (max-width: 640px) {
  /* Mobile: sidebar should be fixed and hidden by default */
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
    border-right: 1px solid #dadce0;
    border-right: 1px solid var(--border-color);
  }

  /* Hide sidebar by default on mobile (when collapsed) */
  .sidebar.collapsed {
    transform: translateX(-100%);
  }

  /* Show sidebar when not collapsed */
  .sidebar:not(.collapsed) {
    transform: translateX(0);
  }

  /* Mobile overlay - shown when sidebar is open */
  .sidebar-overlay {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  /* Mobile header with hamburger menu */
  .mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #ffffff;
    background-color: var(--bg-primary);
    border-bottom: 1px solid #dadce0;
    border-bottom: 1px solid var(--border-color);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #1a1a1a;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
  }

  .mobile-menu-button:hover {
    background-color: #f8f9fa;
    background-color: var(--bg-secondary);
  }

  .mobile-header-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    color: var(--text-primary);
    flex: 1 1;
    text-align: center;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-description {
    font-size: 14px;
  }

  .input-container {
    padding: 12px 16px;
  }

  .main-input {
    font-size: 14px;
  }

  .voting-options {
    grid-template-columns: 1fr 1fr;
  }

  /* Leaderboard table optimizations for mobile */
  .table-header-simple span:nth-child(5),
  .table-header-simple span:nth-child(6),
  .table-header-simple span:nth-child(7),
  .table-row-simple span:nth-child(5),
  .table-row-simple span:nth-child(6),
  .table-row-simple span:nth-child(7) {
    display: none;
  }

  /* Adjust table column widths for mobile */
  .table-header-simple span:nth-child(1),
  .table-row-simple span:nth-child(1) {
    flex: 0 0 50px;
  }

  .table-header-simple span:nth-child(2),
  .table-row-simple span:nth-child(2) {
    flex: 1 1;
    min-width: 0;
  }

  .table-header-simple span:nth-child(3),
  .table-row-simple span:nth-child(3) {
    flex: 0 0 60px;
  }

  .table-header-simple span:nth-child(4),
  .table-row-simple span:nth-child(4) {
    flex: 0 0 60px;
  }
}

/* Modern Leaderboard Styles */
.leaderboard-modern-header {
  text-align: center;
  padding: 40px 24px 32px;
  margin: 0 auto;
}

.modern-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.modern-subtitle {
  font-size: 16px;
  color: #5f6368;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  border-radius: var(--radius-md);
  padding: 4px;
  max-width: -webkit-fit-content;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.nav-tab {
  padding: 12px 10px;
  border: none;
  background: transparent;
  color: #5f6368;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 14px;
  border-radius: 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-tab:hover {
  color: #1a1a1a;
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.05);
}

.challenge-mode .nav-tab.active {
  background-color: #00b259;
  background-color: var(--challenge-primary);
  color: white;
}
.nav-tab.active {
  background-color: #1a73e8;
  background-color: var(--accent-blue);
  color: white;
}

.voting-cta {
  text-align: center;
  margin-bottom: 32px;
}

.challenge-mode .start-voting-btn {
  background-color: #00b259;
  background-color: var(--challenge-primary);
}
.start-voting-btn {
  background-color: #1a73e8;
  background-color: var(--accent-blue);
  /* color: white; */
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.start-voting-btn:hover {
  background-color: #1557b0;
}

.arena-sections {
  margin: 0 auto;
}

.overview-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.single-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.arena-card {
  background-color: #ffffff;
  background-color: var(--bg-primary);
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
  box-shadow: var(--shadow-sm);
}

.arena-card.full-width {
  width: 100%;
  padding: 40px 24px 32px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.arena-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #dadce0;
  border-bottom: 1px solid var(--border-color);
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
}

.arena-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.update-time {
  font-size: 12px;
  color: #9aa0a6;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.update-time::before {
  content: "🕒";
  font-size: 12px;
}

.arena-table {
  padding: 0;
  max-height: 460px;
  overflow-x: auto;
  overflow-y: auto;
}

.table-header-simple {
  display: flex;
  padding: 12px 20px;
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid #dadce0;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 600;
  color: #5f6368;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-items: center;
  min-width: 100%;
  width: 100%;
}

.table-header-simple span {
  flex-shrink: 0;
  padding: 0 8px;
  text-align: left;
}

/* Make AGENT column flexible */
.table-header-simple span:nth-child(2) {
  flex-shrink: 1;
}

.table-header-simple span.sortable {
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
  transition: all 0.2s ease;
}

.table-header-simple span.sortable:hover {
  color: #1a73e8;
  color: var(--accent-blue);
  background-color: rgba(26, 115, 232, 0.05);
  border-radius: 4px;
}

.table-header-simple span:nth-child(1) {
  width: 100px;
  text-align: left;
}

/* Agent - flexible column */
.table-header-simple span:nth-child(2) {
  flex: 1 1 auto;
  min-width: 150px;
  max-width: none;
  text-align: left;
}

/* Agent */
.table-header-simple span:nth-child(3) {
  width: 100px;
  text-align: left;
}

/* Score */
.table-header-simple span:nth-child(4) {
  width: 120px;
  text-align: left;
}

/* 95% CI */
.table-header-simple span:nth-child(5) {
  width: 100px;
  text-align: left;
}

/* Votes */
.table-header-simple span:nth-child(6) {
  width: 150px;
  text-align: left;
}

/* Organization */
.table-header-simple span:nth-child(7) {
  width: 120px;
  text-align: left;
}

/* License */

.table-row-simple {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #dadce0;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
  font-size: 14px;
  min-width: 100%;
  width: 100%;
}

.table-row-simple span {
  flex-shrink: 0;
  padding: 0 8px;
  text-align: left;
}

/* Make AGENT column flexible */
.table-row-simple span:nth-child(2) {
  flex-shrink: 1;
}

.table-row-simple span:nth-child(1) {
  width: 100px;
  text-align: left;
}

/* Agent - flexible column */
.table-row-simple span:nth-child(2) {
  flex: 1 1 auto;
  min-width: 150px;
  max-width: none;
  text-align: left;
}

/* Agent */
.table-row-simple span:nth-child(3) {
  width: 100px;
  text-align: left;
}

/* Score */
.table-row-simple span:nth-child(4) {
  width: 120px;
  text-align: left;
}

/* 95% CI */
.table-row-simple span:nth-child(5) {
  width: 100px;
  text-align: left;
}

/* Votes */
.table-row-simple span:nth-child(6) {
  width: 150px;
  text-align: left;
}

/* Organization */
.table-row-simple span:nth-child(7) {
  width: 120px;
  text-align: left;
}

/* License */

.table-row-simple:hover {
  background-color: #f8f9fa;
  background-color: var(--bg-secondary);
}

.table-row-simple:last-child {
  border-bottom: none;
}

.loading-message,
.error-message {
  text-align: center;
  padding: 40px 20px;
  color: #5f6368;
  color: var(--text-secondary);
  font-style: italic;
}

.error-message {
  color: #d93025;
}

.rank-simple {
  font-weight: 600;
  color: #1a1a1a;
  color: var(--text-primary);
}

.model-simple {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a1a1a;
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  cursor: default;
}

.model-simple.is-clipped {
  cursor: pointer;
}

.model-simple .agent-name-tooltip {
  display: none;
  position: fixed;
  top: 50%;
  top: var(--tooltip-top, 50%);
  left: 50%;
  left: var(--tooltip-left, 50%);
  transform: translate(-50%, calc(-100% - 8px));
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 99999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.2s ease-in;
  min-width: -webkit-max-content;
  min-width: max-content;
  pointer-events: none;
}

.model-simple .agent-name-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

/* Desktop: show on hover only for clipped names */
@media (min-width: 769px) {
  .model-simple.is-clipped:hover .agent-name-tooltip {
    display: block;
  }
}

/* Mobile: show on click only for clipped names (when tooltip-active class is present) */
@media (max-width: 768px) {
  .model-simple.is-clipped.tooltip-active .agent-name-tooltip {
    display: block;
  }

  .model-simple.is-clipped:hover {
    cursor: pointer;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

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

.model-icon-simple {
  font-size: 12px;
  flex-shrink: 0;
}

.score-simple {
  font-weight: 600;
  color: #1a1a1a;
  color: var(--text-primary);
}

.votes-simple {
  color: #5f6368;
  color: var(--text-secondary);
}

.ci-simple {
  color: #5f6368;
  color: var(--text-secondary);
  font-size: 12px;
}

.organization-simple {
  color: #5f6368;
  color: var(--text-secondary);
  font-size: 13px;
}

.license-simple {
  color: #5f6368;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: capitalize;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #dadce0;
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9aa0a6;
  background: var(--text-muted);
}

/* Charts Section Styles */
.charts-section {
  margin-top: 0;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  clear: both;
  position: relative;
  z-index: 1;
  width: 100%;
}

.charts-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 30px;
  gap: 30px;
  margin: 0 auto;
  grid-auto-rows: auto; /* Allow variable row heights */
  align-items: start; /* Align items to top */
}

.chart-container {
  background: white;
  border-radius: 8px;
  overflow: visible;
  padding: 10px;
  /* aspect-ratio: 1 / 1; */
}

.chart-container canvas {
  /* aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: auto !important; */
}

/* Responsive Design for New Leaderboard */
@media (max-width: 1024px) {
  .nav-tabs {
    max-width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 8px;
  }

  .nav-tab {
    padding: 10px 16px;
    font-size: 13px;
  }

  .charts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .chart-container > div {
    height: 100vw !important;
  }
}

@media (max-width: 768px) {
  .table-header-simple span:nth-child(1) {
    width: 80px;
    text-align: left;
  }

  /* Agent - flexible column */
  .table-header-simple span:nth-child(2) {
    flex: 1 1 auto;
    min-width: 120px;
    text-align: left;
  }

  /* Agent */
  .table-header-simple span:nth-child(3) {
    width: 80px;
    text-align: left;
  }

  /* Score */
  .table-header-simple span:nth-child(4) {
    width: 100px;
    text-align: left;
  }

  /* 95% CI */
  .table-header-simple span:nth-child(5) {
    width: 80px;
    text-align: left;
  }

  /* Votes */
  .table-header-simple span:nth-child(6) {
    width: 120px;
    text-align: left;
  }

  /* Organization */
  .table-header-simple span:nth-child(7) {
    width: 100px;
    text-align: left;
  }

  /* License */

  .table-row-simple span:nth-child(1) {
    width: 80px;
    text-align: left;
  }

  /* Agent - flexible column */
  .table-row-simple span:nth-child(2) {
    flex: 1 1 auto;
    min-width: 120px;
    text-align: left;
  }

  /* Agent */
  .table-row-simple span:nth-child(3) {
    width: 80px;
    text-align: left;
  }

  /* Score */
  .table-row-simple span:nth-child(4) {
    width: 100px;
    text-align: left;
  }

  /* 95% CI */
  .table-row-simple span:nth-child(5) {
    width: 80px;
    text-align: left;
  }

  /* Votes */
  .table-row-simple span:nth-child(6) {
    width: 120px;
    text-align: left;
  }

  /* Organization */
  .table-row-simple span:nth-child(7) {
    width: 100px;
  }

  /* License */

  .modern-title {
    font-size: 28px;
  }

  .modern-subtitle {
    font-size: 14px;
  }

  .arena-header {
    padding: 12px 16px;
  }

  .arena-title {
    font-size: 16px;
  }

  .table-header-simple,
  .table-row-simple {
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .nav-tabs {
    padding: 2px 4px;
  }

  .nav-tab {
    padding: 8px 12px;
    font-size: 12px;
  }

  .table-header-simple span:nth-child(1) {
    width: 60px;
    text-align: left;
  }

  /* Agent - flexible column */
  .table-header-simple span:nth-child(2) {
    flex: 1 1 auto;
    min-width: 100px;
    text-align: left;
  }

  /* Agent */
  .table-header-simple span:nth-child(3) {
    width: 60px;
    text-align: left;
  }

  /* Score */
  .table-header-simple span:nth-child(4) {
    width: 80px;
    text-align: left;
  }

  /* 95% CI */
  .table-header-simple span:nth-child(5) {
    width: 60px;
    text-align: left;
  }

  /* Votes */
  .table-header-simple span:nth-child(6) {
    width: 100px;
    text-align: left;
  }

  /* Organization */
  .table-header-simple span:nth-child(7) {
    width: 80px;
    text-align: left;
  }

  /* License */

  .table-row-simple span:nth-child(1) {
    width: 60px;
    text-align: left;
  }

  /* Agent - flexible column */
  .table-row-simple span:nth-child(2) {
    flex: 1 1 auto;
    min-width: 100px;
    text-align: left;
  }

  /* Agent */
  .table-row-simple span:nth-child(3) {
    width: 60px;
    text-align: left;
  }

  /* Score */
  .table-row-simple span:nth-child(4) {
    width: 80px;
    text-align: left;
  }

  /* 95% CI */
  .table-row-simple span:nth-child(5) {
    width: 60px;
    text-align: left;
  }

  /* Votes */
  .table-row-simple span:nth-child(6) {
    width: 100px;
    text-align: left;
  }

  /* Organization */
  .table-row-simple span:nth-child(7) {
    width: 80px;
    text-align: left;
  }

  /* License */

  .table-header-simple,
  .table-row-simple {
    font-size: 12px;
    padding: 8px 12px;
  }

  .arena-sections {
    padding: 0 16px;
  }
}

/* Start Voting Button Styles */
.start-voting-btn {
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.start-voting-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.start-voting-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* Active Button Mode Styles */
.input-btn.active {
  background-color: #667eea;
  color: white;
  border: 1px solid #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}

.input-btn.active:hover {
  background-color: #5a6fd8;
  border-color: #5a6fd8;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Challenge mode: Green for active input button */
.app-container.challenge-mode .input-btn.active {
  background-color: #00b259;
  border-color: #00b259;
  box-shadow: 0 2px 8px rgba(0, 178, 89, 0.3);
}

.app-container.challenge-mode .input-btn.active:hover {
  background-color: #009648;
  border-color: #009648;
  box-shadow: 0 4px 12px rgba(0, 178, 89, 0.4);
}

.input-btn.active svg {
  stroke: white;
}

/* Enhanced Tooltip Styles */
.input-btn {
  position: relative;
}

.input-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.input-btn::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
  margin-bottom: 3px;
}

.input-btn:hover::before,
.input-btn:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Remove default title tooltip and enhance hover behavior */
.input-btn[title] {
  position: relative;
}

.input-btn[title]:hover {
  position: relative;
}

/* Ensure tooltips appear immediately on hover */
.input-btn:hover::before,
.input-btn:hover::after {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* Add a slight delay for better UX when not hovering */
.input-btn::before,
.input-btn::after {
  transition-delay: 0.1s;
}

/* Responsive tooltip positioning */
@media (max-width: 768px) {
  .input-btn::before {
    font-size: 11px;
    padding: 6px 10px;
    margin-bottom: 6px;
  }

  .input-btn::after {
    margin-bottom: 1px;
  }
}

/* Fix for oversized SVG icons */
svg {
  max-width: 100%;
  height: auto;
}

/* Ensure SVG icons respect their container sizes */
.w-4 svg,
.w-5 svg,
.w-6 svg,
.w-12 svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

/* Specific fixes for icon containers */
.w-12.h-12 svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

.w-6.h-6 svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

.w-5.h-5 svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

.w-4.h-4 svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}

/* How It Works Page Enhanced Styling */
.how-it-works-page .bg-white {
  background: rgba(255, 255, 255, 0.95) !important;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeInScale 0.6s ease-out;
}

.how-it-works-page .bg-white:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.how-it-works-page .text-center > div:nth-child(1) {
  animation: slideInFromLeft 0.8s ease-out;
  animation-delay: 0.2s;
  animation-fill-mode: backwards;
}

.how-it-works-page .text-center > div:nth-child(2) {
  animation: fadeInScale 0.8s ease-out;
  animation-delay: 0.4s;
  animation-fill-mode: backwards;
}

.how-it-works-page .text-center > div:nth-child(3) {
  animation: slideInFromRight 0.8s ease-out;
  animation-delay: 0.6s;
  animation-fill-mode: backwards;
}

.how-it-works-page .text-center > div:nth-child(4) {
  animation: fadeInUp 0.8s ease-out;
  animation-delay: 0.8s;
  animation-fill-mode: backwards;
}

/* Enhanced Process Step Cards */
/* .how-it-works-page .w-16.h-16 {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #667eea 100%) !important;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
} */

/* .how-it-works-page .bg-green-100 {
    background: linear-gradient(135deg, var(--accent-green) 0%, #48bb78 100%) !important;
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
    box-shadow: 0 4px 20px rgba(72, 187, 120, 0.3);
}

.how-it-works-page .bg-purple-100 {
    background: #e9d5ff !important;
}

.how-it-works-page .bg-orange-100 {
    background: #fed7aa !important;
} */

/* Feature Icons Enhanced */
.how-it-works-page .w-12.h-12.bg-blue-100,
.how-it-works-page .w-12.h-12.bg-green-100 {
  background: #dbeafe !important;
  border: 2px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.how-it-works-page .w-12.h-12:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Enhanced CTA Section */
.how-it-works-page .bg-gradient-to-r {
  background: #3b82f6 !important;
  position: relative;
  overflow: hidden;
}

/* Enhanced Buttons */
.how-it-works-page button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.how-it-works-page button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.how-it-works-page button:hover::before {
  left: 100%;
}

.how-it-works-page button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* List Item Enhancements */
.how-it-works-page li {
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 8px !important;
  margin: 4px 0 !important;
}

.how-it-works-page li:hover {
  background: rgba(102, 126, 234, 0.05);
  transform: translateX(5px);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

/* Checkbox/Check Icon Enhancements */
.how-it-works-page .text-green-500 {
  animation: pulse 2s ease-in-out infinite;
}

/* Enhanced Section Spacing and Typography */
.how-it-works-page h2,
.how-it-works-page h3 {
  color: #1a1a1a;
  color: var(--text-primary);
  font-weight: 700;
}

/* Staggered Animation Delays for Grid Items */
.how-it-works-page .grid > div:nth-child(1) {
  animation-delay: 0.1s;
}

.how-it-works-page .grid > div:nth-child(2) {
  animation-delay: 0.3s;
}

.how-it-works-page .grid > div:nth-child(3) {
  animation-delay: 0.5s;
}

.how-it-works-page .grid > div:nth-child(4) {
  animation-delay: 0.7s;
}

/* Terms of Use and Privacy Policy Page Styles */
.terms-content,
.privacy-content {
  margin: 0 auto;
  background-color: #ffffff;
  background-color: var(--bg-primary);
  border-radius: 12px;
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: 0 2px 4px 0 rgba(60, 64, 67, 0.3);
  box-shadow: var(--shadow-md);
  line-height: 1.7;
}

.terms-section,
.privacy-section {
  margin-bottom: 32px;
}

.terms-section h2,
.privacy-section h2 {
  color: #1a1a1a;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 2px solid #1a73e8;
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 8px;
}

.terms-section h3,
.privacy-section h3 {
  color: #1a1a1a;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 24px;
}

.terms-section p,
.privacy-section p {
  color: #5f6368;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 16px;
}

.terms-section ul,
.privacy-section ul {
  margin: 16px 0;
  padding-left: 24px;
}

.terms-section li,
.privacy-section li {
  color: #5f6368;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.terms-section strong,
.privacy-section strong {
  color: #1a1a1a;
  color: var(--text-primary);
  font-weight: 600;
}

.terms-footer,
.privacy-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #dadce0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.terms-footer p,
.privacy-footer p {
  color: #9aa0a6;
  color: var(--text-muted);
  font-style: italic;
  font-size: 14px;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .how-it-works-page .bg-white {
    margin: 16px 0;
  }

  .how-it-works-page .w-16.h-16 {
    animation-duration: 4s;
  }

  .terms-content,
  .privacy-content {
    padding: 24px;
    margin: 0 16px;
  }

  .terms-section h2,
  .privacy-section h2 {
    font-size: 20px;
  }

  .terms-section h3,
  .privacy-section h3 {
    font-size: 16px;
  }

  .terms-section p,
  .terms-section li,
  .privacy-section p,
  .privacy-section li {
    font-size: 14px;
  }
}

/* Battle Container Styles */
.battle-container {
  margin: 20px 24px;
  background-color: #ffffff;
  background-color: var(--bg-primary);
  border: 1px solid #dadce0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 4px 0 rgba(60, 64, 67, 0.3);
  box-shadow: var(--shadow-md);
}

.battle-status {
  text-align: center;
  padding: 10px;
  background: #f8f9fa;
  background: var(--bg-secondary);
  border-radius: 4px;
  margin-bottom: 20px;
  color: #5f6368;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.battle-status.active {
  background: #1b5e20;
  color: #4caf50;
}

.battle-status.error {
  background: #b71c1c;
  color: #ef5350;
}

.battle-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  gap: 20px;
  height: calc(100vh - 280px);
  min-height: 400px;
}

.battle-panel {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 20px;
  overflow-y: auto;
  border: 2px solid #444;
}

.battle-panel-title {
  color: #4caf50;
  margin-bottom: 15px;
  font-size: 20px;
  border-bottom: 2px solid #444;
  padding-bottom: 10px;
}

.battle-output {
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #e0e0e0;
}

.battle-output .event {
  margin-bottom: 10px;
}

.battle-output .phase-start,
.battle-output .phase-end {
  color: #4caf50;
  font-weight: bold;
}

.battle-output .reasoning {
  color: #64b5f6;
  font-style: italic;
}

.battle-output .web-search {
  color: #ffb74d;
}

.battle-output .citation {
  color: #4dd0e1;
}

.battle-output .code {
  background: #1a1a1a;
  border-left: 3px solid #ba68c8;
  padding: 10px;
  margin: 10px 0;
  color: #ba68c8;
}

.battle-output .error {
  color: #ef5350;
  font-weight: bold;
}

.battle-output .usage {
  color: #777;
  font-size: 12px;
}

.battle-output .session-end {
  color: #4caf50;
  font-weight: bold;
  text-align: center;
  padding: 20px;
  border: 2px solid #4caf50;
  border-radius: 8px;
  margin: 20px 0;
}

.battle-output .separator {
  color: #555;
  margin: 10px 0;
}

.battle-output .url {
  color: #81c784;
  word-break: break-all;
}

/* Responsive Design for Battle Container */
@media (max-width: 768px) {
  .battle-panels {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 300px;
  }

  .battle-container {
    margin: 16px;
  }

  .battle-panel {
    padding: 16px;
  }

  .battle-panel-title {
    font-size: 18px;
  }

  .battle-output {
    font-size: 12px;
  }
}

/* Loading States for Streaming */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 12px;
}

.loading-dots {
  display: flex;
  gap: 4px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #1a73e8;
  background-color: var(--accent-blue);
  animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0s;
}

.loading-text {
  color: #5f6368;
  color: var(--text-secondary);
  font-size: 14px;
  font-style: italic;
}

@keyframes loading-bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Agent content styles - Updated to match arena.html */
.agent-content {
  flex: 1 1;
  overflow-y: auto;
  padding: 15px 17px;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  /* Remove fixed height to allow flex layout */
  /* Remove white-space: pre-wrap - let markdown content flow naturally */
  word-wrap: break-word;
  scroll-behavior: smooth;
}

/* Streaming loading animation below content-text */

.streaming-indicator {
  position: relative;
  margin-top: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(66, 133, 244, 0.1);
  border: 1px solid rgba(66, 133, 244, 0.3);
  border-radius: 6px;
  font-size: 12px;
  color: #1a73e8;
  color: var(--accent-blue);
  animation: streaming-pulse 2s ease-in-out infinite;
  width: -webkit-fit-content;
  width: fit-content;
  max-width: 200px;
}

.streaming-indicator .dots {
  display: flex;
  gap: 3px;
}

.streaming-indicator .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #1a73e8;
  background-color: var(--accent-blue);
  animation: streaming-dot-bounce 1.4s ease-in-out infinite both;
}

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

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

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

@keyframes streaming-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@keyframes streaming-dot-bounce {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Response loading indicator animation */
.response-loading-indicator {
  display: inline-block;
  font-size: 16px;
  color: #666;
  animation: loading-dots-bounce 1.4s ease-in-out infinite both;
}

.response-loading-indicator.hidden {
  display: none;
}

/* Copy row styling to keep button on the right */
.copy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copy-row .copy-btn {
  margin-left: auto;
}

@keyframes loading-dots-bounce {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  40% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.agent-content .event {
  margin-bottom: 8px;
}

.agent-content .event.phase-start,
.agent-content .event.phase-end {
  color: #34a853;
  color: var(--accent-green);
  font-weight: bold;
}

.agent-content .event.reasoning {
  color: #64b5f6;
  font-style: italic;
}

.agent-content .event.web-search {
  color: #ffb74d;
}

.agent-content .event.citation {
  color: #4dd0e1;
}

.agent-content .code {
  background: #f8f9fa;
  background: var(--bg-secondary);
  border-left: 3px solid #ba68c8;
  padding: 10px;
  margin: 10px 0;
  color: #ba68c8;
  border-radius: 4px;
}

.agent-content .error {
  color: #ef5350;
  font-weight: bold;
}

.agent-content .usage {
  color: #9aa0a6;
  color: var(--text-muted);
  font-size: 12px;
}

.agent-content .queue-waiting {
  color: #ffb74d;
  font-style: italic;
}

.agent-content .stream-error {
  color: #ff9800;
  font-weight: bold;
  background: rgba(255, 152, 0, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  border-left: 3px solid #ff9800;
}

.agent-content .reasoning {
  background: rgba(100, 181, 246, 0.1);
  border-left: 4px solid #64b5f6;
  padding: 12px;
  margin: 8px 0;
  border-radius: 6px;
}

.agent-content .phase-start {
  background: rgba(76, 175, 80, 0.1);
  border-left: 4px solid #4caf50;
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 4px;
  font-weight: bold;
}

.agent-content .phase-end {
  background: rgba(76, 175, 80, 0.1);
  border-left: 4px solid #4caf50;
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 4px;
  font-weight: bold;
}

.agent-content .session-end {
  color: #34a853;
  color: var(--accent-green);
  font-weight: bold;
  text-align: center;
  padding: 12px;
  border: 2px solid #34a853;
  border: 2px solid var(--accent-green);
  border-radius: 8px;
  margin: 15px 0;
  background: rgba(52, 168, 83, 0.1);
}

.agent-content .separator {
  color: #dadce0;
  color: var(--border-color);
  margin: 10px 0;
}

/* New Event Type Styles */

/* Deep Research - Language Detection */
.agent-content .event.language-detected {
  color: #9c27b0;
  background: rgba(156, 39, 176, 0.1);
  border-left: 4px solid #9c27b0;
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 4px;
}

/* Hypothesis Generation - MooseChem */
.agent-content .event.hypothesis-result {
  background: rgba(233, 30, 99, 0.1);
  border-left: 4px solid #e91e63;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  color: #1a1a1a;
  color: var(--text-primary);
}

.agent-content .event.hypothesis-result strong {
  color: #e91e63;
}

/* Ideation Track - Paper Retrieval & Literature */
.agent-content .event.paper-retrieval {
  color: #3f51b5;
  background: rgba(63, 81, 181, 0.1);
  border-left: 4px solid #3f51b5;
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 4px;
}

.agent-content .event.literature-retrieved {
  color: #00acc1;
  background: rgba(0, 172, 193, 0.1);
  border-left: 4px solid #00acc1;
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 4px;
}

/* SciPip Events */
.agent-content .event.scipip-event {
  color: #7b1fa2;
  background: rgba(123, 31, 162, 0.1);
  border-left: 4px solid #7b1fa2;
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 4px;
}

.agent-content .url {
  color: #81c784;
  word-break: break-all;
}

.agent-content .stream-error {
  color: #ff9800;
  font-weight: bold;
  background: rgba(255, 152, 0, 0.1);
  padding: 8px;
  border-radius: 4px;
  border-left: 3px solid #ff9800;
  margin: 8px 0;
}

.agent-content .text-done {
  color: #34a853;
  color: var(--accent-green);
  font-style: italic;
  font-size: 12px;
}

.agent-content .annotation {
  color: #9c27b0;
  background: rgba(156, 39, 176, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  margin: 4px 0;
}

/* Agent content scrollbar styling - matching arena.html */
.agent-content::-webkit-scrollbar {
  width: 6px;
}

.agent-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.agent-content::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid;
  min-width: 300px;
  max-width: 400px;
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.toast-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast-hidden {
  transform: translateX(100%);
  opacity: 0;
}

.toast-success {
  border-left-color: #52c41a;
}

.toast-error {
  border-left-color: #ff4d4f;
}

.toast-info {
  border-left-color: #1890ff;
}

.toast-warning {
  border-left-color: #faad14;
}

.toast-content {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
}

.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  background: #52c41a;
  color: white;
}

.toast-error .toast-icon {
  background: #ff4d4f;
  color: white;
}

.toast-info .toast-icon {
  background: #1890ff;
  color: white;
}

.toast-warning .toast-icon {
  background: #faad14;
  color: white;
}

.toast-message {
  flex: 1 1;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  background: #f5f5f5;
  color: #666;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
  .toast {
    background: #2a2a2a;
    color: #fff;
  }

  .toast-message {
    color: #fff;
  }

  .toast-close {
    color: #ccc;
  }

  .toast-close:hover {
    background: #404040;
    color: #fff;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .toast {
    min-width: auto;
    max-width: none;
  }
}

/* Feedback Form Styles */
.feedback-header {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3);
  margin-bottom: 24px;
  border-top: 10px solid #1a73e8;
  border-top: 10px solid var(--accent-blue);
}

.feedback-title {
  font-size: 32px;
  font-weight: 400;
  color: #202124;
  margin: 0 0 12px 0;
}

.feedback-subtitle {
  font-size: 14px;
  color: #5f6368;
  margin: 0 0 16px 0;
}

.feedback-required-note {
  font-size: 14px;
  color: #d93025;
  margin: 0;
}

.feedback-required-star {
  color: #d93025;
  font-size: 14px;
}

.feedback-form {
  max-width: 100%;
}

.feedback-question-card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3);
  margin-bottom: 16px;
  border-left: 8px solid transparent;
  transition: border-left-color 0.2s ease;
}

.feedback-question-card:focus-within {
  border-left-color: #1a73e8;
  border-left-color: var(--accent-blue);
}

.feedback-question-label {
  display: block;
  font-size: 16px;
  color: #202124;
  margin-bottom: 16px;
  font-weight: 400;
}

.feedback-error {
  color: #d93025;
  font-size: 12px;
  margin-top: -12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.feedback-error::before {
  content: "⚠";
}

.feedback-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
  transition: background-color 0.2s ease;
}

.feedback-radio-label:hover {
  background-color: #f8f9fa;
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
  border-radius: 4px;
}

.feedback-radio-input {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: #1a73e8;
  accent-color: var(--accent-blue);
}

.feedback-radio-text {
  font-size: 14px;
  color: #202124;
}

.feedback-textarea,
.feedback-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  border: none;
  border-bottom: 1px solid #dadce0;
  outline: none;
  transition: border-bottom-color 0.2s ease;
  background: transparent;
  resize: vertical;
}

.feedback-textarea:focus,
.feedback-input:focus {
  border-bottom-color: #1a73e8;
  border-bottom-color: var(--accent-blue);
  border-bottom-width: 2px;
}

.feedback-textarea::placeholder,
.feedback-input::placeholder {
  color: #5f6368;
}

.feedback-submit-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.feedback-submit-button {
  background: #1a73e8;
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feedback-submit-button:hover:not(:disabled) {
  background: #0056b3;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
}

.feedback-submit-button:disabled {
  background: #dadce0;
  cursor: not-allowed;
}

.feedback-clear-button {
  background: transparent;
  color: #1a73e8;
  color: var(--accent-blue);
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feedback-clear-button:hover:not(:disabled) {
  background: #f8f9fa;
  border-radius: 4px;
}

.feedback-clear-button:disabled {
  color: #dadce0;
  cursor: not-allowed;
}

.feedback-footer-note {
  font-size: 12px;
  color: #5f6368;
  text-align: center;
  padding: 16px 0;
}

/* Success State */
.feedback-success-container {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-success-card {
  background: white;
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3);
  text-align: center;
  max-width: 500px;
}

.feedback-success-icon {
  color: #34a853;
  margin: 0 auto 24px;
}

.feedback-success-title {
  font-size: 28px;
  font-weight: 400;
  color: #202124;
  margin: 0 0 12px 0;
}

.feedback-success-message {
  font-size: 16px;
  color: #5f6368;
  margin: 0 0 32px 0;
}

.feedback-success-button {
  background: #1a73e8;
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feedback-success-button:hover {
  background: #0056b3;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
}

/* Responsive adjustments for feedback form */
@media (max-width: 768px) {
  .feedback-header {
    padding: 24px 16px;
  }

  .feedback-title {
    font-size: 24px;
  }

  .feedback-question-card {
    padding: 16px;
  }

  .feedback-submit-section {
    flex-direction: column;
    align-items: stretch;
  }

  .feedback-submit-button,
  .feedback-clear-button {
    width: 100%;
  }

  .feedback-success-card {
    padding: 32px 24px;
  }
}

/* Activity Box Styles - Based on arena.html */
.activity-box {
  margin-bottom: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  overflow: hidden;
}

.activity-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f5f5f5;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s ease;
}

.activity-box-header:hover {
  background: #eeeeee;
}

.activity-box-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.activity-box-toggle {
  font-size: 12px;
  color: #4f46e5;
  transition: transform 0.2s;
  transform: rotate(-90deg);
}

.activity-box-toggle.expanded {
  transform: rotate(180deg);
}

.activity-box-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.activity-box-content.expanded {
  max-height: 200px;
  overflow-y: auto;
}

.activity-box-inner {
  padding: 12px 15px;
}

/* Activity Items - Based on arena.html */
.activity-item {
  padding: 6px 10px;
  margin: 4px 0;
  background: white;
  border-radius: 4px;
  font-size: 12px;
  color: #374151;
  border-left: 2px solid #e5e7eb;
}

.activity-item pre {
  margin-top: 6px;
  font-size: 11px;
  white-space: pre-wrap;
  color: #6b7280;
}

.activity-item.phase {
  background: #eff6ff;
  border-left-color: #4f46e5;
  font-weight: 600;
}

.activity-item.thinking {
  background: #fef3c7;
  border-left-color: #f59e0b;
  font-style: italic;
}

.activity-item.search {
  border-left-color: #3b82f6;
}

.activity-item.source {
  padding-left: 10px;
  font-size: 11px;
  color: #6b7280;
}

.activity-item.error {
  background: #fef2f2;
  border-left-color: #ef4444;
  color: #dc2626;
}

.activity-item.progress-live {
  background: #f0fdf4;
  border-left-color: #10b981;
  font-weight: 600;
  color: #059669;
}

/* Report Section Styles - Based on arena.html */
.report-section {
  margin-top: 10px;
  line-height: 1;
  color: #1f2937;
}

.report-section > h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #1f2937;
}

.markdown-content {
  /* line-height: 1.0; */
}

ol,
ul,
menu {
  list-style: disc outside none;
  list-style: initial;
}

.main-content ol,
.markdown-content ul {
  line-height: 1;
}

/* Markdown Content Rendering - Based on arena.html */
.markdown-content h1 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 12px;
  color: #111827;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 6px;
}

.markdown-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 18px;
  margin-bottom: 10px;
  color: #111827;
}

.markdown-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
  color: #374151;
}

.markdown-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 6px;
  color: #374151;
}

.markdown-content p {
  line-height: 1.7;
}

.markdown-content ul,
.markdown-content ol {
  margin-bottom: 4px;
}

.markdown-content li {
  margin-bottom: 0px;
  line-height: 1.7;
  padding: 0;
}

.markdown-content li > p {
  margin-bottom: -24px;
  margin-top: 0px;
  line-height: 1.7;
}

.markdown-content strong {
  font-weight: 600;
  color: #111827;
}

.markdown-content em {
  font-style: italic;
}

.markdown-content code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
  font-family: "Monaco", "Courier New", monospace;
  color: #374151;
}

.markdown-content pre {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.5;
}

.markdown-content pre code {
  background: transparent;
  padding: 0;
  color: #374151;
  font-size: 12px;
}

.markdown-content blockquote {
  border-left: 3px solid #4f46e5;
  padding-left: 12px;
  margin: 12px 0;
  color: #6b7280;
  font-style: italic;
}

.markdown-content a {
  color: #4f46e5;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.markdown-content a:hover {
  border-bottom-color: #4f46e5;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 13px;
}

.markdown-content table th,
.markdown-content table td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  text-align: left;
}

.markdown-content table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.markdown-content table tr:hover {
  background: #fafafa;
}

.markdown-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2px 0;
}

.markdown-content blockquote {
  border-left: 4px solid #4f46e5;
  padding-left: 16px;
  margin: 16px 0;
  color: #6b7280;
  font-style: italic;
}

.markdown-content a {
  color: #4f46e5;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.markdown-content a:hover {
  border-bottom-color: #4f46e5;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.markdown-content th,
.markdown-content td {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.markdown-content th {
  background: #f9fafb;
  font-weight: 600;
  color: #111827;
}

.markdown-content tr:nth-child(even) {
  background: #fafafa;
}

/* Expanded Panel Overlay Styles */
.expanded-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  left: 250px;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.expanded-panel-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  background: #ffffff;
  background: var(--bg-primary);
  border-radius: 16px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

.expanded-model-response {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.expanded-response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #dadce0;
  border-bottom: 1px solid var(--border-color);
  background-color: #ffffff;
  background-color: var(--bg-primary);
  flex-shrink: 0;
}

.expanded-response-content {
  flex: 1 1;
  overflow-y: auto;
  padding: 20px;
}

.expanded-response-header .close-btn {
  padding: 6px 8px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Fixed welcome banner at bottom */
.app-container .welcome-banner {
  position: fixed;
  bottom: 0;
  left: 280px; /* Start after sidebar width */
  right: 0;
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: white;
  text-align: center;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: left 0.3s ease;
}

/* Challenge mode: Green gradient for welcome banner */
.app-container.challenge-mode .welcome-banner {
  background: linear-gradient(135deg, #00b259 0%, #008744 100%);
}

/* Adjust welcome banner when sidebar is collapsed */
.app-container:has(.sidebar.collapsed) .welcome-banner {
  left: 64px; /* Collapsed sidebar width */
}

/* ============================================= */
/* COMPREHENSIVE CHALLENGE MODE GREEN OVERRIDES */
/* ============================================= */

/* Navigation and Header Elements */
.app-container.challenge-mode .site-logo {
  color: #00b259;
  color: var(--challenge-primary);
}

.app-container.challenge-mode .site-header .token-box input:focus {
  border-color: #00b259;
  border-color: var(--challenge-primary);
}

.app-container.challenge-mode .nav-dropdown-button:focus {
  border-color: #00b259;
  border-color: var(--challenge-primary);
}

.app-container.challenge-mode .nav-link.active {
  background-color: #00b259;
  background-color: var(--challenge-primary);
}

/* Filter and Dropdown Elements */
.app-container.challenge-mode .filter-button:hover {
  border-color: #00b259;
  border-color: var(--challenge-primary);
}

.app-container.challenge-mode .filter-button:focus {
  border-color: #00b259;
  border-color: var(--challenge-primary);
}

.app-container.challenge-mode .filter-dropdown-item.active {
  background-color: rgba(0, 178, 89, 0.1);
  color: #00b259;
  color: var(--challenge-primary);
}

.app-container.challenge-mode .filter-icon {
  color: #00b259;
  color: var(--challenge-primary);
}

/* Input and Validation Elements */
.app-container.challenge-mode .user-input:focus {
  border-color: #00b259;
  border-color: var(--challenge-primary);
}

.app-container.challenge-mode .user-input.validation-validating {
  border-color: #00b259;
  border-color: var(--challenge-primary);
}

.app-container.challenge-mode .validation-message.validating {
  background-color: rgba(0, 178, 89, 0.1);
  color: #00b259;
  color: var(--challenge-primary);
}

.app-container.challenge-mode .validating-icon {
  color: #00b259;
  color: var(--challenge-primary);
}

.app-container.challenge-mode .invite-code-input:focus {
  border-color: #00b259;
  border-color: var(--challenge-primary);
}

.app-container.challenge-mode .invite-code-input.validation-validating {
  border-color: #00b259;
  border-color: var(--challenge-primary);
}

.app-container.challenge-mode .validation-icon.validating-icon {
  color: #00b259;
  color: var(--challenge-primary);
}

/* Links */
.app-container.challenge-mode .leaderboard-link {
  color: #00b259;
  color: var(--challenge-primary);
}

/* Vote Options */
.app-container.challenge-mode .vote-option:hover {
  border-color: #00b259;
  border-color: var(--challenge-primary);
}

/* File Upload Elements */
.app-container.challenge-mode .file-input-wrapper {
  border-color: #00b259;
  border-color: var(--challenge-primary);
}

.app-container.challenge-mode .file-input-icon {
  color: #00b259;
  color: var(--challenge-primary);
}

/* Loading and Progress Elements */
.app-container.challenge-mode .loading-spinner {
  border-top-color: #00b259;
  border-top-color: var(--challenge-primary);
}

/* Tab and Section Headers */
.app-container.challenge-mode .tab-header.active {
  border-bottom-color: #00b259;
  border-bottom-color: var(--challenge-primary);
  color: #00b259;
  color: var(--challenge-primary);
}

.app-container.challenge-mode .section-divider {
  border-top-color: #00b259;
  border-top-color: var(--challenge-primary);
}

/* Buttons and Interactive Elements */
.app-container.challenge-mode .primary-button {
  background-color: #00b259;
  background-color: var(--challenge-primary);
  border-color: #00b259;
  border-color: var(--challenge-primary);
}

.app-container.challenge-mode .primary-button:hover {
  background-color: #009648;
  border-color: #009648;
}

.app-container.challenge-mode .start-voting-btn {
  background: linear-gradient(
    135deg,
    #00b259 0%,
    #008744 100%
  );
  background: linear-gradient(
    135deg,
    var(--challenge-primary) 0%,
    #008744 100%
  );
  border-color: #00b259;
  border-color: var(--challenge-primary);
}

.app-container.challenge-mode .start-voting-btn:hover {
  background: linear-gradient(135deg, #009648 0%, #006633 100%);
}

/* Ant Design Component Overrides */
.app-container.challenge-mode .ant-btn-primary {
  background: #00b259 !important;
  background: var(--challenge-primary) !important;
  border-color: #00b259 !important;
  border-color: var(--challenge-primary) !important;
}

.app-container.challenge-mode .ant-btn-primary:hover {
  background: #009648 !important;
  border-color: #009648 !important;
}

/* Replace purple gradients with green */
.app-container.challenge-mode .gradient-background {
  background: linear-gradient(
    135deg,
    #00b259 0%,
    #008744 100%
  ) !important;
  background: linear-gradient(
    135deg,
    var(--challenge-primary) 0%,
    #008744 100%
  ) !important;
}

/* Replace blue/purple accent colors */
.app-container.challenge-mode .accent-color {
  color: #00b259 !important;
  color: var(--challenge-primary) !important;
}

.app-container.challenge-mode .accent-bg {
  background-color: #00b259 !important;
  background-color: var(--challenge-primary) !important;
}

.app-container.challenge-mode .accent-border {
  border-color: #00b259 !important;
  border-color: var(--challenge-primary) !important;
}

