:root {
  --hero-navy: #073889;
  --hero-oranje: #f46015;
  --hero-sky: #009cdc;
  --hero-navy-dark: #052867;
  --hero-oranje-dark: #d9500f;
  --text: #1a1a1a;
  --text-muted: #5a6272;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #e1e4ea;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(7, 56, 137, 0.06), 0 1px 3px rgba(7, 56, 137, 0.04);
}

@font-face {
  font-family: "Exo";
  src: url("https://fonts.googleapis.com/css2?family=Exo:wght@500;600;700&display=swap");
}

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

html,
body {
  height: 100%;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

h1,
h2,
h3,
h4 {
  font-family: "Exo", "Source Sans 3", sans-serif;
  font-weight: 600;
  color: var(--hero-navy);
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 1.4rem;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

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

a:hover {
  text-decoration: underline;
}

.app-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: var(--hero-navy);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.app-header img {
  height: 36px;
  width: auto;
}

.app-header .title {
  font-family: "Exo", sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.app-header .spacer {
  flex: 1;
}

.app-header .user {
  font-size: 0.9rem;
  color: #d8e3f4;
}

.app-main {
  flex: 1;
  padding: 2rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.card-centered {
  max-width: 420px;
  margin: 4rem auto;
}

.lede {
  color: var(--text-muted);
  margin-bottom: 1.5em;
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--hero-oranje);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.button:hover {
  background: var(--hero-oranje-dark);
}

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

.button-secondary {
  background: transparent;
  color: var(--hero-navy);
  border: 1px solid var(--hero-navy);
}

.button-secondary:hover {
  background: var(--hero-navy);
  color: #fff;
}

.status {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.status-info {
  background: #e6f4fb;
  color: #0a5478;
  border: 1px solid #b6dcee;
}

.status-warn {
  background: #fff4e6;
  color: #8a4a0a;
  border: 1px solid #f4cfa0;
}

.status-error {
  background: #fbe6e6;
  color: #8a1a1a;
  border: 1px solid #eeb6b6;
}

.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 2rem 1rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-weight: 600;
  color: var(--hero-navy);
  font-size: 0.95rem;
}

.form-row input[type="month"],
.form-row input[type="file"] {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  max-width: 320px;
}

.form-row input[type="month"]:focus,
.form-row input[type="file"]:focus {
  outline: none;
  border-color: var(--hero-sky);
  box-shadow: 0 0 0 3px rgba(0, 156, 220, 0.15);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.radio-group label {
  font-weight: normal;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.summary-pre {
  background: #f0f3f8;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  font-family: "Menlo", "Consolas", monospace;
  font-size: 0.85rem;
  color: var(--hero-navy-dark);
  overflow-x: auto;
  white-space: pre;
  line-height: 1.4;
  max-height: 420px;
  overflow-y: auto;
}

code {
  background: #f0f3f8;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-family: "Menlo", "Consolas", monospace;
  font-size: 0.9em;
  color: var(--hero-navy-dark);
}
