/* ==============================
   Custom variables
   ============================== */
:root {
  --clr-bg:         #f4f6fa;
  --clr-border:     #dde2ec;
  --clr-text:       #1a1d23;
  --clr-muted:      #636b7a;
  --clr-primary:    #0078D4;
  --clr-primary-dk: #005a9e;
  --clr-error:      #d13438;
  --clr-error-bg:   #fdf3f3;
  --clr-warning:    #c27700;
  --clr-warning-bg: #fffbf0;
  --clr-info-bg:    #f0f6ff;
  --clr-success:    #107C10;
}

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==============================
   Header / Footer
   ============================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--clr-border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.logo strong { color: var(--clr-primary); }

.site-footer {
  background: #fff;
  border-top: 1px solid var(--clr-border);
  padding: 14px 0;
  font-size: .85rem;
  color: var(--clr-muted);
  margin-top: auto;
}

/* ==============================
   Drop zone
   ============================== */
.drop-zone {
  border: 2px dashed var(--clr-border);
  border-radius: 10px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--clr-primary);
  background: var(--clr-info-bg);
}
.upload-icon  { width: 52px; height: 52px; margin-bottom: 12px; }
.drop-zone p  { color: var(--clr-muted); font-size: .95rem; }
.link         { color: var(--clr-primary); cursor: pointer; text-decoration: underline; }
.file-name    { font-weight: 600; margin-top: 8px; }

/* ==============================
   Summary stats
   ============================== */
.summary-status      { font-size: 1.25rem; font-weight: 700; }
.summary-status.ok   { color: var(--clr-success); }
.summary-status.err  { color: var(--clr-error); }
.summary-status.warn { color: var(--clr-warning); }

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--clr-bg);
  border-radius: 8px;
  padding: 12px 24px;
  min-width: 90px;
}
.stat-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .8rem; color: var(--clr-muted); margin-top: 4px; }
.stat-error   .stat-value { color: var(--clr-error);   }
.stat-warning .stat-value { color: var(--clr-warning); }
.stat-info    .stat-value { color: var(--clr-primary);  }

/* ==============================
   Issues table
   ============================== */
.issues-table { font-size: .875rem; }

.col-sev  { width: 110px; white-space: nowrap; }
.col-file { width: 160px; }
.col-row  { width: 70px;  }

/* Group header rows */
.group-header td {
  background: var(--clr-bg) !important;
  border-top: 2px solid var(--clr-border) !important;
  padding: 7px 12px;
}

.group-toggle { color: var(--clr-text) !important; font-size: .875rem; }

.caret {
  display: inline-block;
  font-size: .65rem;
  transition: transform .18s;
  color: var(--clr-muted);
  vertical-align: middle;
}
.caret.rotated { transform: rotate(90deg); }

.group-code { font-family: monospace; font-weight: 700; color: var(--clr-primary); }

/* Severity pills */
.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill-Error   { background: var(--clr-error-bg);   color: var(--clr-error);   }
.pill-Warning { background: var(--clr-warning-bg); color: var(--clr-warning); }
.pill-Info    { background: var(--clr-info-bg);    color: var(--clr-primary); }

.file-cell { font-family: monospace; font-size: .82rem; color: var(--clr-muted); }
.row-cell  { font-family: monospace; color: var(--clr-muted); text-align: right; white-space: nowrap; }

/* Context details below a message */
.context-details {
  margin-top: 4px;
  font-size: .82rem;
  color: var(--clr-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
