/* ── Exivity FinOps Report Generator ─────────────────────────────
   Clean, professional stylesheet. No external dependencies.
   ─────────────────────────────────────────────────────────────── */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --primary: #1a73e8;
  --primary-hover: #1557b0;
  --danger: #d93025;
  --warning: #f9ab00;
  --success: #1e8e3e;
  --text: #202124;
  --text-muted: #5f6368;
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --bg-subtle: #f1f3f4;
  --border: #dadce0;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ─────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }

main.container { flex: 1; padding-top: 2rem; padding-bottom: 3rem; }

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
}
.navbar-brand .logo { height: 28px; width: auto; }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.card h2 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.card-narrow { max-width: 480px; }
.center-card { margin-left: auto; margin-right: auto; }

/* ── Grid ───────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── Typography helpers ─────────────────────────────────────────── */
h1 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.text-muted { color: var(--text-muted); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
}
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); }

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

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}
.form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}
select.form-control { appearance: auto; }
input[type="file"].form-control { padding: 0.4rem; }

.form-row {
  display: flex;
  gap: 1rem;
}
.form-group-half { flex: 1; }

small.text-muted { display: block; margin-top: 0.25rem; font-size: 0.8rem; }

/* ── Alerts ─────────────────────────────────────────────────────── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.alert-error {
  background: #fce8e6;
  color: var(--danger);
  border: 1px solid #f5c6cb;
}
.alert-warning {
  background: #fef7e0;
  color: #7c5a00;
  border: 1px solid #fde293;
}
.alert a { color: inherit; font-weight: 600; }

/* ── Report page ────────────────────────────────────────────────── */
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.report-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
