*, ::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.15 | 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, system-ui, 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, Times;
  /* 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;
}

[type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
  border-radius: 0px;
  padding-top: 0.5rem;
  padding-right: 0.75rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
  --tw-shadow: 0 0 #0000;
}

[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #2563eb;
  --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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  border-color: #2563eb;
}

input::-moz-placeholder, textarea::-moz-placeholder {
  color: #6b7280;
  opacity: 1;
}

input::placeholder,textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

::-webkit-date-and-time-value {
  min-height: 1.5em;
  text-align: inherit;
}

::-webkit-datetime-edit {
  display: inline-flex;
}

::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field {
  padding-top: 0;
  padding-bottom: 0;
}

select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
}

[multiple],[size]:where(select:not([size="1"])) {
  background-image: initial;
  background-position: initial;
  background-repeat: unset;
  background-size: initial;
  padding-right: 0.75rem;
  -webkit-print-color-adjust: unset;
          print-color-adjust: unset;
}

[type='checkbox'],[type='radio'] {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 0;
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
  display: inline-block;
  vertical-align: middle;
  background-origin: border-box;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  flex-shrink: 0;
  height: 1rem;
  width: 1rem;
  color: #2563eb;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
  --tw-shadow: 0 0 #0000;
}

[type='checkbox'] {
  border-radius: 0px;
}

[type='radio'] {
  border-radius: 100%;
}

[type='checkbox']:focus,[type='radio']:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
  --tw-ring-offset-width: 2px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #2563eb;
  --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);
}

[type='checkbox']:checked,[type='radio']:checked {
  border-color: transparent;
  background-color: currentColor;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

[type='checkbox']:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

@media (forced-colors: active)  {
  [type='checkbox']:checked {
    -webkit-appearance: auto;
       -moz-appearance: auto;
            appearance: auto;
  }
}

[type='radio']:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

@media (forced-colors: active)  {
  [type='radio']:checked {
    -webkit-appearance: auto;
       -moz-appearance: auto;
            appearance: auto;
  }
}

[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus {
  border-color: transparent;
  background-color: currentColor;
}

[type='checkbox']:indeterminate {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
  border-color: transparent;
  background-color: currentColor;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

@media (forced-colors: active)  {
  [type='checkbox']:indeterminate {
    -webkit-appearance: auto;
       -moz-appearance: auto;
            appearance: auto;
  }
}

[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus {
  border-color: transparent;
  background-color: currentColor;
}

[type='file'] {
  background: unset;
  border-color: inherit;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-size: unset;
  line-height: inherit;
}

[type='file']:focus {
  outline: 1px solid ButtonText;
  outline: 1px auto -webkit-focus-ring-color;
}

.container {
  width: 100%;
}

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

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

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

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

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

/* Form Section Wrapper */

.theme-form-section {
  margin-top: var(--theme-spacing-lg);
  margin-bottom: var(--theme-spacing-lg);
}

.theme-form-section > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(var(--theme-spacing-md) * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(var(--theme-spacing-md) * var(--tw-space-y-reverse));
}

.theme-form-section {
  border-radius: 0.375rem;
  border-left-width: 3px;
  border-color: color-mix(in srgb,var(--theme-accent-tertiary) 50%,transparent);
  background-color: color-mix(in srgb,var(--theme-bg-surface) 50%,transparent);
  padding: var(--theme-spacing-md);
  box-shadow: none;
}

/* Results Section Styling */

/* Results Content Wrapper */

.theme-results-content {
  margin-top: var(--theme-spacing-lg);
  margin-bottom: var(--theme-spacing-lg);
}

.theme-results-content > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(var(--theme-spacing-md) * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(var(--theme-spacing-md) * var(--tw-space-y-reverse));
}

.theme-results-content {
  overflow-y: auto;
  background-color: var(--theme-bg-primary);
  padding-bottom: var(--theme-spacing-md);
  box-shadow: none;
  border-radius: 0;
}

.theme-section-heading {
  margin-bottom: 1rem;
  font-size: var(--theme-font-size-lg);
  font-weight: 700;
  color: var(--theme-accent-secondary);
}

/* Base Components */

.theme-input {
  width: 100%;
  border-radius: var(--theme-border-radius);
  border-width: 2px;
  border-color: var(--theme-border-color);
  background-color: var(--theme-bg-primary);
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace, Times;
  font-size: 0.875rem;
  line-height: 1.25rem;
  --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);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.theme-input:focus {
  border-color: var(--theme-accent-secondary);
  outline: 2px solid transparent;
  outline-offset: 2px;
  --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(1px + 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);
  --tw-ring-color: var(--theme-accent-secondary);
}

