
  /* --- General Setup & Resets --- */
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  body {
      font-family: "Inter", sans-serif;
      background-color: rgba(255, 255, 255, 0.7);
      color: var(--primary); /* text-slate-700 */
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      /* display: flex;
      flex-direction: column;
      align-items: center;
      margin: 0; */
  }

  /* --- Main Layout --- */
  .main-container {
      min-height: 100vh;
      padding: 1rem;
      
  }

  .content-wrapper {
      max-width: 1150px; 
      margin: 0 auto;
      background-color: #ffffff;
      border-radius: 0px; /* rounded-xl */
      /* box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
      0 4px 6px -4px rgba(0, 0, 0, 0.1),
      0 -6px 12px -4px rgba(0, 0, 0, 0.1); */
      overflow: hidden;
      border: 1px solid var(--lines);
  }

  /* --- Header --- */
  .header {
      padding: 20px;
      border-bottom: 1px solid #ccc; /* border-slate-200 */
  }
  .header h1 {
      font-size: 28px; /* text-2xl */
      font-weight: 500;
      color: var(--primary); /* text-slate-800 */
      line-height: 115%;
  }
  .header p {
      color: var(--primary); /* text-slate-500 */
      margin-top: 0.25rem;
      line-height: 150%;
      font-size: 18px; /* text-sm */
  }

  /* --- Trade List --- */
  .trade-list-container {
      display: flex;
      flex-direction: column;
  }
  
  /* --- Status Message (Loading/Error) --- */
  .status-message {
      color: #64748b;
      text-align: center;
      padding: 2rem;
      font-style: italic;
  }

  /* --- Trade Row Styling --- */
  .trade-row {
      display: grid;
      grid-template-columns: 1fr 1fr; /* Mobile first: 2 columns */
      gap: 0.5rem 1rem;
      padding: 1rem 1.5rem;
      border-bottom: 1px solid #ccc; /* border-slate-200 */
      transition: background-color 0.2s ease;
      position: relative;
      padding-left: 2.5rem; /* Space for the timeline indicator */
  }
  
  .trade-row:last-child {
      border-bottom: none;
  }

  /* .trade-row:hover {
      background-color: #f8fafc; 
  } */
  
  /* The colored timeline indicator line */
  .trade-row::before {
      content: '';
      position: absolute;
      left: 1.5rem;
      top: 50%;
      transform: translateY(-50%);
      width: 4px;
      height: 50%;
      border-radius: 2px;
      background-color: #6b7280; /* Default/Neutral color */
  }

  /* Timeline Indicator Colors */
  .trade-row.price-up::before { background-color: #22c55e; } /* Green */
  .trade-row.price-down::before { background-color: #ef4444; } /* Red */
  
  /* Row Data Sections */
  .trade-data-point .label {
      font-size: 0.75rem; /* text-xs */
      color: var(--primary); /* text-slate-500 */
      margin-bottom: 0.125rem;
      display: block;
  }
  
  .trade-data-point .value {
      font-weight: 700;
      font-size: 16px;
      color: var(--primary);
      line-height: 150%;
  }

  .trade-data-point .price-value {
      font-weight: 700;
      font-size: 1.125rem;
  }
  
  /* .trade-data-point .volume-value {
      font-family: monospace;
  } */

  .poweredby {
      font-size: 8px;
      color: #999999;
      text-align: right;
      margin: 15px 0;
      padding-right: 8px;
      padding-top: 5px;
      letter-spacing: 2px;
      height: 10px;
      padding: 5px 0;
      max-width: 1150px;
  }
  
  .poweredby img {
      height: 10px;
      margin-top: 0px;
  }

  /* Price Color Classes (for text) */
  .price-up .price-value { color: var(--primary) } /* text-green-800 */
  .price-down .price-value { color: var(--primary); } /* text-red-800 */
  
  /* --- Responsive Design --- */
  @media (min-width: 640px) { /* sm breakpoint */
      .trade-row {
          grid-template-columns: 0.75fr 1fr 1fr; /* 3 columns for desktop */
          align-items: center;
          gap: 1.5rem;
      }
  }

  @media (max-width: 425px) {
    .header h1 {
        font-size: 22px;
    }

    .header p {
        font-size: 16px;
    }
  }
  
  /* Fade-in animation for new rows */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trade-row.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Add transition for smooth updates */
.trade-row {
    transition: all 0.3s ease;
}

/* Loading state (optional) */
.trade-list-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Refresh indicator on the right */
.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.refresh-indicator.refreshing {
    opacity: 1;
}

.refresh-spinner {
    width: 16px;
    height: 16px;
}

.spinner-fg {
    stroke: #3b82f6;
    transition: stroke-dashoffset 0.3s ease;
}

.refresh-indicator.refreshing .spinner-fg {
    stroke: #22c55e;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.refresh-time {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
}

/* Subtle flash when data updates */
.trade-row.data-refreshed {
    background-color: rgba(59, 130, 246, 0.08);
}

.poweredby_ {
    font-size: 8px;
    color: #999999;
    text-align: right;
    margin: 0 auto;  
    padding-right: 0px; 
    letter-spacing: 2px;
    height: 10px;
    padding: 5px 0;
    max-width: 1150px;  
    width: 100%;  
    display: block;
    box-sizing: border-box;
}
.poweredby_ a {
	color: var(--lines);
	text-decoration: none;
}
