/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

:root {
  color-scheme: light;
  --ui-border: #e2e8f0;
  --ui-muted: #64748b;
  --ui-link: #2563eb;
  --ui-surface: #f8fafc;
}

html {
  background: #f8fafc;
}

body {
  color: #0f172a;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a, button, input, select, textarea, summary {
  transition: border-color 150ms ease, box-shadow 150ms ease, color 150ms ease,
    background-color 150ms ease, opacity 150ms ease;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.ui-shell {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
}

.ui-main {
  min-height: 55vh;
}

.ui-link {
  color: var(--ui-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.ui-link:hover {
  color: #1d4ed8;
  text-decoration-line: underline;
}

.ui-page-header {
  margin-bottom: 1.25rem;
}

.ui-page-title {
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.ui-section-title {
  color: #1e293b;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.ui-muted {
  color: var(--ui-muted);
  font-size: 0.875rem;
}

.ui-card {
  border: 1px solid var(--ui-border);
  border-radius: 0.5rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.ui-row {
  border-bottom: 1px solid var(--ui-border);
  padding-block: 0.875rem;
}

.ui-row:last-child {
  border-bottom: 0;
}

.ui-btn {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background: #fff;
  padding: 0.4rem 0.75rem;
  color: #1e293b;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 1px 1px rgb(15 23 42 / 0.04);
}

.ui-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.ui-btn-primary {
  border-color: #047857;
  background: #059669;
  color: #fff;
}

.ui-btn-primary:hover {
  border-color: #065f46;
  background: #047857;
}

.ui-btn-danger {
  border-color: #b91c1c;
  background: #dc2626;
  color: #fff;
}

.ui-btn-danger:hover {
  background: #b91c1c;
}

.ui-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.ui-badge-success { background: #dcfce7; color: #166534; }
.ui-badge-danger { background: #fee2e2; color: #991b1b; }
.ui-badge-warning { background: #ffedd5; color: #9a3412; }
.ui-badge-neutral { background: #f1f5f9; color: #475569; }

.ui-field {
  margin-bottom: 1rem;
}

.ui-field label, .ui-label {
  display: block;
  margin-bottom: 0.3rem;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
}

.ui-field input[type="text"], .ui-field textarea, .ui-field select,
.ui-input {
  width: 100%;
  max-width: 42rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background: #fff;
  padding: 0.55rem 0.7rem;
  color: #0f172a;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.03);
}

.ui-field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.ui-field input:focus, .ui-field textarea:focus, .ui-field select:focus,
.ui-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.13);
  outline: none;
}

.ui-fieldset {
  margin-block: 1rem;
  border: 1px solid var(--ui-border);
  border-radius: 0.5rem;
  background: var(--ui-surface);
  padding: 1rem;
}

.ui-fieldset legend {
  padding-inline: 0.35rem;
  color: #334155;
  font-size: 1rem;
  font-weight: 650;
}

.ui-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2rem;
  font-size: 0.925rem;
}

.ui-check input {
  border-color: #94a3b8;
  border-radius: 0.2rem;
}

.ui-alert {
  margin-block: 0.75rem;
  border: 1px solid;
  border-radius: 0.375rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.875rem;
}

.ui-dialog {
  width: min(32rem, calc(100vw - 2rem));
  border: 1px solid var(--ui-border);
  border-radius: 0.6rem;
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgb(15 23 42 / 0.2);
}

.ui-dialog::backdrop {
  background: rgb(15 23 42 / 0.38);
}

.ui-prose {
  max-width: 52rem;
  color: #334155;
}

.ui-prose h1 {
  margin-bottom: 1.25rem;
  color: #0f172a;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ui-prose h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 650;
}

.ui-prose p, .ui-prose ul {
  margin-block: 0.65rem;
}

.ui-prose li + li {
  margin-top: 0.25rem;
}

div.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

div.pagination a, div.pagination em, div.pagination span {
  border-radius: 0.25rem;
  padding: 0.25rem 0.45rem;
}

div.pagination a {
  color: var(--ui-link);
}

div.pagination a:hover {
  background: #eff6ff;
}

div.pagination .disabled {
  color: #94a3b8;
  cursor: default;
}

div.pagination .current {
  background-color: #0f172a;
  color: #fff;
  font-style: normal;
}