.theme-label {
  margin-bottom: 0.5rem;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace, Times;
  font-size: var(--theme-font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-text-secondary);
}

.theme-label::after {
  content: '';
  display: block;
  width: 2rem;
  height: var(--theme-border-width);
  background: var(--theme-accent-secondary);
  margin-top: 0.25rem;
  opacity: 0.5;
}

.theme-button-secondary {
  position: relative;
  overflow: hidden;
  border-radius: var(--theme-border-radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace, Times;
  font-size: var(--theme-font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  --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);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.theme-button-secondary:hover {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.theme-button-secondary {
  padding: var(--theme-button-padding);
  background-color: var(--theme-accent-secondary);
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.theme-button-secondary:hover {
  background: color-mix(in srgb, var(--theme-accent-secondary) 90%, black);
}

.theme-button-tertiary {
  /* Renamed from .theme-button-success */
  position: relative;
  overflow: hidden;
  border-radius: var(--theme-border-radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace, Times;
  font-size: var(--theme-font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  --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);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.theme-button-tertiary:hover {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.theme-button-tertiary {
  padding: var(--theme-button-padding);
  background-color: var(--theme-accent-tertiary);
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.theme-button-tertiary:hover {
  /* Renamed from .theme-button-success */
  background: color-mix(in srgb, var(--theme-accent-tertiary) 90%, black);
}

.theme-button-quaternary {
  position: relative;
  overflow: hidden;
  border-radius: var(--theme-border-radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace, Times;
  font-size: var(--theme-font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  --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);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.theme-button-quaternary:hover {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.theme-button-quaternary {
  padding: var(--theme-button-padding);
  background-color: var(--theme-accent-quaternary);
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.theme-button-quaternary:hover {
  background: color-mix(in srgb, var(--theme-accent-quaternary) 90%, black);
}

/* New class for actual success buttons */

/* Card Components */

.theme-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--theme-border-radius);
  border-width: 2px;
  border-color: var(--theme-border-color);
  background-color: var(--theme-bg-surface);
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  background-image: var(--theme-pattern-dots);
  background-size: 20px 20px;
}

/* Custom scrollbar for scrollable cards */

.theme-card.max-h-64::-webkit-scrollbar {
  width: var(--theme-spacing-sm);
}

.theme-card.max-h-64::-webkit-scrollbar-track {
  background: var(--theme-bg-primary);
  border-radius: var(--theme-border-radius);
}

.theme-card.max-h-64::-webkit-scrollbar-thumb {
  background: var(--theme-border-color);
  border-radius: var(--theme-border-radius);
}

.theme-card.max-h-64::-webkit-scrollbar-thumb:hover {
  background: var(--theme-accent-primary);
}

.theme-card-header {
  border-bottom-width: 2px;
  border-bottom-color: var(--theme-border-color);
  background-color: var(--theme-bg-surface);
  padding-left: var(--theme-spacing-xl);
  padding-right: var(--theme-spacing-xl);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.theme-heading {
  position: relative;
  display: inline-block;
  font-size: var(--theme-font-size-lg);
  font-weight: 700;
  letter-spacing: 0.025em;
  color: var(--theme-accent-primary);
}

.theme-heading::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 3rem;
  height: var(--theme-border-width);
  background: var(--theme-accent-secondary);
  opacity: 0.5;
}

/* Table Components */

/* Status Components */

.theme-status-badge-warning {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: var(--theme-border-radius);
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: var(--theme-font-size-xs);
  font-weight: 500;
  border-width: 2px;
  border-color: var(--theme-status-warning);
  background-color: var(--theme-status-warning-light);
  color: var(--theme-status-warning-text);
}

/* Hover Effects */

.theme-hover-underline {
  position: relative;
}

.theme-hover-underline::after {
  content: '';
  position: absolute;
  bottom: -0.125rem;
  left: 0px;
  height: var(--theme-border-width);
  width: 0px;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  transition-duration: var(--theme-transition-duration);
  transition-timing-function: var(--theme-transition-timing);
  background: currentColor;
}

.theme-hover-underline:hover::after {
  width: 100%;
}

.theme-hover-slide {
  position: relative;
  overflow: hidden;
}

.theme-hover-slide-content {
  position: relative;
  z-index: 10;
}

.theme-hover-slide::after {
  content: '';
  position: absolute;
  inset: 0px;
  transform-origin: left;
  --tw-scale-x: 0;
  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));
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  transition-duration: var(--theme-transition-duration);
  transition-timing-function: var(--theme-transition-timing);
}

.theme-hover-slide:hover::after {
  --tw-scale-x: 1;
  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));
}

.theme-input-hint {
  margin-top: 0.25rem;
  font-size: var(--theme-font-size-xs);
  color: var(--theme-text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.visible {
  visibility: visible;
}

.static {
  position: static;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.bottom-full {
  bottom: 100%;
}

.left-0 {
  left: 0px;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

.col-span-4 {
  grid-column: span 4 / span 4;
}

.col-span-8 {
  grid-column: span 8 / span 8;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-\[length\:var\(--theme-spacing-xs\)\] {
  margin-top: var(--theme-spacing-xs);
  margin-bottom: var(--theme-spacing-xs);
}

.mb-0 {
  margin-bottom: 0px;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-\[length\:var\(--theme-spacing-lg\)\] {
  margin-bottom: var(--theme-spacing-lg);
}

.mb-\[length\:var\(--theme-spacing-md\)\] {
  margin-bottom: var(--theme-spacing-md);
}

.mb-\[length\:var\(--theme-spacing-xl\)\] {
  margin-bottom: var(--theme-spacing-xl);
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

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

.mt-0 {
  margin-top: 0px;
}

.mt-1 {
  margin-top: 0.25rem;
}

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

.mt-\[length\:var\(--theme-spacing-xl\)\] {
  margin-top: var(--theme-spacing-xl);
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.max-h-64 {
  max-height: 16rem;
}

.min-h-screen {
  min-height: 100vh;
}

.w-10 {
  width: 2.5rem;
}

.w-36 {
  width: 9rem;
}

.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.w-64 {
  width: 16rem;
}

.w-full {
  width: 100%;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-7xl {
  max-width: 80rem;
}

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

.flex-grow {
  flex-grow: 1;
}

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

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

.cursor-help {
  cursor: help;
}

.cursor-pointer {
  cursor: pointer;
}

.resize {
  resize: both;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

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

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

.gap-4 {
  gap: 1rem;
}

.gap-x-0 {
  -moz-column-gap: 0px;
       column-gap: 0px;
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.75rem * var(--tw-space-x-reverse));
  margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.space-y-\[length\:var\(--theme-spacing-lg\)\] > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(var(--theme-spacing-lg) * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(var(--theme-spacing-lg) * var(--tw-space-y-reverse));
}

.space-y-\[length\:var\(--theme-spacing-xl\)\] > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(var(--theme-spacing-xl) * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(var(--theme-spacing-xl) * var(--tw-space-y-reverse));
}

.divide-y > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-y-reverse: 0;
  border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}

.divide-\[color\:var\(--theme-border-color\)\] > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--theme-border-color);
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-\[length\:var\(--theme-border-radius\)\] {
  border-radius: var(--theme-border-radius);
}

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

.border {
  border-width: 1px;
}

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

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

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

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

.border-double {
  border-style: double;
}

.border-\[color\:var\(--theme-border-color\)\] {
  border-color: var(--theme-border-color);
}

.border-orange-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 215 170 / var(--tw-border-opacity, 1));
}

.border-t-\[color\:var\(--theme-border-color\)\] {
  border-top-color: var(--theme-border-color);
}

.bg-\[color\:var\(--color-warning\)\] {
  background-color: var(--color-warning);
}

.bg-\[color\:var\(--theme-bg-primary\)\] {
  background-color: var(--theme-bg-primary);
}

.bg-\[color\:var\(--theme-bg-surface\)\] {
  background-color: var(--theme-bg-surface);
}

.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-orange-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 237 213 / var(--tw-bg-opacity, 1));
}

.bg-red-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
}

.bg-transparent {
  background-color: transparent;
}

.bg-yellow-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 249 195 / var(--tw-bg-opacity, 1));
}

.object-cover {
  -o-object-fit: cover;
     object-fit: cover;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-\[length\:var\(--theme-spacing-md\)\] {
  padding: var(--theme-spacing-md);
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-\[length\:var\(--theme-spacing-md\)\] {
  padding-left: var(--theme-spacing-md);
  padding-right: var(--theme-spacing-md);
}

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

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

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

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-\[length\:var\(--theme-spacing-xl\)\] {
  padding-top: var(--theme-spacing-xl);
  padding-bottom: var(--theme-spacing-xl);
}

.pt-\[length\:var\(--theme-spacing-lg\)\] {
  padding-top: var(--theme-spacing-lg);
}

.pt-\[length\:var\(--theme-spacing-xl\)\] {
  padding-top: var(--theme-spacing-xl);
}

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

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

.text-\[length\:var\(--theme-font-size-lg\)\] {
  font-size: var(--theme-font-size-lg);
}

.text-\[length\:var\(--theme-font-size-sm\)\] {
  font-size: var(--theme-font-size-sm);
}

.text-\[length\:var\(--theme-font-size-xs\)\] {
  font-size: var(--theme-font-size-xs);
}

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

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

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

.text-\[color\:var\(--theme-accent-primary\)\] {
  color: var(--theme-accent-primary);
}

.text-\[color\:var\(--theme-accent-secondary\)\] {
  color: var(--theme-accent-secondary);
}

.text-\[color\:var\(--theme-status-success\)\] {
  color: var(--theme-status-success);
}

.text-\[color\:var\(--theme-status-warning-text\)\] {
  color: var(--theme-status-warning-text);
}

.text-\[color\:var\(--theme-text-muted\)\] {
  color: var(--theme-text-muted);
}

.text-current {
  color: currentColor;
}

.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

.text-green-800 {
  --tw-text-opacity: 1;
  color: rgb(22 101 52 / var(--tw-text-opacity, 1));
}

.text-orange-800 {
  --tw-text-opacity: 1;
  color: rgb(154 52 18 / var(--tw-text-opacity, 1));
}

.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}

.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

.text-red-800 {
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / var(--tw-text-opacity, 1));
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.text-yellow-600 {
  --tw-text-opacity: 1;
  color: rgb(202 138 4 / var(--tw-text-opacity, 1));
}

.text-yellow-800 {
  --tw-text-opacity: 1;
  color: rgb(133 77 14 / var(--tw-text-opacity, 1));
}

.underline {
  text-decoration-line: underline;
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.opacity-25 {
  opacity: 0.25;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.shadow-\[shadow\:var\(--theme-shadow-md\)\] {
  --tw-shadow: var(--theme-shadow-md);
  --tw-shadow-colored: var(--theme-shadow-md);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

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

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

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

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure JS spinner (inside the div added by showLoading) is visible */

.loading-active > div {
  /* Target the div added by showLoading */
  visibility: visible;
}

/* Form Validation */

.border-error {
  border-color: var(--theme-status-error) !important;
}

/* Notification System */

.notification {
  margin-bottom: 1rem;
  border-left-width: 4px;
  padding: 1rem;
  padding-left: 1rem;
}

.notification-error {
  border-color: var(--theme-status-error);
  background-color: var(--theme-status-error-light);
}

.notification-error .notification-text {
  color: var(--theme-status-error-text);
}

.notification-warning {
  border-color: var(--theme-status-warning);
  background-color: var(--theme-status-warning-light);
}

.notification-warning .notification-text {
  color: var(--theme-status-warning-text);
}

.notification-success {
  border-color: var(--theme-status-success);
  /* Use new green variable */
  background-color: var(--theme-status-success-light);
  /* Use new green variable */
}

.notification-success .notification-text {
  color: var(--theme-status-success-text);
  /* Use new green variable */
}

.notification-info {
  border-color: var(--theme-status-info);
  background-color: var(--theme-status-info-light);
}

.notification-info .notification-text {
  color: var(--theme-status-info-text);
}

:root {
  /* Theme Colors */
  --theme-bg-primary: #F4F2EC;
  --theme-bg-surface: #e4e0d6;
  --theme-accent-primary: #211D49;
  --theme-accent-secondary: #5C0536;
  --theme-accent-tertiary: #856506;
  --theme-accent-quaternary: #5A5D3C;
  /* #2E5E4A #4A7C7E */
  /* Text Colors */
  --theme-text-primary: #2C3E50;
  --theme-text-secondary: #34495E;
  --theme-text-secondary-hover: color-mix(in srgb, var(--theme-text-secondary) 85%, black);
  /* Added for hover effect */
  --theme-text-muted: #7F8C8D;
  /* Status Colors */
  --theme-status-error: #E74C3C;
  --theme-status-error-light: #FDEDEC;
  --theme-status-error-text: #C0392B;
  --theme-status-warning: #F39C12;
  --theme-status-warning-light: #FEF5E7;
  --theme-status-warning-text: #D35400;
  --theme-status-info: #3498DB;
  --theme-status-info-light: #EBF5FB;
  --theme-status-info-text: #2980B9;
  --theme-status-success: #28a745;
  /* Green for semantic success */
  --theme-status-success-light: color-mix(in srgb, var(--theme-status-success) 15%, white);
  --theme-status-success-text: color-mix(in srgb, var(--theme-status-success) 85%, black);
  /* Borders & Shadows */
  --theme-border-color: rgba(44, 62, 80, 0.15);
  --theme-border-width: 2px;
  --theme-border-radius: 0.125rem;
  --theme-shadow-sm: 0 2px 4px 0 rgba(44, 62, 80, 0.05);
  --theme-shadow-md: 0 4px 6px -1px rgba(44, 62, 80, 0.1);
  /* Spacing & Layout */
  --theme-spacing-xs: 0.5rem;
  --theme-spacing-sm: 0.75rem;
  --theme-spacing-md: 1rem;
  --theme-spacing-lg: 1.5rem;
  --theme-spacing-xl: 2rem;
  --theme-spacing-2xl: 2.5rem;
  /* Typography */
  --theme-font-size-xs: 0.75rem;
  --theme-font-size-sm: 0.875rem;
  --theme-font-size-base: 1rem;
  --theme-font-size-lg: 1.125rem;
  --theme-font-size-xl: 1.25rem;
  /* Component Specific */
  --theme-card-padding: var(--theme-spacing-xl);
  --theme-input-height: 2.5rem;
  --theme-button-padding: 0.75rem 1.5rem;
  /* Transitions */
  --theme-transition-duration: 300ms;
  --theme-transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
  /* Effects & Decorative */
  --theme-pattern-dots: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D35400' fill-opacity='0.05'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E");
  --theme-pattern-opacity: 0.05;
  --theme-accent-opacity: 0.1;
  --theme-hover-opacity: 0.9;
}

/* Theme Classes */

/* Utility Classes */

/* Separator for two-column layout */

#config-column {
  border-right: 1px solid var(--theme-border-color);
  padding-right: var(--theme-spacing-lg);
}

#results-column {
  padding-left: var(--theme-spacing-lg);
}

#generate-description-btn {
  display: flex;
  align-items: center;
}

.my-indicator{
  display:none;
}

.htmx-request .my-indicator{
  display:inline;
}

.htmx-request.my-indicator{
  display:inline;
}

/* Search Mode Toggle Styling */

.search-mode-toggle .toggle-slider {
  position: relative;
  background: var(--theme-accent-primary);
  box-shadow: inset 0 0 4px rgba(0,0,0,0.1);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.search-mode-toggle .toggle-slider:before {
  content: '';
  position: absolute;
  height: 1rem;
  width: 1rem;
  left: 0;
  bottom: 0;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.search-mode-toggle input:checked + .toggle-slider {
  background: var(--theme-accent-secondary);
}

.search-mode-toggle input:checked + .toggle-slider:before {
  transform: translateX(1.25rem);
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Hover effects for extra flair */

.search-mode-toggle input:not(:checked) + .toggle-slider:hover:before {
  transform: scale(1.1);
}

.search-mode-toggle input:checked + .toggle-slider:hover:before {
  transform: translateX(1.25rem) scale(1.1);
}

/* Tabulator Custom Styles */

#results-table.tabulator {
  border: none !important;
  /* Remove default outer border */
  background-color: transparent !important;
  /* Ensure no conflicting bg */
  /* font-family: 'Inter', sans-serif; */
}

/* Header Styling */

#results-table.tabulator .tabulator-header {
  background-color: var(--theme-bg-surface) !important;
  /* Light beige/gray background */
  border-bottom: 1px solid var(--theme-border-color) !important;
  /* Bottom border for the entire header */
  /* color: var(--theme-text-primary) !important; */
  border-left: none !important;
  /* Ensure no left border on header container */
  border-right: none !important;
  /* Ensure no right border on header container */
  border-top: none !important;
  /* Ensure no top border on header container */
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace, Times;
  font-size: var(--theme-font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--theme-text-muted);
}

#results-table.tabulator .tabulator-header .tabulator-col {
  background-color: var(--theme-bg-surface) !important;
  /* Ensure individual header cells also have this bg */
  border-right: none !important;
  /* Removed vertical separator */
  border-left: none !important;
  /* Ensure no left border on individual header cells */
  border-top: none !important;
  /* Ensure no top border on individual header cells */
  justify-content: center !important;
}

#results-table.tabulator .tabulator-header .tabulator-col:last-child {
  /* border-right: none !important; */
  /* Redundant */
}

#results-table.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  padding: 0.75rem 1.2rem !important;
  /* Adjust padding as needed */
  text-align: left !important;
  /* Align header text to the left */
}

#results-table.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title {
  font-weight: 600 !important;
  /* Medium font weight for header titles */
  white-space: normal !important;
  /* Allow header titles to wrap if needed */
  word-wrap: break-word !important;
}

/* Row Styling */

#results-table.tabulator .tabulator-tableholder .tabulator-table .tabulator-row {
  background-color: var(--theme-bg-primary) !important;
  /* Light background for all rows */
  border-bottom: 1px solid var(--theme-border-color) !important;
  /* Bottom border for each row */
  min-height: 95px !important;
  /* Ensure rows are tall enough for thumbnails */
  border-left: none !important;
  /* Ensure no left border on row container */
  border-right: none !important;
  /* Ensure no right border on row container */
  border-top: none !important;
  /* Ensure no top border on row container */
}

#results-table.tabulator .tabulator-tableholder .tabulator-table .tabulator-row:nth-child(even) {
  background-color: var(--theme-bg-primary) !important;
  /* Ensure even rows have the same bg, removing zebra striping */
}

#results-table.tabulator .tabulator-tableholder .tabulator-table .tabulator-row:hover {
  background-color: color-mix(in srgb, var(--theme-bg-primary) 90%, var(--theme-border-color)) !important;
  /* Slight darken on hover */
}

/* Cell Styling */

#results-table.tabulator .tabulator-row .tabulator-cell {
  padding: 0.75rem 1.2rem !important;
  /* Adjust cell padding */
  border-right: none !important;
  /* Removed vertical separator */
  border-left: none !important;
  /* Ensure no left border on individual cells */
  border-top: none !important;
  /* Ensure no top border on individual cells */
  vertical-align: middle !important;
  /* Align cell content vertically */
  line-height: 1.4 !important;
  /* Improve readability for wrapped text */
}

#results-table.tabulator .tabulator-row .tabulator-cell:last-child {
  /* border-right: none !important; */
  /* Redundant */
}

