:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: oklch(0.145 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.145 0 0);
  --primary: #030213;
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.95 0.0058 264.53);
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --destructive-alert-background: rgba(212, 24, 61, 0.05);
  --destructive-alert-border;

  --border: rgba(0, 0, 0, 0.1);
  --success: #22c55e;
  --success-foreground: #ffffff;
  --success-alert-background: rgba(34, 197, 94, 0.05);
  --success-alert-border: rgba(34, 197, 94, 0.2);
  --radius: 0.625rem;
  --radius-xs: calc(var(--radius) - 4px);
  --radius-sm: calc(var(--radius) - 2px);
  --warning: #f59e0b;
  --warning-foreground: #ffffff;
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --border: oklch(0.269 0 0);
  --success: #16a34a;
}

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

html {
  font-size: var(--font-size);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

/* Typography */
h1 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Layout containers */
.page-container {
  height: calc(100vh - 10rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 64rem;
}

.card-small {
  max-width: 28rem;
}

.card-content {
  padding: 1.5rem;
}

/* Text utilities */
.text-center {
  text-align: center;
}

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

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

.subtitle {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

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

/* Sections */
.header-section {
  margin-bottom: 1.5rem;
}

.content-section {
  margin-bottom: 1rem;
}

.support-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.support-note {
  margin-top: 0.5rem;
}

/* Separator */
.separator {
  height: 1px;
  background-color: var(--border);
  margin: 1.5rem 0;
}

/* Icons */
.icon {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}

.icon-lg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
}

/* Alerts */
.alert {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--card);
  margin: 1rem 0;
}

.alert-success {
  background-color: var(--success-alert-background);
  border-color: var(--success-alert-border);
  color: var(--success);
}

.alert-error {
  background-color: var(--destructive-alert-background);
  border-color: var(--destructive-alert-border);
  color: var(--destructive);
}

.alert p {
  margin: 0;
  text-align: left;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
}

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

.btn-outline {
  border: 1px solid var(--border);
  background-color: transparent;
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--accent);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  padding: 0.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--muted-foreground);
  transition: all 0.2s ease-in-out;
}

.btn-icon:hover {
  color: var(--foreground);
  background-color: var(--accent);
}

.link {
  color: var(--primary);
}

.link:hover {
  text-decoration: underline;
}

/* Badges */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.badge-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.header {
  border-bottom: 1px solid var(--border);
}

.header-content {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-content > :only-child {
  margin-left: auto;
  margin-right: auto;
  display: flex;              /* treat wrapper as flex container */
  justify-content: center;    /* center its own contents too */
}

.header-logo {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

a .header-logo:hover {
  background-color: var(--accent);
}

.main-content {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}


.card-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  text-align: center;
  z-index: 10;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-top: 1px solid var(--border);
  padding: 1rem;
  text-align: center;
}

/* Responsive design */
@media (max-width: 640px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}
