
/* /app/app.css */
/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-blue-500: oklch(62.3% 0.214 259.815);
    --color-blue-700: oklch(48.8% 0.243 264.376);
    --color-gray-200: oklch(92.8% 0.006 264.531);
    --color-gray-300: oklch(87.2% 0.01 258.338);
    --color-gray-600: oklch(44.6% 0.03 256.802);
    --color-gray-700: oklch(37.3% 0.034 259.733);
    --color-gray-950: oklch(13% 0.028 261.692);
    --color-white: #fff;
    --spacing: 0.25rem;
    --leading-normal: 1.5;
    --radius-3xl: 1.5rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-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-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .mx-auto {
    margin-inline: auto;
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .flex {
    display: flex;
  }
  .hidden {
    display: none;
  }
  .min-h-0 {
    min-height: 0;
  }
  .w-\[500px\] {
    width: 500px;
  }
  .w-full {
    width: 100%;
  }
  .max-w-\[100vw\] {
    max-width: 100vw;
  }
  .max-w-\[300px\] {
    max-width: 300px;
  }
  .flex-1 {
    flex: 1;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .flex-col {
    flex-direction: column;
  }
  .items-center {
    align-items: center;
  }
  .justify-center {
    justify-content: center;
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-9 {
    gap: calc(var(--spacing) * 9);
  }
  .gap-16 {
    gap: calc(var(--spacing) * 16);
  }
  .space-y-4 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .space-y-6 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .self-stretch {
    align-self: stretch;
  }
  .overflow-x-auto {
    overflow-x: auto;
  }
  .rounded-3xl {
    border-radius: var(--radius-3xl);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-gray-200 {
    border-color: var(--color-gray-200);
  }
  .stroke-gray-600 {
    stroke: var(--color-gray-600);
  }
  .p-3 {
    padding: calc(var(--spacing) * 3);
  }
  .p-4 {
    padding: calc(var(--spacing) * 4);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .pt-16 {
    padding-top: calc(var(--spacing) * 16);
  }
  .pb-4 {
    padding-bottom: calc(var(--spacing) * 4);
  }
  .text-center {
    text-align: center;
  }
  .leading-6 {
    --tw-leading: calc(var(--spacing) * 6);
    line-height: calc(var(--spacing) * 6);
  }
  .leading-normal {
    --tw-leading: var(--leading-normal);
    line-height: var(--leading-normal);
  }
  .text-blue-700 {
    color: var(--color-blue-700);
  }
  .text-gray-700 {
    color: var(--color-gray-700);
  }
  .group-hover\:stroke-current {
    &:is(:where(.group):hover *) {
      @media (hover: hover) {
        stroke: currentcolor;
      }
    }
  }
  .hover\:underline {
    &:hover {
      @media (hover: hover) {
        text-decoration-line: underline;
      }
    }
  }
  .dark\:block {
    @media (prefers-color-scheme: dark) {
      display: block;
    }
  }
  .dark\:hidden {
    @media (prefers-color-scheme: dark) {
      display: none;
    }
  }
  .dark\:border-gray-700 {
    @media (prefers-color-scheme: dark) {
      border-color: var(--color-gray-700);
    }
  }
  .dark\:stroke-gray-300 {
    @media (prefers-color-scheme: dark) {
      stroke: var(--color-gray-300);
    }
  }
  .dark\:text-blue-500 {
    @media (prefers-color-scheme: dark) {
      color: var(--color-blue-500);
    }
  }
  .dark\:text-gray-200 {
    @media (prefers-color-scheme: dark) {
      color: var(--color-gray-200);
    }
  }
}
html, body {
  background-color: var(--color-white);
  @media (prefers-color-scheme: dark) {
    background-color: var(--color-gray-950);
  }
  @media (prefers-color-scheme: dark) {
    color-scheme: dark;
  }
}
.appWrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: #1e293b;
  color: white;
  flex-shrink: 0;
}
.topbar-title {
  font-weight: 600;
  font-size: 1.1rem;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar-status {
  font-size: 0.85rem;
  opacity: 0.8;
}
.topbar-button {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
}
.topbar-button:hover {
  background: #2563eb;
}
.layout {
  display: flex;
  flex: 1;
  height: 100%;
  border-top: 1px;
  border-color: #e2e8f0;
  overflow: hidden;
}
.char-icon {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.gridview-sidebar {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid #334155;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.overview-sidebar {
  display: flex;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid #334155;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  justify-content: space-between;
  overflow-y: auto;
}
.character-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.overview-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 200;
}
.character-card-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
}
.character-card-team {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: capitalize;
}
.character-card-actions {
  display: flex;
  gap: 0.5rem;
}
.sidebar {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
  padding: 8px;
  overflow-y: auto;
}
.sidebar-right {
  display: flex;
  padding: 12px;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 1px solid #e2e8f0;
  justify-items: stretch;
  overflow-y: auto;
  min-width: 320px;
}
.battle-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-element {
  padding-top: 10px;
}
.sidebar h2, .sidebar h3, .sidebar p {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #8ea5c5;
}
.sidebar h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #7d91ad;
}
.sidebar p {
  font-weight: 400;
  color: #99abc4;
}
.tabButton {
  padding: 0.5rem 0.75rem;
  border: none;
  background: #2baccc;
  color: white;
  cursor: pointer;
  text-align: center;
  border-radius: 6px;
  font-weight: 500;
  min-width: 72px;
}
.delete {
  background: #dc2626;
  color: #fff;
}
.tabButton:hover {
  background: #3b82f6;
}
.tabButton:disabled {
  background: darkgray;
  color: lightgray;
  cursor: default;
}
.delete:hover {
  background: #b91c1c;
}
.tabButton.active {
  background: #2563eb;
  color: white;
}
.content {
  flex: 1;
  overflow: auto;
}
.charform {
  overflow-y: auto;
}
.content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  background: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.content form label {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  padding-right: 1rem;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #b4c6e0;
}
.content form input, .content form select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #1e293b;
  background: white;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.content form input:focus, .content form select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.content form input:invalid, .content form select:invalid {
  border-color: #ef4444;
}
.content form input[type="number"] {
  width: 100px;
}
.battlerWindow {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  gap: 1.25rem;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
}
.battlePanel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid #334155;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  min-height: 420px;
}
.battleActor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid #334155;
  background: rgba(30, 41, 59, 0.85);
  min-height: 320px;
}
.battleActorName {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  text-align: center;
}
.battleActorTeam {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin: 0;
}
.battleActorIcon {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid #3b82f6;
  background: #0f172a;
}
.battleActorTable {
  width: 100%;
  border-collapse: collapse;
  color: #e2e8f0;
  font-size: 0.9rem;
}
.battleActorTable th, .battleActorTable td {
  padding: 0.35rem 0.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.battleActorTable th {
  color: #94a3b8;
  font-weight: 600;
}
.battleControls {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px solid #334155;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.battleControls input, .battleControls button, .battleIconSelector {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #f8fafc;
}
.battleControls button {
  cursor: pointer;
  background: #3b82f6;
  border: none;
  font-weight: 600;
}
.battleControls button:hover {
  background: #2563eb;
}
.battlePageHeader {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 0 0.5rem;
}
.battlePageHeader h1 {
  margin: 0;
  font-size: 1.4rem;
  color: #f8fafc;
}
.battlePageHeader p {
  margin: 0;
  color: #94a3b8;
}
.battlePageBody {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem 1rem;
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-space-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-leading {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-space-y-reverse: 0;
      --tw-border-style: solid;
      --tw-leading: initial;
    }
  }
}


