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

:root {
  --primary-color: #007bff;
  --primary-color-dark: #014389;
  --primary-color-light: #69bff7;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --danger-color-dark: #b8303b;
  --light-gray: #f8f9fadc;
  --medium-gray: #959798;
  --medium-gray-dark: color-mix(in srgb, var(--medium-gray) 70%, black 20%);
  --dark-gray: #343a40;
  --black: #000000;
  --spacing-unit: 0.5rem;

  --badge-primary: var(--primary-color);
  --badge-secondary: color-mix(in srgb, var(--primary-color) 70%, white 20%);
  --badge-tertiary: color-mix(in srgb, var(--primary-color) 70%, white 70%);
  --badge-stop: #0b0b0b;
  --badge-danger: #8B0000;
  --badge-warning: #FF0000;
  --badge-caution: #FFA500;
  --badge-notice: #FFD700;
  --badge-ready: #32CD32;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  background-color: var(--dark-gray);
  color: var(--light-gray);
  font-size: 16px;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--medium-gray);
}

pre {
  font-weight: 900;
}

dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}

dt {
  font-weight: 900;
}

dd {
  margin-left: 1rem;
}

@keyframes ready-gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Modal Styles */
.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  backdrop-filter: blur(2px);
}

.modal {
  transform: scale(0.95);
  opacity: 0;
  animation: modalFadeIn 0.15s ease-out forwards;
}

@keyframes modalFadeIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  background-color: var(--light-gray);
  border-bottom: 1px solid var(--medium-gray);
}

.modal-body {
  background-color: white;
  color: var(--dark-gray);
}

/* Generic Modal System */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
  max-width: 32rem;
  margin: 1rem;
  position: relative;
  z-index: 1001;
}

.modal-dialog.modal-lg {
  max-width: 48rem;
}

.modal-dialog.modal-sm {
  max-width: 24rem;
}

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

.modal-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #374151;
}

.modal-body {
  padding: 1.5rem;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 1rem;
}

/* Modal component variations */
.modal-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-text {
  margin-bottom: 1.5rem;
}

/* Error list styling */
.errors {
  margin-bottom: 1rem;
  color: var(--danger-color);
  list-style: disc;
  padding-left: 1.5rem;
}

.errors li {
  margin-bottom: 0.25rem;
}
