.dashboard-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  color: #f0f0f0;
  background-color: #1a1a1a;
}

.dashboard-header {
  margin-bottom: 30px;
}

.dashboard-title {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 24px;
}

.controls-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 15px;
  background: #2d2d2d;
  border-radius: 8px;
}

.source-group {
  flex-basis: 100%;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .source-group {
    flex-basis: auto;
    margin-bottom: 0;
  }
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group:not(:first-child) {
  flex-direction: row;
  align-items: center;
}

.control-group label {
  font-weight: 500;
  color: #f0f0f0;
}

.control-group select {
  padding: 8px 12px;
  border: 1px solid #444;
  border-radius: 4px;
  background: #333;
  color: #f0f0f0;
  min-width: 100px;
}

/* Source selector buttons */
.source-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
}

.source-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 2px solid #2196F3;
  border-radius: 8px;
  background: #2d2d2d;
  color: #2196F3;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 120px;
}

.source-button:hover {
  background: rgba(33, 150, 243, 0.1);
}

.source-button.active {
  background: #2196F3;
  color: white;
}

.source-icon {
  font-size: 1.2em;
}

/* Binance button specific styles */
.source-button:first-child {
  border-color: #F3BA2F;
  color: #F3BA2F;
}

.source-button:first-child:hover {
  background: rgba(243, 186, 47, 0.1);
}

.source-button:first-child.active {
  background: #F3BA2F;
  color: black;
}

/* CoinGecko button specific styles */
.source-button:last-child {
  border-color: #8DC647;
  color: #8DC647;
}

.source-button:last-child:hover {
  background: rgba(141, 198, 71, 0.1);
}

.source-button:last-child.active {
  background: #8DC647;
  color: white;
}

.refresh-button {
  padding: 8px 16px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.refresh-button:disabled {
  background: #555;
  cursor: not-allowed;
}

/* Loading and Error States */
.status-message {
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.loading-message {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-left: 4px solid #3498db;
}

.error-message {
  background-color: rgba(231, 76, 60, 0.2);
  color: #ff9999;
  border-left: 4px solid #e74c3c;
}

.error-icon {
  margin-right: 10px;
  font-size: 20px;
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid #ffffff;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

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

/* Data Display */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.data-card {
  background: #2d2d2d;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.data-card h3 {
  margin-top: 0;
  color: #f0f0f0;
}

.price-change-positive {
  color: #4caf50;
}

.price-change-negative {
  color: #f44336;
}

.data-container {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  overflow: auto;
  max-height: 400px;
}

.data-container table {
  width: 100%;
  border-collapse: collapse;
  color: #f0f0f0;
  font-family: 'Courier New', monospace;
}

.data-container th,
.data-container td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-container th {
  background-color: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}

.data-container tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.price-value {
  font-size: 24px;
  font-weight: 600;
  margin: 10px 0;
}

.price-change {
  font-size: 16px;
  font-weight: 500;
}
