body{
  font-family:Arial, Helvetica, sans-serif;
  margin:0;
  background:#f6f6f8;
}

header{
  text-align:center;
  padding:18px 0;
   text-align:center;
  font-size:30px;
  font-weight:700;
  letter-spacing:-0.5px;
}

h1{
  margin:0;
  
}

.layout{
  display:flex;
  gap:30px;
  padding:20px 30px;
}

/* SIDEBAR */

.sidebar{
  width:260px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.filter-section h3{
  margin-bottom:6px;
  margin-top:-10px;
  font-size:16px;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:#555;
}

select,
input{
  width:93%;
  padding:7px;
  border-radius:6px;
  border:1px solid #ccc;
  font-size:14px;
}


/* TOPIC BUTTONS */

#topicFilters{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.topic-chip{
  border:1px solid #ccc;
  background:#f5f5f5;
  padding:6px 10px;
  border-radius:16px;
  cursor:pointer;
  text-align:left;
  font-size:12px;
  transition:all .15s;
}

.topic-chip:hover{
  background:#e8e8e8;
}

/* SELECTED TOPIC COLOR (NEW GREY) */

.topic-chip.active{
  background:#d9d9d9;
  border-color:#cfcfcf;
  color:black;
}

/* RESULTS GRID */

main{
  flex:1;
}

#results{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

/* DATASET CARDS */

.dataset-card{
  background:#e9e9ec;
  padding:12px;            /* ↓ was 18px */
  border-radius:10px;      /* slightly tighter */
  border-left:4px solid #5a84f2;  /* thinner line */
}

.dataset-id{
  font-weight:600;
  font-size:15px;   /* ↓ smaller */
}

.dataset-meta{
  margin-top:4px;
  color:#666;
  font-size:12px;   /* ↓ smaller */
}

/* DATASET CARD COLORS */

.dataset-card.main { border-left: 6px solid #5a84f2; }
.dataset-card.trend { border-left: 6px solid #f0a43b; }
.dataset-card.state { border-left: 6px solid #3bb273; }

/* MENU OPTION COLORS */

.option-main { color:#5a84f2; font-weight:600; }
.option-trend { color:#f0a43b; font-weight:600; }
.option-state { color:#3bb273; font-weight:600; }

/* DROPDOWN COLORS */

.menu-main{
  background:#5a84f2;
  color:black;
  font-weight:600;
}

.menu-trend{
  background:#f0a43b;
  color:black;
  font-weight:600;
}

.menu-state{
  background:#3bb273;
  color:black;
  font-weight:600;
}

/* COLLECTION BUTTONS */

.collection-buttons{
  display:flex;
  gap:6px;
}

.collection-btn{
  padding:6px 12px;
  border-radius:6px;
  border:none;
  cursor:pointer;
  font-weight:600;
  background:#eee;
  font-size:13px;
}

.collection-btn.active{
  box-shadow:0 0 0 2px rgba(0,0,0,.2) inset;
}

/* BUTTON COLORS */

.main-btn { background:#5a84f2; color:white; }
.trend-btn { background:#f0a43b; color:white; }
.state-btn { background:#3bb273; color:white; }

/* TOPIC FILTER WRAP */

.topic-filters{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:0px;
}

select{
  width:100%;
  padding:10px;
  border-radius:8px;
  border:1px solid #ccc;
  font-weight:1000;
}

.header-row{
  position:relative;

  padding:20px 20px 25px 20px;  /* extra bottom space */
  margin-bottom:20px;
  padding-bottom: 70px;
}

/* divider line */
.header-row::after{
  content:"";
  position:absolute;
  left:20px;
  right:20px;
  bottom:0;
  height:2px;
  background:#ddd;
}
/* center title */
.header-row h1{
  margin:0;
   text-align:center;
  font-size:40px;
  font-weight:700;
  letter-spacing:-0.5px;
}

/* position description top-left */
.info-box{
  position:absolute;
  top:18px;
  left:20px;

  max-width:420px;          /* controls wrapping */
  line-height:1.6;          /* smoother spacing */
  
  background:#e6e6e6;
  border:1px solid #ccc;
  padding:8px 12px;
  border-radius:6px;

  font-size:14px;
  color:#222;

  text-align:left;          /* ensures clean alignment */
}

/* link styling */
.info-box a{
  color:#1a73e8;          /* standard link blue */
  font-weight:600;
  text-decoration:underline;
}

.info-box a:hover{
  text-decoration:underline;
  opacity:0.8;
}

.search-section h3{
  margin-top:20px;
}