/* Text wrapping for specific cells (Video Title and Reasoning) */

#results-table.tabulator .tabulator-row .tabulator-cell[tabulator-field="title"],
#results-table.tabulator .tabulator-row .tabulator-cell[tabulator-field="reasoning"] {
  white-space: normal !important;
  word-wrap: break-word !important;
  /* More aggressive word breaking if needed */
  overflow-wrap: break-word !important;
  /* Standard property for word breaking */
}

/* Thumbnail column */

#results-table.tabulator .tabulator-row .tabulator-cell[tabulator-field="youtube_id"] img {
  max-height: 70px;
  /* Adjust as per desired thumbnail size in cell */
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: var(--theme-border-radius);
}

/* Brand Video column - checkbox centering */

#results-table.tabulator .tabulator-row .tabulator-cell[tabulator-field="is_brand_video"] {
  text-align: center !important;
}

#results-table.tabulator .tabulator-row .tabulator-cell[tabulator-field="is_brand_video"] input[type="checkbox"] {
  height: 1.25rem;
  width: 1.25rem;
  vertical-align: middle;
  /* Align checkbox with text if any */
}

/* Ensure the badge in the title column does not interfere with layout */

#results-table.tabulator .tabulator-row .tabulator-cell[tabulator-field="title"] div {
  display: inline;
  /* Keep title text and badge on the same conceptual line for wrapping */
}

