/* ── Reset & base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  background: #f0f2f5;
  color: #222;
  line-height: 1.5;
}
a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, #1F3864 0%, #2d5fa6 100%);
  color: #fff;
  padding: 18px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.site-header h1 { font-size: 22px; font-weight: 700; letter-spacing: .3px; }
.site-header .subtitle { font-size: 13px; opacity: .85; margin-top: 4px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: #1F3864;
  color: #cdd8e8;
  text-align: center;
  padding: 14px 0;
  font-size: 12px;
  margin-top: 40px;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  margin: 24px 0;
  overflow: hidden;
}
.card-header {
  background: #1F3864;
  color: #fff;
  padding: 14px 20px;
}
.card-header h2 { font-size: 16px; font-weight: 600; }
.card-body { padding: 20px 24px; }
.card-body p { margin-bottom: 12px; color: #444; }

.card-ready .card-header  { background: #1a6b35; }
.card-info  .card-header  { background: #5a5a5a; }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 16px 0;
  font-size: 14px;
  position: relative;
}
.alert-success { background: #e8f5e9; border-left: 4px solid #2e7d32; color: #1b5e20; }
.alert-error   { background: #fdecea; border-left: 4px solid #c62828; color: #7f0000; }
.alert-icon    { font-size: 18px; flex-shrink: 0; }
.alert-close   {
  position: absolute; right: 12px; top: 10px;
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: inherit; opacity: .6;
}
.alert-close:hover { opacity: 1; }

/* ── File drop zone ──────────────────────────────────────────────────────── */
.file-drop-zone {
  border: 2px dashed #aabcda;
  border-radius: 8px;
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  background: #f7f9fc;
  margin-bottom: 16px;
}
.file-drop-zone:hover, .file-drop-zone.drag-over {
  background: #e3ecf9;
  border-color: #1a73e8;
}
.drop-icon  { font-size: 40px; margin-bottom: 10px; }
.file-input { display: none; }
.file-hint  { font-size: 12px; color: #888; margin-top: 8px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-align: center;
  line-height: 1.4;
}
.btn-primary  { background: #1a73e8; color: #fff; }
.btn-primary:hover  { background: #1557b0; }
.btn-success  { background: #2e7d32; color: #fff; }
.btn-success:hover  { background: #1b5e20; }
.btn-outline  { background: transparent; color: #1a73e8; border-color: #1a73e8; }
.btn-outline:hover  { background: #e8f0fe; }
.btn-warning  { background: #e67e22; color: #fff; }
.btn-warning:hover  { background: #d35400; }
.btn-danger   { background: #c62828; color: #fff; }
.btn-danger:hover   { background: #8b0000; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.actions-gap  { margin-top: 20px; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin-top: 16px; }
.summary-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
.summary-table th {
  background: #1F3864;
  color: #fff;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.summary-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}
.row-even { background: #fff; }
.row-odd  { background: #f5f8ff; }
.summary-table tr:hover td { background: #e8f0fe; }
.desc-cell { max-width: 320px; word-break: break-word; }

.preview-table th { font-size: 11px; }
.preview-table td { font-size: 12px; }

/* ── Notes box ───────────────────────────────────────────────────────────── */
.notes-box {
  background: #fffde7;
  border: 1px solid #f9a825;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ── How-it-works list ───────────────────────────────────────────────────── */
.how-list { padding-left: 20px; line-height: 2; color: #333; }
.how-list code { background: #f0f0f0; padding: 1px 5px; border-radius: 3px; font-size: 12px; }
