/* SILCA Portal – Dynamic theme tokens (Jinja2) */

:root{
  /* Brand */
  --brand-red: #d00010;
  --brand-gold: #f0d010;
  --brand-dark: #1f1f1f;
  --brand-gray: #5a5a5a;
  --brand-cream: #FFFBF0;
  --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  --radius-lg: 16px;


  /* Core UI */
  --text: #1f1f1f;
  --text-muted: #5a5a5a;
  --bg: #ffffff;
  --surface: #f7f7f7;
  --border: #e5e5e5;
  --link: #d00010;
  --focus-ring: rgba(208,0,16,.25);

/* Hero */
  --hero-image-url: url("https://images.unsplash.com/photo-1550989460-0adf9ea622e2?q=80&w=2574&auto=format&fit=crop");
  --hero-overlay-from: 0.4;
  --hero-overlay-to: 0.6;

  /* Layout */
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 24px rgba(0,0,0,.10);
  --container: 1100px;

  /* Typography */
  --font-sans: "Inter", "Inter", sans-serif;
  --font-serif: "Playfair Display", serif;
}

/* Base */
html, body{ height: 100%; }
body{
 /* margin: 0;
  padding: 20px 30px 0 30px;*/
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

*{ box-sizing: border-box; }

a{
  color: var(--link);
  text-decoration: none;
}
a:hover{ text-decoration: underline; }
a:visited{ color: var(--link); }
a:active{ color: var(--link); }

h1,h2,h3{
  margin: 0 0 12px 0;
  line-height: 1.25;
}

p{
  margin: 0 0 15px 0;
  color: var(--text);
}

/* Layout helpers */
.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  text-align:center;
}

.card{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px;
}

/* Buttons */
.btn,
.button__cell,
.button__cell-small{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  font-size:12px;
}

.btn:focus,
.button__cell:focus,
.button__cell-small:focus{
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn-primary,
.button__cell,
.button__cell-small{
  background: var(--brand-red);
  color: #fff;
}
.btn-primary:hover,
.button__cell:hover,
.button__cell-small:hover{
  filter: brightness(.95);
}

.btn-secondary{
  background: var(--brand-gold);
  color: #1f1f1f;
  border-color: rgba(0,0,0,.08);
}
.btn-secondary:hover{ filter: brightness(.97); }

.button__cell{ padding: 14px 22px; }
.button__cell-small{ padding: 10px 18px; }

.button__text,
.button__text:hover,
.button__text:active,
.button__text:visited{
  color: inherit;
  text-decoration: none;
}

/* Inputs */
input, select, textarea{
  /* width: 100%; */
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 5px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
}

input:focus, select:focus, textarea:focus{
  outline: 3px solid var(--focus-ring);
  border-color: var(--brand-red);
}

/* Tables */
table{
  /* width: 100%; */
  border-collapse: collapse;
  border: 1px solid var(--border);
  margin: 10px 0;
  background: var(--bg);
}

th, td{
  border-bottom: 1px solid var(--border);
  padding: 2px 5px;
  text-align: center;
  vertical-align: top;
}

thead th{
  background: var(--surface);
  font-weight: 700;
}

/* Sticky header helper */
.tableFixHead th{
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

/* Status / highlighting (soft, readable) */
.highlight--good   { background: rgba(67,160,71,.16); }
.highlight--warn   { background: rgba(240,208,16,.28); }
.highlight--bad    { background: rgba(208,0,16,.14); }
.highlight--good,
.highlight--warn,
.highlight--bad{
  color: var(--text);
}

/* Mobile */
@media (max-width: 600px){
  body{ padding: 16px 14px 0 14px; }
  .container{ width: 94% !important; }
}