/* VamiDeka Fx Frontdesk — shared theme with Fx Tracker */
:root {
  --font-sans: "Segoe UI", "SF Pro Display", -apple-system, sans-serif;
  --radius: 8px;
  --radius-sm: 4px;
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --border: #30363d;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --corp-green: #2d5a27;
  --corp-green-muted: #2d5a2744;
  --corp-orange: #e87722;
  --corp-orange-muted: #e8772244;
  --accent: #3d7a36;
  --accent-hover: #4a9342;
  --error: #f85149;
  --input-bg: #0d1117;
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f6f8fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eaeef2;
    --border: #d0d7de;
    --text-primary: #1f2328;
    --text-secondary: #656d76;
    --corp-orange: #c9631a;
    --corp-orange-muted: #e8772233;
    --accent: #2d5a27;
    --accent-hover: #3d7a36;
    --error: #cf222e;
    --input-bg: #ffffff;
  }
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  margin: 0 -1.25rem 1.5rem;
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  background-image: url("/static/images/header-banner.svg?v=1");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 40%, transparent 75%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}

.header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--corp-orange), transparent);
  opacity: 0.7;
}

.brand,
.header-aside {
  position: relative;
  z-index: 1;
}

.brand h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.4),
    -1px -1px 0 rgba(0, 0, 0, 0.3),
    0 0 2px rgba(0, 0, 0, 0.5);
}

.brand p {
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.header-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.header-link {
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  padding: 0.2rem 0;
}

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

.header-link--active {
  font-weight: 600;
  text-decoration: underline;
}

.header-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.card h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }

  .header {
    flex-direction: column;
  }

  .header-nav {
    align-items: flex-start;
  }
}

label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

input, select {
  width: 100%;
  background: var(--input-bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  outline: none;
  font-family: inherit;
}

input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--corp-green-muted);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset;
  -webkit-text-fill-color: var(--text-primary);
  caret-color: var(--text-primary);
  transition: background-color 99999s ease-out;
}

.row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}

button:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--corp-orange);
}

.hint {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.45;
}

.error {
  color: var(--error);
  margin-top: 10px;
  white-space: pre-wrap;
}

.status {
  font-weight: 700;
  font-size: 18px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.return-quote-panel {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.return-quote-heading {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.return-quote-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
}

.return-quote-row .muted {
  color: var(--text-secondary);
}

.footer {
  margin-top: auto;
  padding: 1.5rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  text-align: center;
}
