/* ===== Legislative Content Styles ===== */

/* Legislative Panel (similar to civic panel) */
.legislative-panel {
  background: rgba(30, 60, 114, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  color: white;
  max-width: 1200px;
  margin: 20px auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.legislative-panel h2 {
  color: white;
  border-bottom: 3px solid rgba(76, 175, 80, 0.5);
  padding-bottom: 15px;
  margin-bottom: 25px;
  font-size: 2em;
  display: flex;
  align-items: center;
  gap: 15px;
}

.legislative-panel h2::before {
  content: "🏛️";
  font-size: 1.2em;
}

/* Bill Cards */
.bill-card {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.bill-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(76, 175, 80, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.bill-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.bill-number {
  font-size: 1.3em;
  font-weight: bold;
  color: #4CAF50;
  font-family: monospace;
}

.bill-status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bill-status.introduced {
  background: rgba(102, 126, 234, 0.3);
  color: #a5b4fc;
}

.bill-status.committee {
  background: rgba(251, 191, 36, 0.3);
  color: #fcd34d;
}

.bill-status.passed-house,
.bill-status.passed-senate {
  background: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.bill-status.enacted {
  background: rgba(76, 175, 80, 0.3);
  color: #86efac;
}

.bill-status.vetoed,
.bill-status.failed {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.bill-title {
  font-size: 1.2em;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
  line-height: 1.4;
}

.bill-meta {
  display: flex;
  gap: 20px;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 12px;
  flex-wrap: wrap;
}

.bill-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bill-sponsor {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.bill-subjects {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.subject-tag {
  background: rgba(102, 126, 234, 0.3);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: capitalize;
}

.bill-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bill-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.bill-btn.follow {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.bill-btn.follow:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.bill-btn.following {
  background: rgba(76, 175, 80, 0.3);
  color: white;
}

.bill-btn.view {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.bill-btn.view:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Search Bar */
.legislative-search {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.search-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 12px 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1em;
}

.search-input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.search-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 10px 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.95em;
  cursor: pointer;
}

.search-btn {
  padding: 12px 25px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* Admin Import Panel */
.admin-import-panel {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}

.admin-import-panel h3 {
  color: #fca5a5;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-import-panel h3::before {
  content: "⚠️";
}

.import-controls {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.import-btn {
  padding: 12px 25px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.import-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.import-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.import-status {
  flex: 1;
  min-width: 300px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.9em;
  color: #86efac;
  max-height: 200px;
  overflow-y: auto;
}

/* Loading Spinner */
.legislative-loading {
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2em;
}

.legislative-loading::before {
  content: "⏳";
  font-size: 2em;
  display: block;
  margin-bottom: 15px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Empty State */
.no-bills {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.6);
}

.no-bills::before {
  content: "📭";
  font-size: 4em;
  display: block;
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bill-header {
    flex-direction: column;
    gap: 10px;
  }
  
  .bill-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .search-row {
    flex-direction: column;
  }
  
  .search-input {
    width: 100%;
  }
}