html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 300px;
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  position: relative;
  z-index: 1001;
}

.sidebar h2 {
  margin-top: 0;
  color: #495057;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}

.sidebar h3 {
  color: #6c757d;
  margin-top: 20px;
}

.layer-list {
  list-style: none;
  padding: 0;
}

.layer-item {
  background: white;
  margin: 8px 0;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.layer-item.loaded {
  border-left: 4px solid #28a745;
  cursor: pointer;
}

.layer-item.loaded:hover {
  background: #f0f8ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translateX(2px);
}

.layer-item.loading {
  border-left: 4px solid #007bff;
  background: #f8f9ff;
}

.layer-item.error {
  border-left: 4px solid #dc3545;
  background: #fff8f8;
}

.layer-name {
  font-weight: 600;
  color: #495057;
}

.layer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.layer-info {
  font-size: 0.85em;
  color: #6c757d;
  margin-top: 4px;
}

.load-button {
  padding: 4px 8px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
  flex-shrink: 0;
}

.load-button:hover {
  background: #0056b3;
}

.load-button:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.unload-button {
  background: #dc3545;
}

.unload-button:hover {
  background: #c82333;
}

.feature-count {
  font-size: 0.8em;
  color: #28a745;
  font-weight: 500;
}

.loading-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 4px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.warning {
  color: #856404;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  margin-top: 4px;
}

.layer-id {
  font-size: 0.85em;
  color: #6c757d;
  font-family: monospace;
}

/* Layer toggle styling */
.layer-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.layer-toggle {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.layer-name {
  cursor: pointer;
  flex: 1;
}

.layer-item.hidden {
  opacity: 0.5;
}

.layer-item.hidden .layer-name {
  text-decoration: line-through;
  color: #6c757d;
}

.layer-item.hidden .layer-status {
  color: #6c757d !important;
}

.stats {
  background: white;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  margin-top: 20px;
}

#map {
  flex: 1;
  height: 100vh;
}

.leaflet-container {
  height: 100%;
  width: 100%;
}

/* Search and Filter Styling */
.search-section {
  background: white;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  margin-bottom: 20px;
}

.search-container {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

#search-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 14px;
}

#clear-search {
  padding: 8px 12px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

#clear-search:hover {
  background: #5a6268;
}

.search-results {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

#search-count {
  font-size: 13px;
  color: #6c757d;
  font-weight: 500;
}

/* Legend styling */
.legend {
  position: fixed;
  bottom: 20px;
  left: 340px; /* Position after sidebar (300px + 40px margin) */
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #dee2e6;
  max-width: 280px;
  z-index: 1000;
}

/* Mobile sidebar toggle button */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1002;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 18px;
  line-height: 1;
}

.sidebar-toggle:hover {
  background: #0056b3;
}

.sidebar-toggle:active {
  transform: scale(0.95);
}

/* Mobile overlay for sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.sidebar-overlay.active {
  display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
  .container {
    position: relative;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: block;
  }

  #map {
    width: 100%;
    margin-left: 0;
  }

  .legend {
    left: 20px;
    right: 20px;
    max-width: none;
    bottom: 80px;
  }

  .sidebar.active ~ .sidebar-toggle {
    left: 290px;
  }
}

.legend h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 8px;
}

.legend-rule {
  margin-bottom: 12px;
}

.legend-rule:last-child {
  margin-bottom: 0;
}

.legend-rule-title {
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  font-size: 11px;
}

.legend-item:last-child {
  margin-bottom: 0;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.legend-text {
  color: #495057;
  line-height: 1.3;
}

.legend.collapsed {
  padding: 8px 12px;
}

.legend.collapsed .legend-content {
  display: none;
}

.legend-toggle {
  cursor: pointer;
  user-select: none;
}

.legend-toggle::before {
  content: '−';
  font-weight: bold;
  margin-right: 5px;
}

.legend.collapsed .legend-toggle::before {
  content: '+';
}

/* Advanced Search Panel */
.advanced-search-toggle {
  width: 100%;
  margin: 10px 0;
  padding: 8px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #495057;
  transition: background-color 0.2s;
}

.advanced-search-toggle:hover {
  background: #e9ecef;
}

.advanced-search-panel {
  margin-top: 10px;
  padding: 15px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  max-height: 400px;
  overflow-y: auto;
}

.filter-section {
  margin-bottom: 20px;
}

.filter-section h4 {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 6px;
}

.filter-item {
  margin-bottom: 15px;
}

.filter-item label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #495057;
}

.filter-item-boolean label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.filter-item-boolean input[type='checkbox'] {
  margin-right: 6px;
}

.filter-item select,
.filter-item input[type='text'],
.filter-item input[type='number'] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ced4da;
  border-radius: 3px;
  font-size: 12px;
}

