/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  color-scheme: light;
  --bg: #0b0f14;
  --panel: #121826;
  --text: #e6eefc;
  --muted: #9fb0c6;
  --border: rgba(230, 238, 252, 0.12);
  --link: #7dd3fc;
  --accent: #34d399;
  --danger: #fb7185;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 500px at 20% -10%, rgba(52, 211, 153, 0.18), transparent 60%),
              radial-gradient(900px 600px at 85% 0%, rgba(125, 211, 252, 0.14), transparent 60%),
              var(--bg);
  color: var(--text);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 20, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.flash {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  background: rgba(18, 24, 38, 0.75);
}

.flash--alert {
  border-color: rgba(251, 113, 133, 0.35);
}

.flash--notice {
  border-color: rgba(52, 211, 153, 0.35);
}

.card {
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.12);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  border-color: rgba(52, 211, 153, 0.7);
}

.btn--ghost {
  border-color: var(--border);
  background: transparent;
}

input, textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.55);
  color: var(--text);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.35);
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.pill:hover {
  text-decoration: none;
  border-color: rgba(125, 211, 252, 0.35);
}

.stack {
  display: grid;
  gap: 12px;
  padding: 18px 0 30px;
}

.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.two-col {
  display: grid;
  gap: 12px;
  align-items: start;
}

@media (min-width: 980px) {
  .two-col {
    grid-template-columns: 1fr 360px;
    gap: 16px;
  }
}

.markdown > :first-child {
  margin-top: 0;
}

.markdown > :last-child {
  margin-bottom: 0;
}

.markdown p,
.markdown ul,
.markdown ol,
.markdown pre,
.markdown blockquote,
.markdown table {
  margin: 0 0 12px;
}

.markdown ul,
.markdown ol {
  padding-left: 1.2rem;
}

.markdown pre {
  overflow-x: auto;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.65);
}

.markdown code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

.markdown pre code {
  font-size: 0.92em;
}

.markdown blockquote {
  margin-left: 0;
  padding-left: 12px;
  border-left: 3px solid rgba(125, 211, 252, 0.35);
  color: var(--muted);
}

.markdown table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.25);
  border-radius: 14px;
  overflow: hidden;
}

.markdown th,
.markdown td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
}

.markdown th:last-child,
.markdown td:last-child {
  border-right: 0;
}

.markdown tr:last-child td {
  border-bottom: 0;
}