/* /app/routes/UserPages/userPages.css */
.ListContainer {
    padding: 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.BattleHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    background: #2a0a4a;
    color: #fff;
    font-weight: 600;
    user-select: none;
    width: 100%;
    border-radius: 8px;
    flex-direction: column;
}
.BattleBody {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    width: 100%;
}


.BattleContainer {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin-bottom: 16px;
    outline: 2px solid #740fd1;
    align-self: center;
    align-items: center;
    padding: 10px;
    gap: 10px;
    border-radius: 8px;
}

.BattleContainer.collapsed .BattleBody {
    display: none;
}

.BattleBanner {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.Winner {
    color: lightsteelblue;
    outline-color: lightsteelblue;
    outline-width: 2px;
    border-radius: 8px;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 72px;
}
.Winner-icon {
    display: grid;
    justify-content: center;
    max-width: 180px;
}
.Loser {
    outline-width: 2px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 20px;
    padding-left: 20px;
    font-size: 56px;
}
.Loser-icon {
    display: grid;
    justify-content: center;
    max-width: 120px;
}

.RoundContainer {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 8px;
    border: 1px solid #740fd1;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a1a;
}

.RoundHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    background: #2a0a4a;
    color: #fff;
    font-weight: 600;
    user-select: none;
}

.RoundBody {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
}

.RoundContainer.collapsed .RoundBody {
    display: none;
}

.TurnContainer {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 4px 0;
    border: 1px solid #4a1d80;
    border-radius: 4px;
    overflow: hidden;
    background: #222;
}

.TurnHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    cursor: pointer;
    background: #3a1560;
    color: #eee;
    font-size: 0.9em;
    user-select: none;
}

.TurnBody {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    color: #ccc;
    font-size: 0.85em;
}

.TurnContainer.collapsed .TurnBody {
    display: none;
}

/* /app/routes/AdminPages/Statuslist.css */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 450px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    padding: 0.75rem 1rem;

    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 8px;
}

.status-name {
    flex: 1;
    font-weight: 600;
    color: #fff;
}

.status-input {
    width: 60px;
    padding: 0.35rem;

    background: #1f1f1f;
    color: white;

    border: 1px solid #666;
    border-radius: 4px;
    text-align: center;
}

.status-input:focus {
    outline: none;
    border-color: #4da3ff;
}

.remove-btn {
    padding: 0.45rem 0.9rem;

    background: #d9534f;
    color: white;

    border: none;
    border-radius: 6px;
    cursor: pointer;

    transition: background 0.2s ease;
}

.remove-btn:hover {
    background: #c9302c;
}

.remove-btn:active {
    transform: scale(0.97);
}