.hover-shadow {
  transition: all 0.3s ease;
}

.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.state-senate-list a, .state-house-list a {
  color: inherit;
}

.state-legislator-detail .social-links a {
  margin-right: 15px;
  font-size: 1.5rem;
}

.state-legislator-detail .contact-info {
  margin-top: 20px;
}

.state-legislator-detail .legislator-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Filter styles */
.controls-container {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.state-common-list .card {
  transition: all 0.3s ease;
}

.state-common-list .card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.no-results-message {
  padding: 15px;
  margin-top: 20px;
  text-align: center;
}

/* Highlight matching text */
.highlight {
  background-color: yellow;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .controls-container .row {
    margin-bottom: 10px;
  }
  
  .controls-container .col-md-6 {
    margin-bottom: 10px;
  }
}

.state-common-list .senate-listing h2 {
  font-size: 25px !important;
  font-weight: 500;
  color: #1f2d61;
}
.state-common-list .senate-listing  a {
  width: 100%;
}
.state-common-list .senate-listing a .card {
  border: none;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}
.state-common-list .senate-listing a .card .card-body .card-title {
  color: #1f2d61;
  font-size: 20px !important;
}
.state-common-list .senate-listing a .card .card-body .card-text strong {
  color: #1b1b1b;
  font-weight: 600;
}
.state-common-list .senate-listing a .card .card-body .card-text {
  font-size: 16px !important;
}
.state-common-list .senate-listing a .card .card-body {
  min-height: 180px;
}
.path-state-legislature .state-legislator-detail {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  padding: 20px 29px;
}
.path-state-legislature .state-legislator-detail .row .col-md-8 {
  background: #f2f4fb;
  padding: 20px;
}
.path-state-legislature .state-legislator-detail .row .col-md-4 {
  background: #f2f4fb;
  padding: 20px;
  text-align: center;
  margin-bottom: 0px !important;
}
.path-state-legislature .state-legislator-detail .row .col-md-4 .legislator-image {
  margin-bottom: 0px !important;
}
.path-state-legislature .state-legislator-detail .row .col-md-4 .contact-info h4 {
  color: #1f2d61;
  font-size: 22px !important;
}
.path-state-legislature .state-legislator-detail .row .col-md-4 .contact-info .list-unstyled li {
  color: #1b1b1b;
  text-align: left;
}
.path-state-legislature .state-legislator-detail .row .col-md-4 .contact-info .list-unstyled li strong {
  font-weight: 600;
}
.path-state-legislature .state-legislator-detail .row .col-md-8 h2 {
  color: #1f2d61;
  font-weight: 500;
  font-size: 28px !important;
}
.path-state-legislature .state-legislator-detail .row .col-md-8 .lead {
  color: #000;
  font-size: 17px !important;
}
.path-state-legislature .state-legislator-detail .row .col-md-8 .lead .badge {
  width: auto;
  font-weight: 500;
  font-size: 15px;
  padding: 5px 18px;
  margin-right: 8px;
}
.path-state-legislature .state-legislator-detail .row .col-md-8 .legislator-details .card .card-header {
  padding: 10px 10px;
  background: #1f2d61;
  color: #fff;
}
.path-state-legislature .state-legislator-detail .row .col-md-8 .legislator-details .card .card-header h3 {
  font-size: 18px !important;
}
.path-state-legislature .state-legislator-detail .row .col-md-8 .legislator-details .card {
  background: none;
  border-color: #d8d8d8;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}
.path-state-legislature .state-legislator-detail .row .col-md-8 .legislator-details .card .card-body {
  padding: 10px !important;
  background: none !important;
}
.path-state-legislature .state-legislator-detail .row .col-md-8 .legislator-details .card .card-body .list-unstyled li strong {
  font-weight: 600;
  color: #1b1b1b;
  width: 115px;
  display: inline-block;
  text-align: right;
  margin-right: 4px;
}
.path-state-legislature .state-legislator-detail .row .col-md-8 .legislator-details .card .card-body .list-unstyled li {
  color: #1b1b1b;
}
.path-state-legislature .state-legislator-detail .row .col-md-8 .mt-4 .btn.btn-secondary {
  color: #1f2d61;
  background: #c7d3ff;
  font-size: 16px;
  font-weight: 600;
  padding: 7px 20px;
  border: none;
}
.path-state-legislature .state-legislator-detail .row .col-md-4 .contact-info .list-unstyled li a {
  color: #1f2d61;
  font-size: 15px;
  font-weight: 500;
}

.state-common-list .controls-container {
  background: none;
  padding: 0px;
}
.state-common-list .controls-container .input-group .input-group-append #clear-filter {
  background: #e11e2d;
  border: none;
  color: #fff;
}
.state-common-list .controls-container .input-group #legislator-filter {
  border-radius: 0px;
  font-size: 16px;
  color: #000;
}

.state-common-list .controls-container .text-right .btn {
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 3px;
  background: #e11e2d;
}
.state-common-list .controls-container .text-right .btn:hover {
  background: #1f2d61;
}
.path-state-legislature .state-legislator-detail .row .col-md-4 .contact-info .list-unstyled li a {
  word-break: break-all;
}

/* Div-based table replacement for precinct data */
.precinct-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  overflow: hidden;
}

.precinct-header {
  display: flex;
  background-color: #343a40;
  color: white;
  font-weight: bold;
}

.precinct-row {
  display: flex;
  border-top: 1px solid #dee2e6;
}

.precinct-row:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

.precinct-cell {
  flex: 1;
  padding: 0.75rem;
  text-align: left;
}

/* Responsive styles for mobile */
@media screen and (max-width: 767px) {
  .precinct-header {
    display: none;
  }
  
  .precinct-row {
    flex-direction: column;
    border-bottom: 2px solid #4C5680;
    margin-bottom: 1rem;
  }
  
  .precinct-cell {
    display: flex;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #dee2e6;
  }
  
  .precinct-cell:before {
    content: attr(data-label);
    font-weight: bold;
    width: 40%;
    margin-right: 5%;
  }
  
  .precinct-cell:last-child {
    border-bottom: none;
  }
}

.path-state-legislature .state-legislator-detail .precinct-data .precinct-grid .precinct-row .precinct-cell a {
  text-decoration: underline;
}
.path-state-legislature .state-legislator-detail .precinct-data .precinct-grid .precinct-row .precinct-cell a:hover {
  text-decoration: none;
}
.path-state-legislature .state-legislator-detail .precinct-data .precinct-grid .precinct-row .precinct-cell a {
  text-decoration: underline;
  color: #444;
}

@media screen and (max-width: 767px) {
  .path-state-legislature .state-legislator-detail .row .col-md-8 {
      padding: 10px !important;
  }
  .path-state-legislature .state-legislator-detail {
      padding: 20px 15px !important;
  }
  .path-state-legislature .container {
      padding: 0px 12px !important;
  }
  .path-state-legislature .state-legislator-detail .row .col-md-4 .legislator-image {
      margin-bottom: 0px !important;
      width: 150px;
  }
  }

  .state-common-list .senate-listing a .card .card-body .card-text .badge {
    width: auto;
    float: none;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 14px;
}
