* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #1c1c1c;
  line-height: 1.6;
}
main.legilist-dashboard {
  padding: 1.5rem 1rem;
  max-width: 960px;
  margin: auto;
}
.dashboard-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
  color: #003366;
}
/* Form Styling */
.address-box {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}
.address-form .form-row {
  margin-bottom: 1.2rem;
}
.address-form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: #333;
}
.address-form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}
.submit-btn {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  background: #004080;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}
.submit-btn:hover {
  background: #002c5a;
}
.loading-msg {
  text-align: center;
  font-style: italic;
  color: #555;
  margin-top: 1rem;
}
/* Legislator Cards */
.legislator-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.profile-card {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.profile-card:hover {
  transform: scale(1.01);
}
.photo-column {
  flex: 0 0 110px;
  background: #f1f1f1;
}
.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.info-column {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.legislator-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 0.5rem;
}
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}
.info-list .label {
  font-weight: 600;
  color: #444;
}


/* Hidden Class */
.hidden {
  display: none !important;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-inline: 1rem;
}
.dashboard-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  line-height: 1.2;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.section-header .section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #003366;
  margin: 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.reset-btn-icon {
  background: none;
  border: none;
  font-size: 1.25rem;
  padding: 0.4rem;
  color: #b30000;
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reset-btn-icon:hover {
  color: #800000;
}
tr.clickable-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}

tr.clickable-row:hover {
  background-color: #f5f5f5;
}

tr.clickable-row::after {
  content: '›';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  font-size: 18px;
  pointer-events: none;
}

td:last-child {
  padding-right: 24px;
}

@media (min-width: 600px) {
  .section-header .section-title {
    font-size: 1.4rem;
  }
  .dashboard-title {
    font-size: 1.8rem;
  }
  .reset-btn-icon {
    font-size: 1.5rem;
  }
  .profile-card {
    flex-direction: row;
  }
  .photo-column {
    flex: 0 0 140px;
  }
  .legislator-name {
    font-size: 1.25rem;
  }
}