*, ::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.17 | 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 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: Inter, sans-serif; /* 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::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

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% !important;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .\!container {
    max-width: 640px !important;
  }

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

  .\!container {
    max-width: 768px !important;
  }

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

  .\!container {
    max-width: 1024px !important;
  }

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

  .\!container {
    max-width: 1280px !important;
  }

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

  .\!container {
    max-width: 1536px !important;
  }

  .container {
    max-width: 1536px;
  }
}
.pointer-events-none {
  pointer-events: none;
}
.static {
  position: static;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.bottom-1\/3 {
  bottom: 33.333333%;
}
.bottom-12 {
  bottom: 3rem;
}
.bottom-16 {
  bottom: 4rem;
}
.bottom-24 {
  bottom: 6rem;
}
.bottom-8 {
  bottom: 2rem;
}
.left-1\/4 {
  left: 25%;
}
.left-12 {
  left: 3rem;
}
.left-16 {
  left: 4rem;
}
.left-2\/3 {
  left: 66.666667%;
}
.left-3 {
  left: 0.75rem;
}
.left-8 {
  left: 2rem;
}
.right-1\/3 {
  right: 33.333333%;
}
.right-1\/4 {
  right: 25%;
}
.right-12 {
  right: 3rem;
}
.right-8 {
  right: 2rem;
}
.top-1\/2 {
  top: 50%;
}
.top-1\/3 {
  top: 33.333333%;
}
.top-1\/4 {
  top: 25%;
}
.top-12 {
  top: 3rem;
}
.top-16 {
  top: 4rem;
}
.top-2\/3 {
  top: 66.666667%;
}
.top-8 {
  top: 2rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.hidden {
  display: none;
}
.h-10 {
  height: 2.5rem;
}
.h-12 {
  height: 3rem;
}
.h-14 {
  height: 3.5rem;
}
.h-16 {
  height: 4rem;
}
.h-20 {
  height: 5rem;
}
.h-24 {
  height: 6rem;
}
.h-32 {
  height: 8rem;
}
.h-8 {
  height: 2rem;
}
.h-full {
  height: 100%;
}
.w-10 {
  width: 2.5rem;
}
.w-12 {
  width: 3rem;
}
.w-14 {
  width: 3.5rem;
}
.w-16 {
  width: 4rem;
}
.w-20 {
  width: 5rem;
}
.w-24 {
  width: 6rem;
}
.w-32 {
  width: 8rem;
}
.w-40 {
  width: 10rem;
}
.w-8 {
  width: 2rem;
}
.w-fit {
  width: -moz-fit-content;
  width: fit-content;
}
.w-full {
  width: 100%;
}
.max-w-lg {
  max-width: 32rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.caption-bottom {
  caption-side: bottom;
}
.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes ai-glow {

  0%, 100% {
    box-shadow: 0 0 20px hsl(180 100% 50% / 0.3);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 40px hsl(180 100% 50% / 0.8), 0 0 80px hsl(270 100% 70% / 0.4);
    transform: scale(1.02);
  }
}
.animate-ai-glow {
  animation: ai-glow 3s ease-in-out infinite;
}
@keyframes ai-pulse {

  0%, 100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}
.animate-ai-pulse {
  animation: ai-pulse 2s ease-in-out infinite;
}
@keyframes float {

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

  50% {
    transform: translateY(-10px);
  }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}
@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-pointer {
  cursor: pointer;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-4 {
  gap: 1rem;
}
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * 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-auto {
  overflow: auto;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-md {
  border-radius: calc(0.5rem - 2px);
}
.border {
  border-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.border-transparent {
  border-color: transparent;
}
.bg-accent {
  --tw-bg-opacity: 1;
  background-color: hsl(210 40% 96.1% / var(--tw-bg-opacity, 1));
}
.bg-card {
  --tw-bg-opacity: 1;
  background-color: hsl(0 0% 100% / var(--tw-bg-opacity, 1));
}
.bg-destructive {
  --tw-bg-opacity: 1;
  background-color: hsl(0 72% 51% / var(--tw-bg-opacity, 1));
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-green-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
}
.bg-muted\/50 {
  background-color: hsl(210 40% 96.1% / 0.5);
}
.bg-primary {
  --tw-bg-opacity: 1;
  background-color: hsl(210 100% 45% / var(--tw-bg-opacity, 1));
}
.bg-secondary {
  --tw-bg-opacity: 1;
  background-color: hsl(210 40% 96.1% / var(--tw-bg-opacity, 1));
}
.bg-yellow-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 249 195 / var(--tw-bg-opacity, 1));
}
.bg-gradient-ai {
  background-image: linear-gradient(135deg, hsl(210 100% 45%), hsl(180 100% 50%));
}
.bg-gradient-magic {
  background-image: linear-gradient(45deg, hsl(210 100% 45%), hsl(220 100% 50%), hsl(180 100% 50%));
}
.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.pt-0 {
  padding-top: 0px;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.align-middle {
  vertical-align: middle;
}
.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-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.leading-none {
  line-height: 1;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.text-card-foreground {
  --tw-text-opacity: 1;
  color: hsl(215 25% 27% / var(--tw-text-opacity, 1));
}
.text-destructive-foreground {
  --tw-text-opacity: 1;
  color: hsl(0 0% 100% / var(--tw-text-opacity, 1));
}
.text-foreground {
  --tw-text-opacity: 1;
  color: hsl(215 25% 27% / var(--tw-text-opacity, 1));
}
.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-green-600 {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}
.text-green-800 {
  --tw-text-opacity: 1;
  color: rgb(22 101 52 / var(--tw-text-opacity, 1));
}
.text-muted-foreground {
  --tw-text-opacity: 1;
  color: hsl(215 16% 56.9% / var(--tw-text-opacity, 1));
}
.text-primary-foreground {
  --tw-text-opacity: 1;
  color: hsl(0 0% 100% / var(--tw-text-opacity, 1));
}
.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.text-secondary-foreground {
  --tw-text-opacity: 1;
  color: hsl(215 25% 27% / var(--tw-text-opacity, 1));
}
.text-yellow-800 {
  --tw-text-opacity: 1;
  color: rgb(133 77 14 / var(--tw-text-opacity, 1));
}
.opacity-40 {
  opacity: 0.4;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-70 {
  opacity: 0.7;
}
.opacity-\[0\.06\] {
  opacity: 0.06;
}
.opacity-\[0\.08\] {
  opacity: 0.08;
}
.opacity-\[0\.10\] {
  opacity: 0.10;
}
.opacity-\[0\.12\] {
  opacity: 0.12;
}
.opacity-\[0\.15\] {
  opacity: 0.15;
}
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  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-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Variables for UI Components */
:root {
  --background: 210 33% 99%;
  --foreground: 215 25% 27%;
  --card: 0 0% 100%;
  --card-foreground: 215 25% 27%;
  --popover: 0 0% 100%;
  --popover-foreground: 215 25% 27%;
  --primary: 210 100% 45%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 215 25% 27%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215 16% 56.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 215 25% 27%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 100%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 210 100% 45%;
  --radius: 0.5rem;
}

