/* CSS variables now consolidated in style.css */

/* Import Lato font */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: normal;
  font-variation-settings: normal;
  line-height: 1.5;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
}

/* Hero Section Styles */
.hero-section {
  text-align: center;
  padding: 4rem 0 2rem;
  position: relative;
}

/* Section Title Styles */
.section-title-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-heading {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: 0 0 30px rgba(0, 255, 163, 0.3);
}

.title-underline {
  height: 4px;
  width: 80px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  margin: 0 auto;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 1.5rem auto;
  color: rgba(255, 255, 255, 0.8);
}

/* Update container width to be 100% at all screen sizes */
.container-fluid {
  width: 100% !important;
  max-width: 100% !important;
}

.container {
  width: 100% !important;
  max-width: 100% !important;
}

/* Price Feed Container styles moved to crypto-table-enhanced.css */

/* Smooth table update styles to prevent flicker/overlay */
#price-body {
  transition: none !important; /* Disable transitions during updates */
  transform: translateZ(0); /* Force GPU acceleration */
  backface-visibility: hidden; /* Prevent flicker */
}

#price-table {
  table-layout: fixed; /* Prevent layout shifts */
  width: 100%;
}

/* Prevent double rendering artifacts */
.crypto-row {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.search-container {
  margin-bottom: 1.5rem !important;
  position: relative !important;
}

#symbol-search {
  width: 100% !important;
  padding: 1rem 1.5rem !important;
  font-size: 1rem !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  background: var(--glass-background) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: var(--text-color) !important;
  box-shadow: var(--glass-shadow) !important;
}

#symbol-search:focus {
  outline: none !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.2) !important;
}

#symbol-search::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.search-icon {
  position: absolute !important;
  right: 1.25rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Table Styles moved to crypto-table-enhanced.css */

/* Coin Cell Styles moved to crypto-table-enhanced.css */

/* Price and Change Values - Updated to match screenshot */
.price-value {
  font-weight: 600 !important;
  color: var(--text-color) !important;
  text-align: right !important;
  font-size: 1rem !important;
}

/* Enhanced price change containers */
.price-change-container {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  min-width: 80px !important;
  animation-fill-mode: both !important;
  transition: all 0.2s ease !important;
}

.price-arrow {
  margin-right: 4px !important;
  font-size: 10px !important;
  opacity: 0.8 !important;
}

.price-up-animation {
  animation: priceUpEntry var(--animation-delay, 0s) ease-out forwards !important;
}

.price-down-animation {
  animation: priceDownEntry var(--animation-delay, 0s) ease-out forwards !important;
}

@keyframes priceUpEntry {
  0% { 
    opacity: 0; 
    transform: translateY(5px); 
    color: transparent;
  }
  50% { 
    opacity: 0.7; 
    transform: translateY(0); 
    color: #00ff88;
  }
  100% { 
    opacity: 1; 
    transform: translateY(0); 
    color: inherit;
  }
}

@keyframes priceDownEntry {
  0% { 
    opacity: 0; 
    transform: translateY(-5px); 
    color: transparent;
  }
  50% { 
    opacity: 0.7; 
    transform: translateY(0); 
    color: #ff3547;
  }
  100% { 
    opacity: 1; 
    transform: translateY(0); 
    color: inherit;
  }
}

.change-value {
  font-weight: 600 !important;
  font-size: 14px !important;
  display: inline !important;
  text-align: right !important;
}

.change-positive, .positive {
  color: #15803d !important;
}

.change-positive-medium {
  color: #16a34a !important;
  font-weight: 700 !important;
}

.change-positive-high {
  color: #22c55e !important;
  font-weight: 700 !important;
}

.change-negative, .negative {
  color: #ff3547 !important;
}

.change-negative-medium {
  color: #dc2626 !important;
  font-weight: 700 !important;
}

.change-negative-high {
  color: #ef4444 !important;
  font-weight: 700 !important;
}

/* Price value animations */
.price-value {
  transition: color 0.3s ease !important;
}