#results-table.tabulator .tabulator-row .tabulator-cell[tabulator-field="title"] span.ml-2 {
  display: inline-block;
  /* Allow margin and padding for the badge */
  white-space: nowrap;
  /* Prevent badge text from wrapping */
  vertical-align: middle;
}

#results-table.tabulator .tabulator-footer {
  background-color: var(--theme-bg-surface) !important;
}

#results-table.tabulator .tabulator-footer .tabulator-page.active {
  color: var(--theme-accent-secondary) !important;
}

/* ------------------------------------------------------------------------ */

/*  SIFI Brands Tabulator Styles                                            */

/*  Mirrors the styling applied to the results table so the grid            */

/*  seamlessly matches the application theme.                               */

/* ------------------------------------------------------------------------ */

#sifi-brands-table.tabulator {
  border: none !important;
  background-color: transparent !important;
}

#sifi-brands-table.tabulator .tabulator-header {
  background-color: var(--theme-bg-surface) !important;
  border-bottom: 1px solid var(--theme-border-color) !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace, Times;
  font-size: var(--theme-font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--theme-text-muted);
}

#sifi-brands-table.tabulator .tabulator-header .tabulator-col {
  background-color: var(--theme-bg-surface) !important;
  border-right: none !important;
  border-left: none !important;
  border-top: none !important;
  justify-content: center !important;
}