html {
  font-size: 14px; /* Base font-size: 14px instead of default 16px */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: hsl(240, 15%, 97%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-size: 1rem; /* 14px */
}

.container {
  background: white;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
}

/* Desktop styles */
@media (min-width: 768px) {
  .container {
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    min-height: 700px;
  }
}

.login-form {
  padding: 2rem;
}

.admin-dashboard {
  padding: 1rem;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e1e5e9;
}

.header-left {
  display: flex;
  align-items: center;
  width: 100%;
}

/* Desktop header */
@media (min-width: 768px) {
  .admin-dashboard {
    padding: 2rem;
  }

  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .header-left {
    min-width: 250px;
    width: auto;
  }
}

.header h1 {
  color: #333;
  font-size: 1.25rem;
  margin: 0;
  text-align: center;
}

.user-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

/* Desktop header title and actions */
@media (min-width: 768px) {
  .header h1 {
    font-size: 1.5rem;
    text-align: left;
  }

  .user-actions {
    flex-direction: row;
    gap: 1rem;
    width: auto;
  }
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.superadmin-badge {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(238, 90, 36, 0.3);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 2px 4px rgba(238, 90, 36, 0.3);
  }
  50% {
    box-shadow: 0 2px 8px rgba(238, 90, 36, 0.5), 0 0 12px rgba(255, 107, 107, 0.3);
  }
}

.user-actions span {
  color: #666;
  font-size: 0.9rem;
}

.logout-btn {
  padding: 0.5rem 1rem !important;
  width: auto !important;
  font-size: 0.9rem !important;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.btn {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  transform: none;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f8f9fa;
  color: #333;
  border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
  background: #e9ecef;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid #f5c6cb;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid #c3e6cb;
}

.user-info {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.user-info h3 {
  color: #333;
  margin-bottom: 0.5rem;
}

.user-info p {
  color: #666;
  margin: 0.25rem 0;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.dashboard-content {
  text-align: center;
  padding: 2rem 0;
}

.dashboard-content h2 {
  color: #333;
  margin-bottom: 1rem;
}

.dashboard-content p {
  color: #666;
  margin-bottom: 2rem;
}

.tab-navigation {
  display: flex;
  border-bottom: 2px solid #e1e5e9;
  margin-bottom: 1rem;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-button {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  min-width: -moz-fit-content;
  min-width: fit-content;
}

.tab-button:hover {
  background: #f8f9fa;
  color: #333;
}

.tab-button.active {
  color: #667eea;
  border-bottom-color: #667eea;
  background: #f8f9ff;
}

/* Desktop tab styles */
@media (min-width: 768px) {
  .tab-navigation {
    margin-bottom: 2rem;
  }

  .tab-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

.main-content-area {
  padding: 1rem 0;
  overflow-y: auto;
}

.tab-content {
  min-height: 300px;
  animation: fadeIn 0.3s ease-in-out;
}

/* Desktop main content area */
@media (min-width: 768px) {
  .main-content-area {
    padding: 2rem 0;
  }
}

.placeholder-content {
  text-align: center;
  padding: 2rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 1rem;
}

.placeholder-content h3 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.placeholder-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Desktop placeholder content */
@media (min-width: 768px) {
  .placeholder-content {
    padding: 2rem 1rem;
    margin-top: 1.5rem;
  }

  .placeholder-content h3 {
    font-size: 1.5rem;
  }

  .placeholder-content p {
    font-size: 1rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* DEPRECATED: Old Sidebar Layout Styles - No longer used */
/*
.main-content {
  display: flex;
  gap: 0;
  height: calc(100vh - 300px);
  min-height: 400px;
}

.sidebar {
  width: 200px;
  background: #f8f9fa;
  border-right: 2px solid #e1e5e9;
  flex-shrink: 0;
}

.sidebar-tabs {
  display: flex;
  flex-direction: column;
}

.sidebar-tab {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  text-align: left;
  border-right: 3px solid transparent;
  transition: all 0.3s ease;
}

.sidebar-tab:hover {
  background: #e9ecef;
  color: #333;
}

.sidebar-tab.active {
  color: #667eea;
  border-right-color: #667eea;
  background: #f8f9ff;
}

.content-area {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.content-area h2 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
*/

.no-groups-content {
  text-align: center;
  padding: 2rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.no-groups-content h2 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.no-groups-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.no-group-selected {
  text-align: center;
  padding: 2rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.no-group-selected h3 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.no-group-selected p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* No Groups Available Styles */
.no-groups-available {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.bot-invite-content {
  text-align: center;
  z-index: 10;
  position: relative;
  max-width: 600px;
}

.bot-invite-title {
  color: hsl(220, 13%, 20%);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.bot-invite-title .telegram-bot-link {
  color: #0088cc;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.bot-invite-title .telegram-bot-link:hover {
  color: #006699;
  border-bottom-color: #006699;
}

.bot-invite-description {
  color: hsl(215, 16%, 47%);
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}

.telegram-bot-link {
  color: #0088cc;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.telegram-bot-link:hover {
  color: #006699;
}

/* Desktop "no content" styles */
@media (min-width: 768px) {
  .no-groups-content {
    padding: 2rem 1rem;
  }

  .no-groups-content h2 {
    font-size: 1.5rem;
  }

  .no-groups-content p {
    font-size: 1rem;
  }

  .no-group-selected {
    padding: 2rem 1rem;
  }

  .no-group-selected h3 {
    font-size: 1.3rem;
  }

  .no-group-selected p {
    font-size: 1rem;
  }

  .no-groups-available {
    padding: 2.5rem 1.5rem;
    min-height: 500px;
  }

  .bot-invite-content {
    max-width: 700px;
  }

  .bot-invite-title {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
  }

  .bot-invite-description {
    font-size: 1.125rem;
  }
}

/* Group Dropdown Styles */
.group-dropdown {
  position: relative;
  width: 100%;
}

/* Desktop group dropdown */
@media (min-width: 768px) {
  .group-dropdown {
    max-width: 300px;
  }
}

.dropdown-trigger {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  min-height: 36px;
}

/* Desktop dropdown trigger */
@media (min-width: 768px) {
  .dropdown-trigger {
    font-size: 0.85rem;
  }
}

.dropdown-trigger:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.selected-group {
  color: #333;
  font-weight: 500;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  color: #666;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e1e5e9;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 50vh; /* Responsive height for mobile */
  overflow: hidden;
}

/* Desktop dropdown menu */
@media (min-width: 768px) {
  .dropdown-menu {
    max-height: 320px;
  }
}

.dropdown-search {
  padding: 0.75rem;
  border-bottom: 1px solid #e1e5e9;
}

.search-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: #667eea;
}

.dropdown-list {
  max-height: 40vh; /* Responsive height for mobile */
  overflow-y: auto;
}

/* Desktop dropdown list */
@media (min-width: 768px) {
  .dropdown-list {
    max-height: 240px;
  }
}

.dropdown-item {
  width: 100%;
  padding: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #f5f5f5;
}

.dropdown-item:hover {
  background: #f8f9fa;
}

.dropdown-item.selected {
  background: #f8f9ff;
  color: #667eea;
}

.dropdown-item.empty {
  color: #999;
  font-style: italic;
  cursor: default;
}

.dropdown-item.empty:hover {
  background: none;
}

.group-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.group-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.group-name {
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-badges {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-badge {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
}

.manage-badge {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
}

.group-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.group-type {
  font-size: 0.8rem;
  color: #666;
  text-transform: capitalize;
}

.message-count {
  font-size: 0.75rem;
  color: #888;
  font-style: italic;
}

.dropdown-item.selected .group-name {
  color: #667eea;
}

.loading-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  cursor: default;
}

.loading-item:hover {
  background: none;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e1e5e9;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Questions Loading Overlay */
.questions-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 249, 250, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 8px;
  backdrop-filter: blur(1px);
  color: #667eea;
  font-size: 1rem;
  font-weight: 500;
}

.questions-loading-overlay .loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e1e5e9;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.75rem;
}

/* Question Detail Loading Overlay */
.question-detail-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 249, 250, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 8px;
  backdrop-filter: blur(1px);
  color: #667eea;
  font-size: 1rem;
  font-weight: 500;
}

.question-detail-loading-overlay .loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e1e5e9;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.75rem;
}

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

/* Questions Component Styles */
.questions-container {
  padding: 1rem 0;
}

.questions-container h2 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.questions-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .questions-filters {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

.questions-filters .search-input {
  flex: 1;
}

.questions-filters .form-control:not(.search-input) {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.questions-filters .form-control:not(.search-input):focus {
  border-color: #667eea;
}

.filter-selects {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

@media (min-width: 768px) {
  .filter-selects {
    flex-direction: row;
    min-width: 300px;
  }
}

.filter-selects .form-control {
  min-width: 120px;
}

.questions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.question-item {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 1rem;
  transition: box-shadow 0.3s ease;
}

.question-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-item-clickable {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.question-item-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.question-item-clickable:active {
  transform: translateY(0);
}

.click-hint {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e1e5e9;
  text-align: center;
}

.click-hint span {
  color: #667eea;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.question-item-clickable:hover .click-hint span {
  opacity: 1;
}

@media (max-width: 767px) {
  .click-hint span {
    font-size: 0.8rem;
  }
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

@media (max-width: 767px) {
  .question-header {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.question-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.question-date {
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
}

.message-id {
  color: #888;
  font-size: 0.8rem;
  font-family: monospace;
}

.sender-info {
  color: #667eea;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: right;
}

@media (max-width: 767px) {
  .sender-info {
    text-align: left;
  }
}

.question-content {
  margin-bottom: 0.75rem;
}

.question-content p {
  color: #333;
  line-height: 1.5;
  margin: 0;
  word-wrap: break-word;
}

.reply-to {
  background: #f8f9fa;
  padding: 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #666;
  border-left: 3px solid #e1e5e9;
}

.replies-count {
  font-size: 0.85rem;
  color: #667eea;
  font-weight: 500;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: #667eea;
  color: white;
}

.badge-secondary {
  background: #6c757d;
  color: white;
}

.badge-success {
  background: #28a745;
  color: white;
}

.badge-light {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #e1e5e9;
}

.badge-info {
  background: #17a2b8;
  color: white;
}

.badge-outline {
  background: transparent;
  color: #999;
  border: 1px solid #dee2e6;
}

.btn-embed {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-width: -moz-fit-content;
  min-width: fit-content;
  white-space: nowrap;
}

.btn-embed:hover:not(:disabled) {
  background: linear-gradient(135deg, #20c997, #17a2b8);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(32, 201, 151, 0.3);
}

.btn-embed:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  background: #6c757d;
}

.btn-embed:active:not(:disabled) {
  transform: translateY(0);
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .pagination {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.page-info {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.pagination .btn {
  width: auto;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  min-width: 80px;
}

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

.no-questions {
  text-align: center;
  padding: 2rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  color: #666;
}

.no-questions p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.loading, .error {
  text-align: center;
  padding: 2rem;
  font-size: 1rem;
}

.loading {
  color: #667eea;
}

.error {
  color: #dc3545;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
}

/* Modal Component Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-height: 95vh;
  height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.3s ease-out;
}

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

/* Modal sizes */
.modal-small {
  max-width: 400px;
}

.modal-medium {
  max-width: 600px;
}

.modal-large {
  max-width: 900px;
}

.modal-extra-large {
  max-width: 1200px;
  width: 95vw;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .modal-overlay {
    padding: 0.25rem;
    align-items: flex-start;
  }
  
  .modal-content {
    max-height: 98vh;
    height: 98vh;
    margin-top: 0.5rem;
    border-radius: 12px 12px 0 0;
  }
  
  .modal-small,
  .modal-medium,
  .modal-large,
  .modal-extra-large {
    max-width: 100%;
    width: 100%;
  }
  
  .modal-header {
    padding: 1rem 1rem 0.75rem;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e9ecef;
  }
  
  .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .modal-body {
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .modal-close-button {
    width: 32px !important;
    height: 32px !important;
    font-size: 1.2rem !important;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem 0;
  flex-shrink: 0;
  border-bottom: 1px solid #f0f0f0;
}

.modal-title {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  padding-right: 1rem;
}

.modal-close-button {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #666;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.modal-close-button:hover {
  background: #f8f9fa;
  color: #333;
  transform: scale(1.1);
}

.modal-close-button:active {
  transform: scale(0.95);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0; /* Important for flexbox scrolling */
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Desktop modal styles */
@media (min-width: 768px) {
  .modal-header {
    padding: 1rem 2rem 0;
  }
  
  .modal-title {
    font-size: 1.2rem;
  }
  
  .modal-body {
    padding: 1.5rem 2rem 2rem 2rem;
  }
}

/* Question Detail Component Styles */
.question-detail-container {
  max-width: 100%;
}

.question-detail-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e1e5e9;
}

.question-header-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.question-header-inline .question-date {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.question-header-inline .message-id {
  color: #888;
  font-size: 0.85rem;
  font-family: monospace;
  font-weight: 600;
}

.question-header-inline .badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.group-info-inline {
  color: #666;
  font-size: 0.9rem;
  margin-left: auto;
}

.group-info-inline strong {
  color: #555;
}

@media (max-width: 767px) {
  .question-header-inline {
    gap: 0.75rem;
  }
  
  .group-info-inline {
    margin-left: 0;
    width: 100%;
    margin-top: 0.5rem;
  }
}

.question-message,
.reply-message {
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.question-message {
  background: #f8f9ff;
  border-color: #667eea;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.reply-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reply-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 767px) {
  .message-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .reply-header-left,
  .reply-header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .reply-header-right {
    justify-content: flex-end;
    gap: 0.5rem;
  }
}

.sender-name {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.message-date {
  color: #666;
  font-size: 0.85rem;
}

.reply-number {
  background: #667eea;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.reply-to {
  background: #e9ecef;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  border-left: 3px solid #667eea;
  font-size: 0.9rem;
}

.reply-to strong {
  color: #667eea;
  display: block;
  margin-bottom: 0.25rem;
}

.reply-content {
  color: #555;
  font-style: italic;
}

.message-content {
  line-height: 1.6;
  color: #333;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.replies-section {
  margin-top: 2rem;
}

.replies-header {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e1e5e9;
}

.replies-header h3 {
  color: #333;
  font-size: 1.2rem;
  margin: 0;
}

.replies-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nested-question-badge {
  margin-top: 0.5rem;
}

.badge-warning {
  background: #f39c12;
  color: white;
}

/* Enhanced badge styles for question detail */
.question-detail-container .badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
  .question-detail-container {
    padding-bottom: 1rem;
  }
  
  .question-detail-header {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .question-detail-header .question-meta {
    font-size: 0.85rem;
  }
  
  .question-detail-header .group-info {
    font-size: 0.85rem;
  }
  
  .message-header {
    gap: 0.25rem;
    flex-wrap: wrap;
  }
  
  .sender-name {
    font-size: 0.9rem;
  }
  
  .message-date {
    font-size: 0.8rem;
  }
  
  .message-item {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .message-content {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .replies-section {
    margin-top: 1rem;
  }
}

/* Add Answer Section Styles */
.add-answer-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.add-answer-section h4 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.add-answer-input-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.add-answer-input {
  flex: 1;
  min-width: 0;
  resize: vertical;
  min-height: 48px;
  height: 48px;
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.4;
  transition: all 0.3s ease;
  background: white;
  color: #333;
}

.add-answer-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.add-answer-input:disabled {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

.add-answer-input::-moz-placeholder {
  color: #999;
  font-style: italic;
}

.add-answer-input::placeholder {
  color: #999;
  font-style: italic;
}

.add-answer-btn {
  width: auto !important;
  padding: 0.625rem 1.5rem !important;
  font-size: 0.9rem !important;
  height: -moz-fit-content;
  height: fit-content;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile responsive for add answer section */
@media (max-width: 767px) {
  .add-answer-section {
    padding: 1rem;
    margin-top: 1rem;
  }
  
  .add-answer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .add-answer-input-group {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .add-answer-input {
    min-height: 80px !important;
    height: 80px !important;
    padding: 1rem !important;
    font-size: 1rem !important;
    border-radius: 8px;
    line-height: 1.5;
    resize: vertical;
  }
  
  .add-answer-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
  }
  
  .add-answer-btn {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    min-height: 48px;
    border-radius: 8px;
  }
}

/* Icon Button Styles */
.btn-icon {
  background: none;
  border: none;
  padding: 0.375rem;
  cursor: pointer;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.btn-icon:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.btn-icon:active {
  transform: scale(0.95);
}

.btn-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-icon:disabled:hover {
  background: none;
  transform: none;
}

.btn-icon-edit:hover {
  background: rgba(102, 126, 234, 0.1);
}

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

.reply-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Edit Reply Input Styles */
.edit-reply-input {
  width: 100%;
  min-width: 0;
  resize: vertical;
  min-height: 48px;
  height: 48px;
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.4;
  transition: all 0.3s ease;
  background: white;
  color: #333;
}

.edit-reply-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.edit-reply-input::-moz-placeholder {
  color: #999;
  font-style: italic;
}

.edit-reply-input::placeholder {
  color: #999;
  font-style: italic;
}

/* Notification System Styles */
.notification-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 400px;
}

.notification-item {
  pointer-events: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transform: translateX(100%);
  animation: slideInNotification 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
  min-width: 320px;
  max-width: 400px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-item.notification-leaving {
  animation: slideOutNotification 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

.notification-content {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  gap: 0.75rem;
}

.notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  color: white;
}

.notification-success .notification-icon {
  background: linear-gradient(135deg, #4CAF50, #45a049);
}

.notification-error .notification-icon {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}

.notification-warning .notification-icon {
  background: linear-gradient(135deg, #ff9800, #f57c00);
}

.notification-info .notification-icon {
  background: linear-gradient(135deg, #2196F3, #1976D2);
}

.notification-text {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
  word-wrap: break-word;
}

.notification-message {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  word-wrap: break-word;
}

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

.notification-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #666;
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
  transition: width 0.1s linear;
}

.notification-success .notification-progress {
  background: linear-gradient(90deg, #4CAF50, #45a049);
}

.notification-error .notification-progress {
  background: linear-gradient(90deg, #f44336, #d32f2f);
}

.notification-warning .notification-progress {
  background: linear-gradient(90deg, #ff9800, #f57c00);
}

.notification-info .notification-progress {
  background: linear-gradient(90deg, #2196F3, #1976D2);
}

@keyframes slideInNotification {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutNotification {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Mobile responsive notifications */
@media (max-width: 480px) {
  .notification-container {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
  }
  
  .notification-item {
    min-width: auto;
    max-width: none;
  }
  
  .notification-content {
    padding: 0.75rem;
  }
  
  .notification-title {
    font-size: 13px;
  }
  
  .notification-message {
    font-size: 12px;
  }
}

/* Admin Login Styles */
.admin-login {
  min-height: 100vh;
  background: hsl(240, 15%, 97%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-login__container {
  width: 100%;
  max-width: 28rem;
}

.admin-login__card {
  background: hsl(0, 0%, 100%);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.1), 0 1px 2px 0 hsl(0 0% 0% / 0.06);
  padding: 2rem;
}

.admin-login__header {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-login__icon {
  margin: 0 auto 1.5rem;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(118, 75, 162, 0.1), 0 2px 4px -1px rgba(118, 75, 162, 0.06);
}

.admin-login__icon-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login__icon-text {
  color: white;
  font-weight: 900;
  font-size: 1.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.admin-login__title {
  font-size: 1.5rem;
  font-weight: bold;
  color: hsl(240, 6%, 20%);
  margin: 0 0 0.5rem 0;
}

.admin-login__description {
  color: hsl(215, 16%, 47%);
  margin: 0;
}

.admin-login__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-login__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-login__label {
  color: hsl(240, 6%, 20%);
  font-weight: 500;
  font-size: 0.875rem;
}

.admin-login__input {
  width: 100%;
  height: 3rem;
  padding: 0.5rem 0.75rem;
  background: hsl(240, 10%, 98%);
  border: 1px solid hsl(220, 13%, 91%);
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.admin-login__input:focus {
  outline: none;
  border-color: hsl(210, 100%, 45%);
  box-shadow: 0 0 0 2px hsl(210 100% 45% / 0.2);
}

.admin-login__password-field {
  position: relative;
}

.admin-login__password-input {
  padding-right: 2.5rem;
}

.admin-login__password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(215, 16%, 47%);
  transition: color 0.2s ease;
  font-size: 1rem;
}

.admin-login__password-toggle:hover {
  color: hsl(240, 6%, 20%);
}

.admin-login__submit {
  width: 100%;
  height: 3rem;
  background: linear-gradient(to right, hsl(210, 100%, 45%), hsl(210, 100%, 50%));
  color: white;
  font-weight: 500;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px hsl(210 100% 45% / 0.1), 0 2px 4px -1px hsl(210 100% 45% / 0.06);
  transition: all 0.3s ease;
  transform: scale(1);
}

.admin-login__submit:hover:not(:disabled) {
  background: linear-gradient(to right, hsl(210, 100%, 50%), hsl(210, 100%, 45%));
  transform: scale(1.02);
}

.admin-login__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: scale(1);
}

.admin-login__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.admin-login__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.admin-login__footer {
  text-align: center;
  margin-top: 1.5rem;
}

.admin-login__forgot-link {
  font-size: 0.875rem;
  color: hsl(215, 16%, 47%);
  text-decoration: none;
  transition: color 0.2s ease;
}

.admin-login__forgot-link:hover {
  color: hsl(210, 100%, 45%);
}

.admin-login__telegram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0088cc;
  transition: all 0.2s ease;
  opacity: 0.8;
  padding: 0.5rem;
  border-radius: 50%;
}

.admin-login__telegram-link:hover {
  opacity: 1;
  transform: scale(1.1);
  background: rgba(0, 136, 204, 0.1);
}

/* Responsive */
@media (max-width: 640px) {
  .admin-login {
    padding: 1rem;
  }
  
  .admin-login__card {
    padding: 1.5rem;
  }
}

/* Modern Admin Dashboard Layout */
.admin-dashboard-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: hsl(240, 15%, 97%);
}

@media (min-width: 768px) {
  .admin-dashboard-layout {
    flex-direction: row;
  }
}

/* Mobile Menu Button */
.mobile-menu-button {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: white;
  border: 1px solid hsl(220, 13%, 91%);
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  color: hsl(240, 6%, 20%);
}

.mobile-menu-button:hover {
  background: hsl(220, 13%, 95%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.mobile-menu-button:active {
  transform: scale(0.95);
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .mobile-sidebar-overlay {
    display: none;
  }
}

/* Sidebar */
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 16rem;
  background: white;
  border-right: 1px solid hsl(220, 13%, 91%);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.admin-sidebar.sidebar-open {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .admin-sidebar {
    position: relative;
    transform: translateX(0);
  }
  
  .admin-sidebar.sidebar-open {
    transform: translateX(0);
  }
}

/* Sidebar Header */
.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid hsl(220, 13%, 91%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-close-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: hsl(220, 13%, 95%);
  border: 1px solid hsl(220, 13%, 91%);
  border-radius: 0.375rem;
  cursor: pointer;
  color: hsl(240, 6%, 20%);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-close-button:hover {
  background: hsl(220, 13%, 90%);
  color: hsl(240, 6%, 10%);
  border-color: hsl(220, 13%, 85%);
}

.sidebar-close-button:active {
  transform: scale(0.95);
}

@media (min-width: 768px) {
  .sidebar-close-button {
    display: none;
  }
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-icon {
  height: 1.5rem;
  width: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 900;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
}

.app-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: hsl(240, 6%, 20%);
}

/* Group Selector Section */
.group-selector-section {
  padding: 1rem;
  border-bottom: 1px solid hsl(220, 13%, 91%);
}

.group-selector-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.group-selector-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(215, 16%, 47%);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(240, 6%, 20%);
  font-size: 0.875rem;
}

.nav-item:hover {
  background: hsl(220, 13%, 95%);
}

.nav-item.active {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  font-weight: 500;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-item.active .nav-icon {
  color: #667eea;
}

.nav-text {
  flex: 1;
}

.nav-indicator {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.indicator-dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 50%;
  background: #667eea;
  animation: pulse 2s infinite;
}

.indicator-arrow {
  height: 1rem;
  width: 1rem;
  color: #667eea;
  margin-left: 0.25rem;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Dashboard Overview */
.dashboard-overview {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.dashboard-overview h3 {
  color: hsl(240, 6%, 20%);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dashboard-overview > p {
  color: hsl(215, 16%, 47%);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Unified Token Overview - Main Content */
.unified-token-overview {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, hsl(220, 60%, 99%) 0%, hsl(240, 60%, 100%) 100%);
  border: 2px solid hsl(220, 30%, 92%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.unified-token-overview h4 {
  color: hsl(240, 6%, 20%);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, hsl(210, 100%, 45%), hsl(240, 100%, 50%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Token Alert Prominent - Main Content */
.token-alert-prominent {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  border: 2px solid;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.token-alert-low {
  border-color: hsl(48, 100%, 85%);
  background: hsl(48, 100%, 96%);
  color: hsl(48, 100%, 20%);
}

.token-alert-critical {
  border-color: hsl(0, 100%, 85%);
  background: hsl(0, 100%, 96%);
  color: hsl(0, 100%, 20%);
}

.token-alert-depleted {
  border-color: hsl(0, 100%, 85%);
  background: hsl(0, 100%, 96%);
  color: hsl(0, 100%, 20%);
}

.alert-icon-large {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.alert-content-prominent {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.alert-title-prominent {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.3;
}

.alert-message-prominent {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.4;
}

.alert-next-refresh {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  font-size: 0.85rem;
}

.alert-action-prominent {
  padding: 0.75rem 1.5rem;
  border: 2px solid currentColor;
  background: transparent;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.alert-action-prominent:hover {
  background: currentColor;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Token Balance Full - Main Content */
.token-balance-full {
  background: white;
  border: 2px solid hsl(220, 30%, 90%);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.token-balance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid hsl(220, 30%, 92%);
}

.balance-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: hsl(240, 6%, 20%);
}

.balance-status-indicator {
  font-size: 0.85rem;
  font-weight: 500;
}

.token-balance-grid-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.token-item-full {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  padding: 1rem;
  background: hsl(220, 60%, 98%);
  border-radius: 12px;
  border: 1px solid hsl(220, 30%, 92%);
  transition: all 0.3s ease;
}

.token-item-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: hsl(210, 100%, 45%);
}

.token-icon-large {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.free-tokens .token-icon-large {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #856404;
}

.paid-tokens .token-icon-large {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
}

.token-item-full:hover .token-icon-large {
  transform: scale(1.1);
}

.token-info-full {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.token-label-full {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: hsl(220, 13%, 50%);
}

.token-value-full {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(220, 13%, 20%);
}

.token-divider-full {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, hsl(220, 13%, 85%), transparent);
}

.token-total-full {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, hsl(210, 100%, 97%) 0%, hsl(240, 100%, 98%) 100%);
  border-radius: 10px;
  border: 2px solid hsl(210, 100%, 90%);
}

.total-balance-section,
.next-refresh-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  flex: 1;
}

.total-label-full,
.refresh-label-full {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: hsl(220, 13%, 45%);
}

.total-value-full,
.refresh-value-full {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(210, 100%, 45%);
}

.token-loading-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  color: hsl(220, 13%, 50%);
  font-size: 1rem;
  background: white;
  border: 2px solid hsl(220, 30%, 90%);
  border-radius: 12px;
}

/* Token Balance Overview */
.token-balance-overview {
  margin-top: 2rem;
}

.token-balance-card {
  background: linear-gradient(135deg, hsl(220, 60%, 97%) 0%, hsl(240, 60%, 98%) 100%);
  border: 1px solid hsl(220, 30%, 90%);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.token-balance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.token-balance-header h4 {
  color: hsl(220, 13%, 20%);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.balance-status {
  font-size: 0.875rem;
  font-weight: 500;
}

.status-good {
  color: #059669;
}

.status-warning {
  color: #d97706;
}

.status-critical {
  color: #dc2626;
}

.status-depleted {
  color: #991b1b;
}

.token-balance-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.token-total-overview {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: hsl(220, 60%, 98%);
  border-radius: 12px;
  border: 1px solid hsl(220, 30%, 92%);
}

.token-total-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(220, 13%, 45%);
}

.token-total-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(210, 100%, 45%);
}

.token-refresh-info {
  text-align: center;
  padding: 0.75rem;
  background: hsl(220, 60%, 99%);
  border-radius: 8px;
  border: 1px solid hsl(220, 30%, 95%);
}

.refresh-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: hsl(220, 13%, 50%);
  margin-right: 0.5rem;
}

.refresh-countdown {
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(220, 13%, 30%);
}

.balance-alert-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 8px;
  border: 1px solid;
  font-size: 0.875rem;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.balance-alert-main.balance-alert-low {
  background: hsl(48, 100%, 96%);
  border-color: hsl(48, 100%, 85%);
  color: hsl(48, 100%, 20%);
}

.balance-alert-main.balance-alert-critical {
  background: hsl(0, 100%, 96%);
  border-color: hsl(0, 100%, 85%);
  color: hsl(0, 100%, 20%);
}

.balance-alert-main.balance-alert-depleted {
  background: hsl(0, 100%, 96%);
  border-color: hsl(0, 100%, 85%);
  color: hsl(0, 100%, 20%);
}

.alert-content {
  flex: 1;
}

.alert-message {
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.4;
}

.alert-action-main {
  padding: 0.5rem 1rem;
  border: 1px solid currentColor;
  background: transparent;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.alert-action-main:hover {
  background: currentColor;
  color: white;
}

.token-loading-overview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: hsl(220, 13%, 50%);
  font-size: 0.9rem;
}

/* Unified Token Status Container */
.unified-token-status {
  margin-bottom: 0.25rem;
  padding: 0.125rem;
}

/* Token Alert - Sidebar Version */
.token-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  border: 1px solid;
  font-size: 0.8rem;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.token-alert-low {
  background: hsl(48, 100%, 96%);
  border-color: hsl(48, 100%, 85%);
  color: hsl(48, 100%, 20%);
}

.token-alert-critical {
  background: hsl(0, 100%, 96%);
  border-color: hsl(0, 100%, 85%);
  color: hsl(0, 100%, 20%);
}

.token-alert-depleted {
  background: hsl(0, 100%, 96%);
  border-color: hsl(0, 100%, 85%);
  color: hsl(0, 100%, 20%);
}

.alert-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.alert-title {
  font-weight: 600;
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.2;
}

.alert-message {
  font-size: 0.7rem;
  opacity: 0.8;
  margin: 0;
  line-height: 1.2;
}

/* Token Balance Compact - Sidebar Version */
.token-balance-compact {
  background: linear-gradient(135deg, hsl(220, 60%, 97%) 0%, hsl(240, 60%, 98%) 100%);
  border: 1px solid hsl(220, 30%, 90%);
  border-radius: 10px;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.token-balance-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.token-balance-compact .token-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.token-balance-compact .token-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.token-balance-compact .free-tokens .token-icon {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #856404;
}

.token-balance-compact .paid-tokens .token-icon {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
}

.token-balance-compact .token-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: hsl(220, 13%, 20%);
}

.token-total-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: hsl(220, 60%, 98%);
  border-radius: 6px;
  border: 1px solid hsl(220, 30%, 92%);
}

.total-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: hsl(220, 13%, 45%);
}

.total-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: hsl(210, 100%, 45%);
}

.token-refresh-compact {
  margin-top: 0.5rem;
  text-align: center;
  padding: 0.25rem;
  background: hsl(220, 60%, 99%);
  border-radius: 4px;
  border: 1px solid hsl(220, 30%, 95%);
}

.refresh-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: hsl(220, 13%, 50%);
  margin-right: 0.25rem;
}

.refresh-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(220, 13%, 30%);
}

.token-loading-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  color: hsl(220, 13%, 50%);
  font-size: 0.8rem;
  background: hsl(220, 60%, 97%);
  border-radius: 8px;
}

.loading-spinner-small {
  width: 14px;
  height: 14px;
  border: 2px solid hsl(220, 30%, 85%);
  border-top: 2px solid hsl(210, 100%, 45%);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* User Section */
.user-section {
  padding: 0.25rem;
  border-top: 1px solid hsl(220, 13%, 91%);
}

/* Token Balance Styles */
.token-balance-container {
  margin-bottom: 0.25rem;
  padding: 0.125rem;
}

.token-balance-card {
  background: linear-gradient(135deg, hsl(220, 60%, 97%) 0%, hsl(240, 60%, 98%) 100%);
  border: 1px solid hsl(220, 30%, 90%);
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.token-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.token-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.free-tokens .token-icon {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #856404;
}

.paid-tokens .token-icon {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
}

.token-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.token-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: hsl(220, 13%, 50%);
}

.token-value {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(220, 13%, 20%);
}

.token-divider {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, hsl(220, 13%, 85%), transparent);
}

.token-total {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: hsl(220, 60%, 98%);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid hsl(220, 30%, 92%);
}

.token-total-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(220, 13%, 45%);
}

.token-total-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(210, 100%, 45%);
}

.token-loading {
  text-align: center;
  padding: 1rem;
  color: hsl(220, 13%, 50%);
  font-size: 0.875rem;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Hover effects */
.token-item:hover .token-icon {
  transform: scale(1.05);
}

/* Balance Alert Styles */
.balance-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
  margin-bottom: 0.25rem;
  border-radius: 8px;
  border: 1px solid;
  font-size: 0.875rem;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.balance-alert-low {
  background: hsl(48, 100%, 96%);
  border-color: hsl(48, 100%, 85%);
  color: hsl(48, 100%, 20%);
}

.balance-alert-critical {
  background: hsl(0, 100%, 96%);
  border-color: hsl(0, 100%, 85%);
  color: hsl(0, 100%, 20%);
}

.balance-alert-depleted {
  background: hsl(0, 100%, 96%);
  border-color: hsl(0, 100%, 85%);
  color: hsl(0, 100%, 20%);
}

.alert-icon {
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-right: 0.25rem;
}

.alert-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.alert-title {
  font-weight: 600;
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.2;
}

.alert-message {
  font-size: 0.7rem;
  opacity: 0.8;
  margin: 0;
  line-height: 1.2;
}

.alert-action {
  padding: 0.25rem 0.5rem;
  border: 1px solid currentColor;
  background: transparent;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alert-action:hover {
  background: currentColor;
  color: white;
}

.alert-close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: currentColor;
  opacity: 0.7;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.alert-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

.alert-close:active {
  transform: scale(0.95);
}

.user-info-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  background: hsl(220, 13%, 91%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-initial {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(240, 6%, 20%);
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(240, 6%, 20%);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 0.75rem;
  color: hsl(215, 16%, 47%);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.superadmin-badge {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 0.25rem;
  font-weight: 600;
}

.logout-button {
  font-size: 0.75rem;
  color: #dc2626;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.logout-button:hover {
  color: #991b1b;
  background: rgba(220, 38, 38, 0.1);
}

/* Main Content */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 4rem;
  padding-top: 1rem;
}

@media (max-width: 767px) {
  .main-content {
    padding-top: 4.5rem; /* Space for mobile menu button */
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 768px) {
  .main-content {
    padding-bottom: 0;
    padding-top: 0;
  }
}

.content-wrapper {
  max-width: 112rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .content-wrapper {
    /* Padding removed */
  }
}

/* Success Message */
.success-message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* AI Indicator Styles */
.ai-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.ai-indicator.ai-processed {
  color: #059669;
}

.ai-indicator.ai-not-processed {
  color: #6b7280;
}

/* Tailwind-like Utility Classes for Modern Components */
.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1 1 0%;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.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;
}

.pl-10 {
  padding-left: 2.5rem;
}

.pr-4 {
  padding-right: 1rem;
}

.w-full {
  width: 100%;
}

.w-fit {
  width: -moz-fit-content;
  width: fit-content;
}

.max-w-md {
  max-width: 28rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.font-medium {
  font-weight: 500;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-red-600 {
  color: #dc2626;
}

.text-blue-600 {
  color: #2563eb;
}

.text-blue-800 {
  color: #1e40af;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.bg-gray-200 {
  background-color: #e5e7eb;
}

.bg-green-600 {
  background-color: #16a34a;
}

.bg-green-700 {
  background-color: #15803d;
}

.border {
  border-width: 1px;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.cursor-pointer {
  cursor: pointer;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translateY(-50%);
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.left-3 {
  left: 0.75rem;
}

.top-1\/2 {
  top: 50%;
}

/* Search Icon Specific Styling */
.relative .absolute svg {
  pointer-events: none;
  color: #9ca3af;
}

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

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.hover\:bg-gray-50:hover {
  background-color: #f9fafb;
}

.hover\:bg-gray-200:hover {
  background-color: #e5e7eb;
}

.hover\:bg-green-700:hover {
  background-color: #15803d;
}

.hover\:text-blue-800:hover {
  color: #1e40af;
}

.focus\:ring-2:focus {
  box-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
}

.focus\:ring-blue-500:focus {
  --tw-ring-color: #3b82f6;
}

.focus\:border-blue-500:focus {
  border-color: #3b82f6;
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

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

/* UI Component Styles */
.bg-card {
  background-color: hsl(var(--card));
}

.text-card-foreground {
  color: hsl(var(--card-foreground));
}

.bg-background {
  background-color: hsl(var(--background));
}

.text-foreground {
  color: hsl(var(--foreground));
}

.bg-primary {
  background-color: hsl(var(--primary));
}

.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}

.bg-secondary {
  background-color: hsl(var(--secondary));
}

.text-secondary-foreground {
  color: hsl(var(--secondary-foreground));
}

.bg-muted {
  background-color: hsl(var(--muted));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.bg-destructive {
  background-color: hsl(var(--destructive));
}

.text-destructive-foreground {
  color: hsl(var(--destructive-foreground));
}

.border-border {
  border-color: hsl(var(--border));
}

.bg-muted\/50 {
  background-color: hsl(var(--muted) / 0.5);
}

/* Table Styles */
.w-full {
  width: 100%;
}

.caption-bottom {
  caption-side: bottom;
}

/* Questions Table Column Widths */
.questions-table {
  table-layout: fixed;
  width: 100%;
}

.questions-table .w-24 {
  width: 6rem;
}

.questions-table .w-32 {
  width: 8rem;
}

.questions-table .w-40 {
  width: 10rem;
}

.questions-table .max-w-lg {
  width: auto;
  min-width: 20rem;
}

.border-b {
  border-bottom-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-0 {
  border-width: 0px;
}

.h-12 {
  height: 3rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.pt-0 {
  padding-top: 0px;
}

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

.align-middle {
  vertical-align: middle;
}

.font-semibold {
  font-weight: 600;
}

.leading-none {
  line-height: 1;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.space-y-1\.5 > * + * {
  margin-top: 0.375rem;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.rounded-lg {
  border-radius: 0.5rem;
}

/* Badge Styles */
.inline-flex {
  display: inline-flex;
}

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

.rounded-full {
  border-radius: 9999px;
}

.border-transparent {
  border-color: transparent;
}

.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

.font-semibold {
  font-weight: 600;
}

.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), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-ring:focus {
  --tw-ring-color: hsl(var(--ring));
}

.focus\:ring-offset-2:focus {
  --tw-ring-offset-width: 2px;
}

/* Table-specific styles */
[data-state=selected] {
  background-color: hsl(var(--muted));
}

.overflow-auto {
  overflow: auto;
}

/* Additional utility classes */
.gap-1 {
  gap: 0.25rem;
}

.pointer-events-none {
  pointer-events: none;
}

/* Learn AI Button Styles */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-green-500 {
  --tw-gradient-from: #22c55e var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(34 197 94 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-emerald-600 {
  --tw-gradient-to: #059669 var(--tw-gradient-to-position);
}

.from-green-600 {
  --tw-gradient-from: #16a34a var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(22 163 74 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-emerald-700 {
  --tw-gradient-to: #047857 var(--tw-gradient-to-position);
}

.bg-blue-100 {
  background-color: #dbeafe;
}

.text-blue-700 {
  color: #1d4ed8;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.hover\:shadow-md:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.duration-200 {
  transition-duration: 200ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

/* Magical Learn AI Button */
.learn-ai-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.learn-ai-button::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    #ff0000, #ff7f00, #ffff00, #00ff00, 
    #0000ff, #4b0082, #9400d3, #ff0000
  );
  background-size: 200% 200%;
  border-radius: 0.6rem;
  z-index: -1;
  animation: rainbow-border 3s linear infinite;
}

.learn-ai-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 0.5rem;
  z-index: -1;
}

.learn-ai-button:hover {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.learn-ai-button:active {
  transform: scale(0.98);
}

.learn-ai-button.learning {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.2);
}

.learn-ai-button.learning::before {
  animation: none;
  background: #e5e7eb;
}

.learn-ai-button.learning::after {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.sparkle-emoji {
  font-size: 0.875rem;
  animation: sparkle-pulse 2s ease-in-out infinite;
}

@keyframes rainbow-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes sparkle-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Modern Search Input and Filter Styles */
.search-input-modern {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: white;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #374151;
  background-image: linear-gradient(white, white), 
                    linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.search-input-modern:focus {
  outline: none;
  background-image: linear-gradient(white, white), 
                    linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15), 0 2px 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.search-input-modern::-moz-placeholder {
  color: #9ca3af;
}

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

.filter-select-modern {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  background: white;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #374151;
  background-image: linear-gradient(white, white), 
                    linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1rem 1rem;
  background-image: linear-gradient(white, white), 
                    linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%),
                    url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3e%3cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27m6 8 4 4 4-4%27/%3e%3c/svg%3e");
}

.filter-select-modern:focus {
  outline: none;
  background-image: linear-gradient(white, white), 
                    linear-gradient(135deg, #667eea 0%, #764ba2 100%),
                    url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3e%3cpath stroke=%27%23667eea%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27m6 8 4 4 4-4%27/%3e%3c/svg%3e");
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15), 0 2px 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.filter-select-modern:hover {
  background-image: linear-gradient(white, white), 
                    linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%),
                    url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3e%3cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27m6 8 4 4 4-4%27/%3e%3c/svg%3e");
  transform: translateY(-0.5px);
}

/* ========================================
   Token Usage Dashboard Styles
   ======================================== */

.token-usage-container {
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  max-width: 1400px;
  margin: 0 auto;
}

.token-usage-container h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1.5rem;
}

.token-usage-container h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
}

/* Token Usage Header */
.token-usage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.token-usage-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.purchase-tokens-button {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.purchase-tokens-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.purchase-tokens-button:active {
  transform: translateY(0);
}

/* Token Tabs */
.token-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0;
}

.token-tabs .tab-button {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #718096;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-bottom: -1px;
}

.token-tabs .tab-button:hover {
  color: #4a5568;
  background: #f7fafc;
}

.token-tabs .tab-button.active {
  color: #667eea;
  border-bottom-color: #667eea;
  background: #f8f9ff;
}

.tab-content-wrapper {
  margin-top: 1rem;
}

/* Compact Controls Bar */
.controls-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.client-selector-compact {
  flex: 0 0 auto;
}

.client-selector-compact select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: white;
  font-size: 0.8rem;
  color: #2d3748;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 180px;
}

.client-selector-compact select:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.1);
}

.period-selector-compact {
  display: flex;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.period-selector-compact button {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.period-selector-compact button:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

.period-selector-compact button.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

.view-mode-toggle-compact {
  display: flex;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.view-mode-toggle-compact button {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.view-mode-toggle-compact button:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

.view-mode-toggle-compact button.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

/* Responsive adjustments for header and tabs */
@media (max-width: 640px) {
  .token-usage-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-actions {
    width: 100%;
  }

  .purchase-tokens-button {
    width: 100%;
  }

  .token-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .token-tabs .tab-button {
    flex-shrink: 0;
  }
}

/* Old styles removed - using compact versions above */

/* Loading State */
.loading-state {
  text-align: center;
  padding: 2rem;
}

.loading-state p {
  color: #718096;
  font-size: 1.125rem;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Summary Cards */
.usage-cards {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.usage-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  flex: 1;
  min-width: 140px;
}

.usage-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e0;
}

.card-icon {
  font-size: 1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
  flex-shrink: 0;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.card-content h3 {
  font-size: 0.7rem;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.2;
}

.card-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.2;
}

/* Charts Container */
.charts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .charts-container {
    grid-template-columns: 1fr;
  }
}

.chart-wrapper {
  padding: 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chart-wrapper h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4a5568;
}

/* Usage Table */
.usage-table-container {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.usage-table-container h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.75rem;
}

.usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.usage-table thead {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-bottom: 2px solid #e2e8f0;
}

.usage-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #4a5568;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.usage-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #edf2f7;
  color: #2d3748;
}

.usage-table tbody tr {
  transition: background-color 0.2s ease;
}

.usage-table tbody tr:hover {
  background-color: #f7fafc;
}

/* Usage Type Badges */
.usage-type-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.usage-type-badge.embedding {
  background: #e6fffa;
  color: #047857;
}

.usage-type-badge.classification {
  background: #fef3c7;
  color: #92400e;
}

.usage-type-badge.summary {
  background: #dbeafe;
  color: #1e40af;
}

.usage-type-badge.answer {
  background: #f3e8ff;
  color: #6b21a8;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .token-usage-container {
    padding: 1rem;
  }
  
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .client-selector-compact select {
    width: 100%;
    min-width: 100%;
  }
  
  .period-selector-compact {
    flex-wrap: wrap;
  }
  
  .period-selector-compact button {
    flex: 1;
    min-width: calc(33.333% - 0.2rem);
  }
  
  .view-mode-toggle-compact {
    width: 100%;
  }
  
  .view-mode-toggle-compact button {
    flex: 1;
  }
  
  .usage-cards {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .usage-card {
    min-width: 100%;
    padding: 0.625rem 0.875rem;
  }
  
  .card-icon {
    width: 24px;
    height: 24px;
    font-size: 0.875rem;
  }
  
  .card-content h3 {
    font-size: 0.65rem;
  }
  
  .card-value {
    font-size: 0.875rem;
  }
  
  .charts-container {
    grid-template-columns: 1fr;
  }
  
  .usage-table {
    font-size: 0.75rem;
  }
  
  .usage-table th,
  .usage-table td {
    padding: 0.5rem;
  }
}

/* ==========================================
   Q&A Parser Styles
   ========================================== */

/* Toggle Parser Button */
.toggle-parser-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.toggle-parser-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.toggle-parser-button.active {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* QA Parser Container */
.qa-parser-container {
  margin-bottom: 2rem;
}

/* Description Section */
.qa-parser-description {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #f0f3f7 100%);
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.description-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4a5568;
}

.description-item svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.description-item strong {
  color: #2d3748;
  font-weight: 600;
}

/* Magic Textarea */
.magic-textarea-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.magic-textarea {
  width: 100%;
  padding: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #2d3748;
  background: white;
  border: 3px solid transparent;
  border-radius: 0.75rem;
  background-image: 
    linear-gradient(white, white),
    linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: all 0.3s ease;
  resize: vertical;
  min-height: 200px;
}

.magic-textarea:focus {
  outline: none;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
  background-image: 
    linear-gradient(white, white),
    linear-gradient(135deg, #f093fb 0%, #667eea 50%, #764ba2 100%);
}

.magic-textarea::-moz-placeholder {
  color: #a0aec0;
}

.magic-textarea::placeholder {
  color: #a0aec0;
}

.magic-textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Animated gradient border */
@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.magic-textarea:focus {
  background-size: 200% 200%;
  animation: gradient-animation 3s ease infinite;
}

/* Cost Estimate Card */
.cost-estimate-card {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #bae6fd;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

.cost-estimate-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: #0369a1;
}

.cost-estimate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.cost-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cost-item.highlight {
  padding: 0.75rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.cost-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.cost-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
}

.cost-item.highlight .cost-value {
  color: #0369a1;
  font-size: 1.25rem;
}

/* Parse Button */
.parse-button-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.parse-button {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 0.625rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.parse-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.parse-button:active:not(:disabled) {
  transform: translateY(0);
}

.parse-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Parse Results */
.parse-results {
  padding: 1.25rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #bbf7d0;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.parse-results-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: #15803d;
}

.parse-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-item.success {
  border-left: 4px solid #22c55e;
}

.result-item.error {
  border-left: 4px solid #ef4444;
}

.result-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.result-item.success .result-value {
  color: #15803d;
}

.result-item.error .result-value {
  color: #dc2626;
}

.parse-results-hint {
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
  border-left: 4px solid #3b82f6;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .cost-estimate-grid,
  .parse-results-grid {
    grid-template-columns: 1fr;
  }
  
  .parse-button {
    width: 100%;
    justify-content: center;
  }
  
  .toggle-parser-button {
    width: 100%;
    justify-content: center;
  }
}
.hover\:bg-destructive\/80:hover {
  background-color: hsl(0 72% 51% / 0.8);
}
.hover\:bg-gray-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.hover\:bg-green-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(187 247 208 / var(--tw-bg-opacity, 1));
}
.hover\:bg-muted\/50:hover {
  background-color: hsl(210 40% 96.1% / 0.5);
}
.hover\:bg-primary\/80:hover {
  background-color: hsl(210 100% 45% / 0.8);
}
.hover\:bg-secondary\/80:hover {
  background-color: hsl(210 40% 96.1% / 0.8);
}
.hover\:bg-yellow-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 240 138 / var(--tw-bg-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), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-ring:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: hsl(210 100% 45% / var(--tw-ring-opacity, 1));
}
.focus\:ring-offset-2:focus {
  --tw-ring-offset-width: 2px;
}
.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}
.data-\[state\=selected\]\:bg-muted[data-state="selected"] {
  --tw-bg-opacity: 1;
  background-color: hsl(210 40% 96.1% / var(--tw-bg-opacity, 1));
}
@media (min-width: 640px) {

  .sm\:flex-row {
    flex-direction: row;
  }
}
.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]) {
  padding-right: 0px;
}
.\[\&\>tr\]\:last\:border-b-0:last-child>tr {
  border-bottom-width: 0px;
}
.\[\&_tr\:last-child\]\:border-0 tr:last-child {
  border-width: 0px;
}
.\[\&_tr\]\:border-b tr {
  border-bottom-width: 1px;
} 
