:root {
  --color-white: white;
  --color-black: black;

  --color-neutral-900: #111827;
  /*--color-neutral-900:#ffba44;*/

  --color-neutral-800: #1f2937;
  /*--color-neutral-800:#fafaf9;*/

  --color-neutral-700: #374151;
  --color-neutral-600: #4b5563;
  --color-neutral-500: #6b7280;
  --color-neutral-400: #9ca3af;
  --color-neutral-300: #d1d5db;
  --color-neutral-200: #e5e7eb;
  --color-neutral-100: #f3f4f6;
  /*--color-neutral-100: #fafaf9;*/

  --color-primary: #667dff;
  --color-primary-dark: #576ad9;

  --color-secondary: #ffa180;

  --color-error-200: #fecaca;
  --color-error-900: #7f1d1d;

  --color-text-high: var(--color-black);
  --color-text-low: var(--color-neutral-800);

  --font-sans: "Open Sans", sans-serif;
  --font-wt-bold: 600;
  --font-sz-sm: 0.875rem;
  --font-sz-md: 1rem;
  --font-sz-xl: 1.5rem;
  --font-sz-2xl: 2rem;

  /* Standard border radius for rounding elements. */
  --rounded: 0.25rem;

  --page-header-height: 96px;
  --analyze-form-aside-width: 400px;
}

/*
 * Override the high/low contrast text colors for surfaces with a dark background color.
 */
.dark-bg {
  --color-text-high: var(--color-white);
  --color-text-low: var(--color-neutral-400);
  color: var(--color-text-low);
}

/* CSS Resets ------------------------------------------------------------------------------------------------------- */

button {
  all: unset;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

input {
  font-family: inherit;
  font-size: inherit;
  background-color: inherit;
  color: inherit;
  border: none;
}

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

ul .square {
 list-style-type: square;
 margin-left: 2em;
}

ul .circle {
 list-style-type: circle;
 margin-left: 2em;
}

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

*:focus {
  outline: none;
}

*:focus-visible {
  outline-offset: 2px;
  outline: 2px solid var(--color-primary);
}

/* Layout CSS ------------------------------------------------------------------------------------------------------- */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--color-neutral-100);
  color: var(--color-text-low);
}

#page-content {
  /* Padding for page content below app header; prevents page content from being "under" app header. */
  margin-top: calc(var(--page-header-height) + 24px);
  padding-bottom: 24px;
  padding-left: 24px;
  padding-right: 24px;

  /* The page content should always fill the visible screen. This allows for easier fullscreen effects on pages. */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

section {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  gap: .75rem;
}

/* Loading spinner CSS ---------------------------------------------------------------------------------------------- */

.loading-spinner {
  border: 16px solid var(--color-neutral-200);
  border-top: 16px solid var(--color-secondary);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

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

/* Table CSS -------------------------------------------------------------------------------------------------------- */

.table-wrapper {
  overflow-x: scroll;
}

table {
  white-space: nowrap;
  border-spacing: 0;
  border: 2px solid var(--color-neutral-300);
  border-radius: var(--rounded);
}

thead {
  height: 48px;
  font-weight: var(--font-wt-bold);
  background-color: var(--color-neutral-200);
  color: var(--color-text-high);
}

th,
td {
  padding-left: 16px;
  padding-right: 128px;
}

th {
  text-align: left;
  border-bottom: 2px solid var(--color-neutral-300);
}

tr {
  height: 48px;
}

tr:nth-child(even) {
  background-color: var(--color-neutral-200);
}

/* Alerts ----------------------------------------------------------------------------------------------------------- */

.alert-container-error {
  padding: 16px;
  background-color: var(--color-error-200);
  color: var(--color-error-900);
  border-radius: var(--rounded);
}

.alert-title {
  margin-bottom: 8px;
  font-weight: var(--font-wt-bold);
}

.alert-list {
  padding-left: 32px;
}

/* Checkbox + label behavior CSS ------------------------------------------------------------------------------------ */

.checkbox-field-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox-field-container input[type="checkbox"],
label {
  cursor: pointer;
}