.price-up {
  animation: pulse-green 3s ease-out !important;
}

.price-down {
  animation: pulse-red 3s ease-out !important;
}

@keyframes pulse-green {
  0% { color: #00ff88; text-shadow: 0 0 8px rgba(0, 255, 136, 0.6); }
  30% { color: #00ff88; text-shadow: 0 0 8px rgba(0, 255, 136, 0.6); }
  70% { color: rgba(0, 255, 136, 0.8); text-shadow: 0 0 4px rgba(0, 255, 136, 0.3); }
  100% { color: inherit; text-shadow: none; }
}

@keyframes pulse-red {
  0% { color: #ff3547; text-shadow: 0 0 8px rgba(255, 53, 71, 0.6); }
  30% { color: #ff3547; text-shadow: 0 0 8px rgba(255, 53, 71, 0.6); }
  70% { color: rgba(255, 53, 71, 0.8); text-shadow: 0 0 4px rgba(255, 53, 71, 0.3); }
  100% { color: inherit; text-shadow: none; }
}

/* Market Cap Column */
.market-cap-value {
  font-weight: 500 !important;
  color: var(--secondary-text) !important;
  text-align: right !important;
  font-size: 0.9rem !important;
}

.price-change {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  display: block !important;
  text-align: right !important;
}

/* Advanced sentiment visualization styling */
.sentiment-tooltip {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  cursor: help !important;
  min-width: 140px !important;
}

.sentiment-value {
  padding: 6px 12px !important;
  border-radius: 16px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  white-space: nowrap !important;
  margin-bottom: 4px !important;
  text-align: center !important;
  min-width: 120px !important;
  transition: all 0.2s ease !important;
}

.sentiment-indicator {
  width: 100% !important;
  height: 8px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
  position: relative !important;
  overflow: hidden !important;
  margin-bottom: 2px !important;
}

.sentiment-visual {
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, 
    #c0392b 0%, 
    #e74c3c 20%, 
    #f1c40f 50%, 
    #2ecc71 80%, 
    #00a651 100%) !important;
  position: relative !important;
}

.sentiment-marker {
  position: absolute !important;
  top: -2px !important;
  width: 4px !important;
  height: 12px !important;
  background: #ffffff !important;
  border-radius: 2px !important;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5) !important;
  transform: translateX(-50%) !important;
  transition: left 0.3s ease !important;
}

.sentiment-tooltip-text {
  font-size: 0.7rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  text-align: center !important;
}

.sentiment-tooltip:hover .sentiment-tooltip-text {
  color: var(--primary-color) !important;
}

/* Sentiment color classes */
.sentiment-very-bullish {
  color: #ffffff !important;
  background: linear-gradient(135deg, #00a651, #006400) !important;
  box-shadow: 0 3px 10px rgba(0, 166, 81, 0.5) !important;
  border: 1px solid #008a44 !important;
}

.sentiment-bullish {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.4) !important;
  border: 1px solid #25a65b !important;
}

.sentiment-slightly-bullish {
  color: #ffffff !important;
  background: linear-gradient(135deg, #6ad69c, #52be80) !important;
  box-shadow: 0 2px 6px rgba(106, 214, 156, 0.3) !important;
  border: 1px solid #5cb894 !important;
}

.sentiment-neutral {
  color: #2c3e50 !important;
  background: linear-gradient(135deg, #f4d03f, #f1c40f) !important;
  box-shadow: 0 2px 6px rgba(241, 196, 15, 0.3) !important;
  border: 1px solid #e1b70f !important;
}

.sentiment-bearish {
  color: #ffffff !important;
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4) !important;
  border: 1px solid #c23321 !important;
}

.sentiment-very-bearish {
  color: #ffffff !important;
  background: linear-gradient(135deg, #c0392b, #a8341d) !important;
  box-shadow: 0 3px 10px rgba(192, 57, 43, 0.5) !important;
  border: 1px solid #a13328 !important;
}

.volume-value {
  font-weight: 500 !important;
  color: var(--secondary-text) !important;
  text-align: right !important;
  font-size: 0.9rem !important;
}

.sort-icon {
  cursor: pointer !important;
  user-select: none !important;
  padding-left: 8px !important;
  font-size: 0.8rem !important;
  opacity: 0.7 !important;
}

.sort-icon:hover {
  opacity: 1 !important;
}

.sort-active {
  opacity: 1 !important;
  color: var(--primary-color) !important;
}

/* Center the load more button */
.text-center {
  text-align: center !important;
}

/* Style the load more button */
#load-more-button {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color)) !important;
  border: none !important;
  padding: 10px 30px !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  margin: 20px auto !important;
}

#load-more-button:hover {
  box-shadow: 0 4px 15px rgba(0, 255, 163, 0.3) !important;
}

/* Clean up loading indicator */
#loading-indicator {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 30px !important;
}

.loading-spinner {
  border: 3px solid rgba(0, 255, 163, 0.3) !important;
  border-top: 3px solid var(--primary-color) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  animation: spin 1s linear infinite !important;
  margin-bottom: 15px !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Make sure the table takes full width - REMOVE SCROLLBAR */
.table-responsive {
  width: 100% !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  overflow: visible !important;
  -webkit-overflow-scrolling: unset !important;
}

#price-table {
  width: 100% !important;
}

/* Market stats section */
.market-stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem auto;
  max-width: 100%;
  background-color: var(--primary-background);
  border-radius: 12px;
  padding: 15px;
}

@media (min-width: 1280px) {
  .market-stats-container {
    max-width: 1280px;
  }
}

.market-filter-tabs {
  margin: 2rem auto;
  max-width: 600px;
}

.market-filter-tabs .nav-link {
  color: var(--secondary-text);
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  margin: 0 0.25rem;
}

.market-filter-tabs .nav-link:hover {
  color: var(--text-color);
}

.market-filter-tabs .nav-link.active {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  color: var(--text-color);
  box-shadow: 0 4px 15px rgba(0, 255, 163, 0.2);
}

.stat-card {
  padding: 1.25rem;
}

.stat-title {
  font-size: 0.9rem;
  color: var(--secondary-text);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
}

/* .stat-change - REMOVED: Conflicted with standardized inline styling */

.stat-change-up {
  color: var(--primary-color);
}

.stat-change-down {
  color: var(--error-color);
}

/* Status messages */
#api-status {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(40, 45, 50, 0.4);
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

#connection-status {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--secondary-text);
}

