.edge-scorecard-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 20px;
}

.edge-scorecard-card {
  background: #ffffff;
  border: 1px solid #929090;
  border-radius: 8px;
  width: 300px;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.edge-scorecard-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.edge-scorecard-chamber {
  font-size: 13px;
  color: #929090;
  font-weight: normal;
  margin-bottom: 4px;
}

.edge-scorecard-name {
  font-size: 16px;
  font-weight: bold;
  background-color: #000000;
  color: #ffffff;
  padding: 6px;
  width: 100%;
  letter-spacing: 0.5px;
}

.edge-scorecard-subinfo {
  font-size: 14px;
  color: #929090;
  margin-bottom: 10px;
}

.edge-scorecard-scores {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 15px 0;
}

.score-block {
  text-align: center;
}

.label {
  font-size: 12px;
  color: #929090;
  margin-bottom: 4px;
}

.score-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #929090;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

.grade-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voting-record-link {
  font-size: 14px;
  color: #929090;
  margin: 8px 0;
}

.voting-record-link a {
  color: #929090;
  text-decoration: none;
  font-weight: normal;
}

.edge-scorecard-source {
  font-size: 12px;
  margin-top: 5px;
  color: #929090;
}

hr {
  border: none;
  border-top: 1px solid #929090;
  width: 100%;
  margin: 10px 0;
}

/* Filter bar (optional) */
.edge-scorecard-filters {
  text-align: center;
  margin-bottom: 20px;
}

.edge-scorecard-filters select,
.edge-scorecard-filters input[type="text"] {
  margin: 5px;
  padding: 6px;
  font-size: 14px;
}

.edge-scorecard-filters button {
  margin: 5px;
  padding: 6px 12px;
  font-size: 14px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.edge-scorecard-filters button:hover {
  background: #333;
}

@media (max-width: 768px) {
  .edge-scorecard-card {
    width: 100%;
  }
}

/* Enhanced Bill Modal Styles */
.edge-bill-loading {
  text-align: center;
  padding: 40px 20px;
}

.edge-bill-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f0f0f0;
  border-top-color: #333;
  border-radius: 50%;
  margin: 0 auto 15px;
  animation: edge-spin 0.8s linear infinite;
}

@keyframes edge-spin {
  to { transform: rotate(360deg); }
}

.edge-bill-error {
  color: #c62828;
  padding: 20px;
  text-align: center;
}

.edge-bill-modal-enhanced {
  padding: 5px;
}

.edge-bill-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.edge-bill-id {
  font-size: 1.4em;
  font-weight: bold;
  color: #1a73e8;
  margin: 0;
}

.edge-bill-state-badge {
  background: #e8f0fe;
  color: #1a73e8;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
}

.edge-bill-title {
  font-size: 1.1em;
  font-weight: normal;
  color: #333;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.edge-bill-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 15px;
}

.edge-bill-status.status-passed {
  background: #e8f5e9;
  color: #2e7d32;
}

.edge-bill-status.status-failed {
  background: #ffebee;
  color: #c62828;
}

.edge-bill-status.status-pending {
  background: #fff8e1;
  color: #f57f17;
}

/* Tabs */
.edge-bill-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 15px;
}

.edge-bill-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95em;
  color: #666;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.edge-bill-tab:hover {
  color: #333;
  background: #f5f5f5;
}

.edge-bill-tab.active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
  font-weight: 600;
}

.edge-bill-tab-content {
  min-height: 150px;
}

.edge-bill-tab-pane {
  display: none;
}

.edge-bill-tab-pane.active {
  display: block;
}

.edge-bill-section {
  margin-bottom: 15px;
}

.edge-bill-section h5 {
  font-size: 0.9em;
  color: #666;
  margin: 0 0 5px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.edge-bill-section p {
  margin: 0;
  color: #333;
  line-height: 1.5;
}

.edge-bill-date {
  color: #888;
  font-size: 0.9em;
}

.edge-bill-link {
  display: inline-block;
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}

.edge-bill-link:hover {
  text-decoration: underline;
}

.edge-bill-empty {
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

/* Timeline */
.edge-bill-timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid #e0e0e0;
  max-height: 300px;
  overflow-y: auto;
}

.edge-bill-timeline-item {
  position: relative;
  padding: 0 0 15px 15px;
}

.edge-bill-timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: #1a73e8;
  border-radius: 50%;
}

.edge-bill-timeline-date {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 3px;
}

.edge-bill-timeline-content {
  color: #333;
  line-height: 1.4;
}

/* Sponsors list */
.edge-bill-sponsors-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edge-bill-sponsor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 6px;
}

.edge-bill-sponsor-name {
  font-weight: 500;
  color: #333;
}

.edge-bill-sponsor-party {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.8em;
  font-weight: 600;
}

.edge-bill-sponsor-party.party-d,
.edge-bill-sponsor-party.party-democrat {
  background: #e3f2fd;
  color: #1565c0;
}

.edge-bill-sponsor-party.party-r,
.edge-bill-sponsor-party.party-republican {
  background: #ffebee;
  color: #c62828;
}

.edge-bill-sponsor-party.party-i,
.edge-bill-sponsor-party.party-independent {
  background: #f3e5f5;
  color: #7b1fa2;
}

.edge-bill-sponsor-type {
  color: #888;
  font-size: 0.85em;
  margin-left: auto;
}