.filter-item select[multiple] {
  min-height: 80px;
}

.filter-item small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #6c757d;
}

.range-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-filter input {
  flex: 1;
}

.range-filter span {
  font-size: 12px;
  color: #6c757d;
}

.filter-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #dee2e6;
  text-align: center;
  color: #6c757d;
}

.info-text {
  text-align: center;
  padding: 20px;
  color: #6c757d;
  font-size: 13px;
}

/* Election Data Section */
.election-section {
  margin: 20px 0;
  padding: 15px;
  background: white;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.election-controls {
  margin: 10px 0;
}

.election-controls label {
  display: block;
  margin-bottom: 5px;
  color: #495057;
  font-weight: 500;
  font-size: 14px;
}

.election-controls select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: white;
  font-size: 14px;
  color: #495057;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.election-controls select:hover {
  border-color: #007bff;
}

.election-controls select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.race-summary {
  margin-top: 15px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #007bff;
}

.race-summary h4 {
  margin: 0 0 10px 0;
  color: #495057;
  font-size: 15px;
}

.race-summary .summary-stat {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  color: #6c757d;
}

.race-summary .summary-stat strong {
  color: #495057;
}

.race-summary .candidate-result {
  padding: 8px 0;
  border-bottom: 1px solid #dee2e6;
}

.race-summary .candidate-result:last-child {
  border-bottom: none;
}

.race-summary .candidate-name {
  font-weight: 500;
  color: #495057;
  font-size: 14px;
}

.race-summary .candidate-votes {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 13px;
  color: #6c757d;
}

.race-summary .vote-bar {
  height: 4px;
  background: #007bff;
  border-radius: 2px;
  margin-top: 4px;
  transition: width 0.3s ease;
}

/* Comparison Mode Styles */
.comparison-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.comparison-toggle:hover {
  background: #e9ecef;
}

.comparison-toggle input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}

.comparison-toggle span {
  font-weight: 500;
  color: #495057;
  font-size: 14px;
}

.comparison-summary,
.turnout-summary {
  margin-top: 15px;
  padding: 15px;
  background: #fff3cd;
  border-radius: 4px;
  border-left: 3px solid #ffc107;
}

.comparison-summary h4,
.turnout-summary h4 {
  margin: 0 0 12px 0;
  color: #856404;
  font-size: 15px;
}

.comparison-stat {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid #f8e5a0;
}

.comparison-stat:last-child {
  border-bottom: none;
}

.comparison-stat .label {
  color: #856404;
  font-weight: 500;
}

.comparison-stat .value {
  color: #856404;
  font-weight: 600;
}

.comparison-stat .increase {
  color: #28a745;
}

.comparison-stat .decrease {
  color: #dc3545;
}

.comparison-legend {
  margin-top: 12px;
  padding: 10px;
  background: white;
  border-radius: 4px;
  font-size: 12px;
}

.comparison-legend-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #495057;
}

.comparison-legend-item {
  display: flex;
  align-items: center;
  margin: 4px 0;
}

.comparison-legend-color {
  width: 20px;
  height: 12px;
  margin-right: 8px;
  border-radius: 2px;
}

/* Precinct Summary Panel */
.precinct-summary-panel {
  position: fixed;
  top: 0;
  right: -600px;
  width: 600px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.precinct-summary-panel.active {
  right: 0;
}

.precinct-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #007bff;
  color: white;
  border-bottom: 1px solid #dee2e6;
}

.precinct-summary-header h2 {
  margin: 0;
  font-size: 24px;
  color: white;
  border: none;
  padding: 0;
}

.close-button {
  background: transparent;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.close-button:hover {
  opacity: 0.7;
}

.precinct-summary-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.summary-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dee2e6;
}

.summary-section:last-child {
  border-bottom: none;
}

.summary-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #495057;
  font-size: 20px;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.summary-table th {
  background: #f8f9fa;
  padding: 10px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
  font-size: 13px;
}

.summary-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.summary-table tr:last-child td {
  border-bottom: none;
}

.race-count {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 15px;
}

.race-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
}

.race-card h4 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #007bff;
  font-size: 16px;
}

.race-results {
  width: 100%;
  border-collapse: collapse;
}

.race-results td {
  padding: 6px 0;
  font-size: 14px;
}

.race-results .candidate-name {
  font-weight: 500;
}

.race-results .candidate-votes {
  text-align: right;
  padding-right: 15px;
}

.race-results .candidate-percent {
  text-align: right;
  color: #6c757d;
  width: 60px;
}

.race-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid #dee2e6;
  font-weight: 600;
  font-size: 14px;
}

.comparison-section {
  background: #fff3cd;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #ffc107;
}

.comparison-stat-large {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  margin: 10px 0;
}