.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-indicator.connected {
  background-color: var(--primary-color);
  box-shadow: 0 0 5px var(--primary-color);
}

.status-indicator.disconnected {
  background-color: var(--error-color);
  box-shadow: 0 0 5px var(--error-color);
}

.status-indicator.online {
  background-color: #2ecc71;
}

.status-indicator.offline {
  background-color: #e74c3c;
}

#update-status {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--secondary-text);
  text-align: right;
}

/* Error message styles */
.error-message {
  background-color: rgba(255, 55, 55, 0.2) !important;
  color: #ff5555 !important;
  padding: 15px !important;
  border-radius: 12px !important;
  margin: 20px 0 !important;
  text-align: center !important;
}

/* Top Performers styling - matching existing design */
.performers-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 5px 0;
}

.performers-section {
  flex: 1;
}

.performers-header {
  display: none;
}

.gainers .performers-header {
  color: var(--success-color, #00c853);
}

.losers .performers-header {
  color: var(--danger-color, #ff3547);
}

.performers-header i {
  font-size: 0.8rem;
}

.performers-list {
  display: flex;
  flex-direction: column;
  gap: 0; /* Removed gap for tight financial data list */
}

.performer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  background-color: rgba(40, 45, 50, 0.1);
}

.performer-item:hover {
  background-color: var(--primary-background);
}

.performer-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.performer-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
}

.performer-symbol {
  font-weight: 600;
  font-size: 0.9rem;
}

