/*
 * Ancient Origins — Dashboard Design System
 * Brand: #c9413b red · #171414 dark · #ece9e9 cream · #9a8b78 stone
 * Fonts: Archivo Black (display) · Montserrat (labels) · Inter (body)
 */

/* ── Google Font imports ── */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Montserrat:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ── Brand tokens ── */
:root {
  --ao-red:        #c9413b;
  --ao-red-dark:   #a3332e;
  --ao-dark:       #171414;
  --ao-dark-2:     #221f20;
  --ao-cream:      #ece9e9;
  --ao-stone:      #9a8b78;

  --bg:            #171414;
  --bg-card:       #221f20;
  --bg-card-2:     #2a2323;
  --bg-input:      #1a1616;

  --border:        rgba(201, 65, 59, 0.2);
  --border-soft:   rgba(255, 255, 255, 0.07);
  --border-strong: rgba(201, 65, 59, 0.45);

  --text:          #ece9e9;
  --text-muted:    #9a8b78;
  --text-soft:     #5c504f;

  --accent:        #c9413b;
  --accent-hover:  #a3332e;
  --accent-glow:   rgba(201, 65, 59, 0.18);

  --green:         #34d399;
  --green-dim:     rgba(52, 211, 153, 0.2);
  --red-neg:       #f87171;
  --red-neg-dim:   rgba(248, 113, 113, 0.2);
  --yellow:        #f5a623;
  --yellow-dim:    rgba(245, 166, 35, 0.2);

  --font-display:  "Archivo Black", Impact, sans-serif;
  --font-label:    "Montserrat", system-ui, sans-serif;
  --font-body:     "Inter", system-ui, -apple-system, sans-serif;

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;

  --shadow-card:   0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-lift:   0 8px 28px rgba(0, 0, 0, 0.5);
}

/* ── Reset + base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ao-cream); text-decoration: underline; }

/* ── Dashboard shell ── */
.ao-dashboard-body {
  padding: 28px 20px;
}

.ao-page {
  max-width: 1340px;
  margin: 0 auto;
}

/* ── Page header ── */
.ao-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.ao-page-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ao-cream);
  line-height: 1;
  margin: 0;
}

.ao-page-subtitle {
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 6px 0 0;
  font-weight: 600;
}

/* ── Days filter ── */
.ao-days-filter {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 24px;
}

.ao-days-filter span {
  font-size: 11px;
  font-family: var(--font-label);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.ao-days-btn {
  font-size: 12px;
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
}

.ao-days-btn:hover {
  background: var(--bg-card-2);
  border-color: var(--border);
  color: var(--ao-cream);
  text-decoration: none;
}

.ao-days-btn.active, .ao-days-btn--active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--ao-red);
}

/* ── Stat cards ── */
.ao-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.ao-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.ao-stat.positive { border-color: rgba(52, 211, 153, 0.3); }
.ao-stat.negative { border-color: var(--red-neg-dim); }
.ao-stat.accent   { border-color: var(--border); border-left: 3px solid var(--accent); }

.ao-stat-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.ao-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ao-cream);
  margin-bottom: 4px;
}

.ao-stat-value.green  { color: var(--green); }
.ao-stat-value.red    { color: var(--red-neg); }
.ao-stat-value.yellow { color: var(--yellow); }
.ao-stat-value.accent { color: var(--accent); }

.ao-stat-sub {
  font-size: 0.72rem;
  color: var(--text-soft);
  font-family: var(--font-label);
  font-weight: 500;
}

/* ── Cards / panels ── */
.ao-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.ao-card + .ao-card { margin-top: 16px; }

.ao-section-title {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ao-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

/* ── Tables ── */
.ao-table-wrap { overflow-x: auto; }

.ao-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ao-table th {
  text-align: left;
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}

.ao-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--ao-cream);
  vertical-align: middle;
}

.ao-table tr:last-child td { border-bottom: none; }
.ao-table tr:hover td { background: var(--bg-card-2); }
.ao-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Badges ── */
.ao-badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 99px;
}

.ao-badge-green  { background: var(--green-dim);   color: var(--green); }
.ao-badge-red    { background: var(--red-neg-dim);  color: var(--red-neg); }
.ao-badge-yellow { background: var(--yellow-dim);   color: var(--yellow); }
.ao-badge-accent { background: var(--accent-glow);  color: var(--accent); }
.ao-badge-stone  { background: rgba(154,139,120,.15); color: var(--text-muted); }

/* ── Buttons ── */
.ao-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.ao-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 0 var(--ao-red-dark);
}

.ao-btn-primary:hover {
  background: var(--ao-red-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.ao-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}

.ao-btn-ghost:hover {
  border-color: var(--border);
  color: var(--ao-cream);
  text-decoration: none;
}

/* ── Not-connected state ── */
.ao-not-connected {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 560px;
  margin: 2rem auto;
}

.ao-not-connected h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.25rem;
  color: var(--ao-cream);
  margin: 1rem 0 0.5rem;
}

.ao-not-connected p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ao-not-connected code {
  font-size: 0.8rem;
  background: var(--bg-card-2);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--accent);
}

.ao-not-connected pre {
  background: var(--bg-card-2);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: left;
  font-size: 0.78rem;
  color: var(--ao-cream);
  margin: 1rem 0;
  white-space: pre-wrap;
  border: 1px solid var(--border-soft);
}

/* ── Eyebrow / label utility ── */
.ao-eyebrow {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* ── Chart wrapper ── */
.ao-chart-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

/* ── Two-column grid ── */
.ao-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .ao-two-col { grid-template-columns: 1fr; }
}

/* ── Progress bar ── */
.ao-progress-track {
  background: var(--bg-card-2);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.ao-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.ao-progress-fill.done { background: var(--green); }

/* ── Scrollbar (webkit) ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-card-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }
/*
 * 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.
 *



 */