#sifi-brands-table.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  padding: 0.75rem 1.2rem !important;
  text-align: left !important;
}

#sifi-brands-table.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title {
  font-weight: 600 !important;
  white-space: normal !important;
  word-wrap: break-word !important;
}

#sifi-brands-table.tabulator .tabulator-tableholder .tabulator-table .tabulator-row {
  background-color: var(--theme-bg-primary) !important;
  border-bottom: 1px solid var(--theme-border-color) !important;
  /* min-height: 56px !important; */
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}

#sifi-brands-table.tabulator .tabulator-tableholder .tabulator-table .tabulator-row:nth-child(even) {
  background-color: var(--theme-bg-primary) !important;
}

#sifi-brands-table.tabulator .tabulator-tableholder .tabulator-table .tabulator-row:hover {
  background-color: color-mix(in srgb, var(--theme-bg-primary) 90%, var(--theme-border-color)) !important;
}

#sifi-brands-table.tabulator .tabulator-row .tabulator-cell {
  padding: 0.75rem 1.2rem !important;
  border-right: none !important;
  border-left: none !important;
  border-top: none !important;
  /* vertical-align: middle !important; */
  line-height: 1.4 !important;
  /* white-space: normal;  */
}

#sifi-brands-table.tabulator .tabulator-row .tabulator-cell[tabulator-field="last_run"],
#sifi-brands-table.tabulator .tabulator-row .tabulator-cell[tabulator-field="next_process"],
#sifi-brands-table.tabulator .tabulator-row .tabulator-cell[tabulator-field="created_at"],
#sifi-brands-table.tabulator .tabulator-row .tabulator-cell[tabulator-field="updated_at"],
#sifi-brands-table.tabulator .tabulator-row .tabulator-cell[tabulator-field="brand_description"] {
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* Allow wrapping for description and search criteria cells */