.comparison-stat-large .stat-label {
  font-weight: 600;
}

.comparison-stat-large .stat-value {
  font-size: 24px;
  font-weight: 700;
}

.comparison-stat-large .stat-value.increase {
  color: #28a745;
}

.comparison-stat-large .stat-value.decrease {
  color: #dc3545;
}

/* View Precinct Details button in popups */
.view-precinct-details {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.view-precinct-details:hover {
  background: #0056b3;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .precinct-summary-panel {
    width: 100%;
    right: -100%;
  }
}

/* Filter Section */
.filter-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.filter-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #495057;
  font-size: 18px;
}

.filter-controls {
  margin-bottom: 15px;
}

.filter-controls label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 13px;
  color: #495057;
}

.filter-controls input[type="text"],
.filter-controls input[type="number"],
.filter-controls select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.filter-controls input[type="text"]:focus,
.filter-controls input[type="number"]:focus,
.filter-controls select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-inputs input {
  flex: 1;
  width: auto;
}

.range-inputs span {
  color: #6c757d;
  font-size: 13px;
}

.filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.filter-results {
  margin-top: 15px;
  padding: 12px;
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 4px;
  font-size: 13px;
}

.filter-results strong {
  color: #0c5460;
}

.filter-highlight {
  fill-opacity: 1 !important;
  stroke: #007bff !important;
  stroke-width: 3 !important;
}

.filter-dimmed {
  fill-opacity: 0.2 !important;
  stroke-opacity: 0.3 !important;
}

/* About Modal Styles */
.about-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.about-modal.active {
  display: block;
}

.about-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.about-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.about-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid #e9ecef;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.about-modal-header h2 {
  margin: 0;
  font-size: 1.5em;
  color: white;
}

.about-modal-tabs {
  display: flex;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
  padding: 0 24px;
}

.tab-button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.tab-button:hover {
  color: #495057;
  background: rgba(0, 0, 0, 0.03);
}

.tab-button.active {
  color: #667eea;
  border-bottom-color: #667eea;
  background: white;
}

.about-modal-body {
  overflow-y: auto;
  padding: 24px;
  flex: 1;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section Styles */
.about-section h3,
.data-section h3,
.learn-section h3,
.contribute-section h3 {
  color: #495057;
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.2em;
}

.about-section p,
.data-section p,
.learn-section p,
.contribute-section p {
  line-height: 1.6;
  color: #495057;
  margin-bottom: 12px;
}

.about-section ul,
.learn-section ul,
.contribute-section ul {
  line-height: 1.8;
  color: #495057;
}

.about-section a,
.data-section a,
.learn-section a,
.contribute-section a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.about-section a:hover,
.data-section a:hover,
.learn-section a:hover,
.contribute-section a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.mission-box {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  margin: 16px 0;
}

.mission-box h4 {
  margin-top: 0;
  color: #667eea;
}

/* Data Access Styles */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.download-card {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.download-card h4 {
  margin-top: 0;
  color: #495057;
  font-size: 1em;
}

.download-button {
  display: block;
  background: #667eea;
  color: white !important;
  padding: 10px 16px;
  border-radius: 6px;
  text-align: center;
  margin-top: 8px;
  text-decoration: none !important;
  font-size: 14px;
  transition: background 0.2s;
}

.download-button:hover {
  background: #764ba2;
}

.api-docs {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
}

.api-docs code {
  display: block;
  background: #495057;
  color: #00d084;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 12px 0 4px 0;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 13px;
}

.api-docs p {
  margin: 0 0 8px 0;
  padding-left: 12px;
  color: #6c757d;
  font-size: 14px;
}

.small-text {
  font-size: 13px;
  color: #6c757d;
}

/* Learn Section Styles */
.learn-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.learn-card h4 {
  margin-top: 0;
  color: #667eea;
}

.example-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 12px;
  border-radius: 6px;
  margin: 12px 0;
  font-size: 14px;
}

.color-sample {
  display: inline-block;
  width: 20px;
  height: 14px;
  border: 1px solid #ccc;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 2px;
}

/* Contribute Section Styles */
.contribute-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.contribute-card h4 {
  margin-top: 0;
  color: #495057;
}

.contribute-button {
  display: inline-block;
  background: #28a745;
  color: white !important;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 500;
  margin-top: 8px;
  transition: background 0.2s;
}

.contribute-button:hover {
  background: #218838;
}

/* About Button in Sidebar */
.about-button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  transition: all 0.2s;
}

.about-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.about-button:active {
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .about-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .about-modal-tabs {
    padding: 0 12px;
  }

  .tab-button {
    padding: 10px 8px;
    font-size: 13px;
  }

  .about-modal-body {
    padding: 16px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }
}
