:root{
  --bg:#0b0d12;
  --card:#121725;
  --card2:#0f1421;
  --text:#e9ecf3;
  --muted:#b8c0d6;
  --line:rgba(255,255,255,.10);
  --chip:rgba(255,255,255,.08);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius:18px;

  /* SWATCH SIZE: ~3x bigger than before */
  --sw: 42px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: radial-gradient(1100px 700px at 15% -10%, rgba(90,120,255,.16), transparent 55%),
              radial-gradient(900px 650px at 95% 0%, rgba(255,180,80,.12), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.45;
}
.wrap{max-width:1100px;margin:0 auto;padding:28px 18px 70px}
header{
  display:flex;gap:14px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;
  padding:18px 18px 10px;border:1px solid var(--line);border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}
.brand h1{margin:0;font-size:22px;letter-spacing:.2px}
.brand p{margin:6px 0 0;color:var(--muted);max-width:820px}
.meta{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end;
  color:var(--muted);font-size:12px
}
.pill{
  padding:7px 10px;border-radius:999px;background:var(--chip);
  border:1px solid var(--line);
  white-space:nowrap;
}
nav{
  margin:18px 0 0;
  display:flex;gap:10px;flex-wrap:wrap
}
nav a{
  color:var(--text);text-decoration:none;font-size:13px;
  padding:8px 10px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.03);
}
nav a:hover{background:rgba(255,255,255,.07)}
h2{
  margin:22px 0 10px;font-size:16px;
  color:var(--text);
}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.card{
  grid-column: span 12;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px 14px;
  box-shadow: var(--shadow);
}
@media (min-width:860px){
  .span6{grid-column: span 6;}
  .span4{grid-column: span 4;}
  .span8{grid-column: span 8;}
}
.sub{color:var(--muted);font-size:13px;margin:6px 0 0}
.list{margin:10px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}

/* rows with bigger swatches */
.row{
  display:flex;gap:12px;align-items:center;flex-wrap:wrap;
  padding:12px 12px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);
}
.sw{
  width:var(--sw);height:var(--sw);
  border-radius:10px;
  border:1px solid rgba(255,255,255,.35);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  flex:0 0 var(--sw);
}
.name{font-weight:650;letter-spacing:.1px}
.tags{display:flex;gap:6px;flex-wrap:wrap}
.tag{
  padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);color:var(--muted);font-size:12px;
}
.cols{
  display:grid;gap:10px;
  grid-template-columns: 1fr;
}
@media (min-width:860px){ .cols{grid-template-columns: 1fr 1fr;} }
.k{
  margin:0;color:var(--muted);font-size:12px;
}
.combo{
  display:flex;gap:10px;align-items:center;flex-wrap:wrap;
}
.combo .item{
  display:flex;gap:10px;align-items:center;
  padding:9px 10px;border-radius:999px;background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.09);
  font-size:13px;
}
.note{
  margin-top:10px;
  padding:12px 12px;border-radius:14px;background:rgba(255,255,255,.03);
  border:1px dashed rgba(255,255,255,.16);
  color:var(--muted);font-size:13px;
}
footer{margin-top:18px;color:var(--muted);font-size:12px}
.hr{height:1px;background:var(--line);margin:14px 0}


/* Controls (Filter + Generator) */
.controls .filterbar{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.fchip{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  cursor:pointer;
  user-select:none;
}
.fchip:hover{background:rgba(255,255,255,.07)}
.fchip.active{
  outline:2px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.10);
}
.filteractions{
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.btn{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
  font-weight:600;
}
.btn:hover{background:rgba(255,255,255,.08)}
.btn.primary{
  background:rgba(90,120,255,.20);
  border-color:rgba(90,120,255,.45);
}
.btn.primary:hover{background:rgba(90,120,255,.28)}
.hint{color:var(--muted);font-size:13px}

.form{margin-top:12px;display:flex;flex-direction:column;gap:10px}
.lbl{font-size:12px;color:var(--muted)}
.sel{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  color:var(--text);
}

/* Highlight for filtered matches */
.match{
  border-color: rgba(120, 255, 180, .55) !important;
  background: rgba(120, 255, 180, .10) !important;
}
.dim{
  opacity:.35;
  filter:saturate(.85);
}

/* Generated palettes */
.genGrid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(1, 1fr);
  gap:12px;
}
@media (min-width:860px){ .genGrid{ grid-template-columns: repeat(2, 1fr); } }
.genCard{
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  cursor:pointer;
}
.genCard:hover{background:rgba(255,255,255,.06)}
.genLine{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.small{color:var(--muted);font-size:12px;margin-top:8px}


/* FIX: dropdown kontrast (svi select meniji: bazna boja, stil, broj prijedloga) */
.sel, select{
  background:#0f1421 !important;
  color:var(--text) !important;
  border-color: rgba(255,255,255,.18) !important;
}
.sel:focus, select:focus{
  outline: 2px solid rgba(90,120,255,.45);
  outline-offset: 2px;
}
.sel option, select option{
  background:#0f1421;
  color:var(--text);
}
.sel option:checked, select option:checked{
  background:#2a6df4;
  color:#ffffff;
}