#sifi-brands-table.tabulator .tabulator-row .tabulator-cell[tabulator-field="brand_description"],
#sifi-brands-table.tabulator .tabulator-row .tabulator-cell[tabulator-field="search_summary_multiline"] {
  /* white-space: normal !important; */
  /* word-wrap: break-word !important; */
  /* overflow-wrap: break-word !important; */
}

#sifi-brands-table.tabulator .tabulator-footer {
  background-color: var(--theme-bg-surface) !important;
}

#sifi-brands-table.tabulator .tabulator-footer .tabulator-page.active {
  color: var(--theme-accent-secondary) !important;
}

.hover\:bg-\[color\:var\(--color-warning-hover\)\]:hover {
  background-color: var(--color-warning-hover);
}

.hover\:bg-\[color\:var\(--theme-bg-primary\)\]:hover {
  background-color: var(--theme-bg-primary);
}

.hover\:bg-white\/10:hover {
  background-color: rgb(255 255 255 / 0.1);
}

.focus\:ring-\[color\:var\(--theme-accent-primary\)\]:focus {
  --tw-ring-color: var(--theme-accent-primary);
}

.focus\:ring-\[color\:var\(--theme-status-success\)\]:focus {
  --tw-ring-color: var(--theme-status-success);
}

.group:hover .group-hover\:block {
  display: block;
}

@media (min-width: 640px) {
  .sm\:px-\[length\:var\(--theme-spacing-lg\)\] {
    padding-left: var(--theme-spacing-lg);
    padding-right: var(--theme-spacing-lg);
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .md\:items-start {
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .lg\:px-\[length\:var\(--theme-spacing-xl\)\] {
    padding-left: var(--theme-spacing-xl);
    padding-right: var(--theme-spacing-xl);
  }
}