.performer-change {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.performer-change.positive {
  background-color: rgba(0, 200, 83, 0.15);
  color: var(--success-color, #00c853);
}

.performer-change.negative {
  background-color: rgba(255, 53, 71, 0.15);
  color: var(--danger-color, #ff3547);
}

.performer-item.skeleton {
  height: 32px;
  overflow: hidden;
  position: relative;
}

.performer-skeleton-content {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.performer-item.empty {
  justify-content: center;
  padding: 10px;
  color: var(--text-muted, #6c757d);
  font-style: italic;
}

/* Trading controls styles */
.trading-controls {
  background-color: rgba(40, 45, 50, 0.8);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.trading-controls-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

.trading-controls-status {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.trading-controls-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 5px 10px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.btn-success {
  background-color: #2ecc71;
  color: white;
}

.btn-danger {
  background-color: #e74c3c;
  color: white;
}

/* Info icon and tooltip styles */
.info-icon {
  display: inline-block;
  margin-left: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  cursor: help;
  position: relative;
}

.info-icon:hover::after {
  content: attr(data-tooltip);
  position: fixed; /* Use fixed positioning to ensure it's always visible */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center in viewport */
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: normal;
  white-space: normal;
  width: auto;
  max-width: 80vw; /* Responsive width */
  min-width: 200px;
  z-index: 10000; /* Very high z-index to ensure visibility */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  text-align: center;
  overflow-wrap: break-word; /* Allow word wrapping */
  word-break: normal;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.info-icon:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
  z-index: 1000;
  pointer-events: none;
}

/* Ad space styles */
.ad-space {
  display: flex;
  flex-direction: column;
}

.ad-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.ad-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .market-stats-container {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .gauge-wrapper {
    height: 100px;
  }
  
  .gauge-container {
    height: 80px;
  }
  
  .score-card {
    padding: 6px 12px;
  }
  
  .score {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .market-stats-container {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  #price-table thead th,
  #price-table tbody td {
    padding: 0.75rem 1rem !important;
  }
  
  .coin-icon {
    width: 28px !important;
    height: 28px !important;
  }
  
  .sort-icon {
    display: none !important;
  }
  
  /* Ensure table is properly scrollable on mobile */
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* Ensure all text is visible */
  .coin-name, .coin-symbol {
    white-space: normal !important;
    word-break: break-word !important;
  }
  
  /* Make icons smaller on mobile */
  .coin-icon {
    width: 20px !important;
    height: 20px !important;
  }
  
  /* Adjust font sizes for better mobile viewing */
  .coin-name {
    font-size: 0.8rem !important;
  }
  
  .coin-symbol {
    font-size: 0.7rem !important;
  }
  
  /* Make sentiment tags more compact */
  .sentiment-value {
    padding: 2px 4px !important;
    font-size: 0.7rem !important;
  }
  
  /* Reduce padding in table cells */
  #price-table tbody td {
    padding: 0.5rem !important;
  }
  
  /* Ensure the market stats cards are readable */
  .market-stats-container {
    flex-wrap: wrap !important;
  }
  
  .stat-card {
    flex: 1 0 45% !important;
    margin: 5px !important;
  }
  
  /* Adjust gauge size for mobile */
  .fear-greed-container .gauge-container {
    height: 50px;
  }
  
  .fear-greed-container .score {
    font-size: 16px;
  }
  
  /* Adjust for mobile performers list */
  .performers-container {
    flex-direction: column;
  }
  
  .performer-item {
    padding: 4px 6px;
  }
  
  .performer-symbol {
    font-size: 0.8rem;
  }
  
  .performer-change {
    font-size: 0.8rem;
    padding: 1px 4px;
  }
  
  .gauge-wrapper {
    height: 90px;
  }
  
  .gauge-container {
    height: 70px;
  }
  
  .score-card {
    padding: 5px 10px;
    min-width: 50px;
  }
  
  .score {
    font-size: 18px;
  }
  
  .gauge-label {
    font-size: 0.75rem;
  }
  
  /* Improve tooltips on mobile devices */
  .info-icon:hover::after {
    width: auto;
    max-width: 80vw;
    white-space: normal;
    word-wrap: break-word;
    left: 0;
    transform: none;
    position: fixed;
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  #price-table {
    border-spacing: 0 0.25rem !important;
  }
  
  #price-table thead th,
  #price-table tbody td {
    padding: 0.75rem 0.5rem !important;
  }
  
  .coin-name {
    font-size: 0.9rem !important;
  }
  
  .price-value,
  .change-value,
  .sentiment-value {
    font-size: 0.9rem !important;
    min-width: auto !important;
  }
  
  .sentiment-value {
    padding: 0.2rem 0.4rem !important;
  }
  
  .change-value {
    padding: 0 !important;
  }
  
  .gauge-wrapper {
    height: 80px;
  }
  
  .gauge-container {
    height: 60px;
  }
  
  .score-card {
    padding: 4px 8px;
    min-width: 40px;
  }
  
  .score {
    font-size: 16px;
  }
  
  /* Ensure top performers card is full width on small screens */
  .top-performers-card {
    width: 100% !important;
    min-width: 100% !important;
    flex: 1 0 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Hide market cap percentage when it's incorrect */
.market-cap-change {
  display: none;
}

/* Adjust info icon positioning */
.info-icon {
  display: inline-block;
  margin-left: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  cursor: help;
  position: relative;
}

/* Remove top performers title */
.performers-container .performers-header {
  display: none;
}

/* Specific fix for top performers container below 735px */
@media (max-width: 735px) {
  .top-performers-card {
    width: 100% !important;
    min-width: 100% !important;
    flex: 1 0 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .performers-container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .performer-item {
    margin-bottom: 6px;
  }
  
  .performer-symbol {
    font-size: 0.9rem; /* Slightly larger font for better readability */
  }
  
  .performer-change {
    font-size: 0.9rem;
    padding: 2px 6px;
  }
  
  .performer-icon {
    width: 18px;
    height: 18px;
  }
}

/* Responsive styles for all gauges */
@media (max-width: 767px) {
  .crypto-pulse-container,
  .market-momentum-container,
  .fear-greed-container {
    height: 80px;
  }
  
  .crypto-pulse-container .gauge-container,
  .market-momentum-container .gauge-container,
  .fear-greed-container .gauge-container {
    height: 60px;
  }
  
  .crypto-pulse-container .score,
  .market-momentum-container .score,
  .fear-greed-container .score {
    font-size: 18px;
  }
  
  .crypto-pulse-label,
  .market-momentum-label,
  .fear-greed-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .crypto-pulse-container,
  .market-momentum-container,
  .fear-greed-container {
    height: 80px;
  }
  
  .crypto-pulse-container .gauge-container,
  .market-momentum-container .gauge-container,
  .fear-greed-container .gauge-container {
    height: 60px;
  }
  
  .crypto-pulse-container .score-card,
  .market-momentum-container .score-card,
  .fear-greed-container .score-card {
    padding: 4px 8px;
    min-width: 40px;
  }
  
  .crypto-pulse-container .score,
  .market-momentum-container .score,
  .fear-greed-container .score {
    font-size: 16px;
  }
}

/* Fix table glitch during updates */
#price-body {
    will-change: auto !important;
    transform: translateZ(0) !important; /* Force GPU acceleration */
    backface-visibility: hidden !important; /* Prevent flicker */
}

#price-table {
    table-layout: fixed !important; /* Prevent layout shifts */
}

/* Allow price animations but disable other transitions */
#price-body td:not(.price-cell) {
    transition: none !important;
}

/* Price cell animations - working smooth transitions */
#price-body .price-cell {
    transition: color 3s ease, font-weight 2s ease !important;
}

/* Animation classes for price changes */
.price-flash-up {
    color: #00ff88 !important;
    font-weight: bold !important;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6) !important;
}

.price-flash-down {
    color: #ff4444 !important;
    font-weight: bold !important;
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.6) !important;
}