* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
}

header {
  margin-bottom: 28px;
}

header h1 {
  font-size: 32px;
  font-weight: 700;
}

header p {
  margin-top: 6px;
  color: #6b7280;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.filter {
  position: relative;
}

.filter label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

select, input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.college-section {
  margin-top: 24px;
}

.college-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.college-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.college-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.warning {
  margin-top: 8px;
  color: #b45309;
  font-size: 13px;
}

.hidden {
  display: none;
}

/* ---------- DROPDOWN ---------- */

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
}

.dropdown-item {
  padding: 10px 12px;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #f3f4f6;
}

/* ---------- CHART ---------- */

.chart-wrapper {
  height: 420px;
}

.disclaimer {
  background: #f9fafb;
  border-left: 4px solid #2563eb;
}

/* ---------- MOBILE FIXES ---------- */

@media (max-width: 768px) {
  header h1 {
    font-size: 24px;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .college-list {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 16px;
  }

  .chart-wrapper {
    height: 520px;
  }
}
