/* General Dark Mode Styles */
body { 
    background-color: #0D1117; 
    color: #FFFFFF; 
}
.ecotrader-data-wrapper { 
    background-color: #161B22; 
    border: 1px solid #30363D; 
    border-radius: 8px; 
    padding: 20px; 
    margin-bottom: 2em; 
}

/* Action Buttons */
.ecotrader-action-buttons { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 1.5em; 
    flex-wrap: wrap; 
}
.ecotrader-button { 
    padding: 10px 15px; 
    border: 1px solid transparent; 
    border-radius: 5px; 
    cursor: pointer; 
    font-weight: bold; 
    text-decoration: none; 
    display: inline-block; 
}
.broker-button { 
    background-color: #238636; 
    color: white; 
    border-color: #238636; 
}
.broker-button:hover { 
    background-color: #2ea043; 
}
.watchlist-toggle { 
    background-color: #21262d; 
    color: #c9d1d9; 
    border-color: #30363d; 
}
.watchlist-toggle.active { 
    background-color: #f59e0b; 
    color: white; 
    border-color: #f59e0b; 
}

/* Header & Price */
.ecotrader-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5em;
    border-bottom: 1px solid #30363D;
    padding-bottom: 1em;
}
.ecotrader-price {
    font-size: 2em;
    font-weight: bold;
    color: #FFFFFF;
}
.ecotrader-change {
    font-size: 1.2em;
    font-weight: bold;
}
.ecotrader-change.positive { color: #28a745; }
.ecotrader-change.negative { color: #e53e3e; }

/* Sections & Metrics List */
.ecotrader-data-wrapper .ecotrader-stats, 
.ecotrader-data-wrapper .ecotrader-holdings, 
.ecotrader-data-wrapper .ecotrader-news, 
.ecotrader-data-wrapper .ecotrader-ratings {
    margin-bottom: 2.5em;
}
.ecotrader-data-wrapper h4 { 
    margin-bottom: 1em; 
    color: #c9d1d9; 
    border-bottom: 1px solid #30363d; 
    padding-bottom: 0.5em;
}
.ecotrader-metrics-list {
    display: flex;
    flex-direction: column;
}
.ecotrader-metric-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 8px;
    border-bottom: 1px solid #30363D;
}
.ecotrader-metric-row:last-child {
    border-bottom: none;
}
.ecotrader-metric-key {
    color: #8b949e;
}
.ecotrader-metric-value {
    color: #c9d1d9;
    font-weight: bold;
}

/* Chart */
.ecotrader-chart-container { 
    position: relative; 
    height: 400px; 
    width: 100%; 
    margin-bottom: 2.5em; 
}
.ecotrader-chart-controls { 
    text-align: center; 
    margin-top: 1em; 
}
.ecotrader-chart-controls button { 
    background: #21262d; 
    color: #c9d1d9; 
    border: 1px solid #30363d; 
    padding: 5px 10px; 
    margin: 0 5px; 
    border-radius: 5px; 
    cursor: pointer; 
}
.ecotrader-chart-controls button.active { 
    background-color: #238636; 
    color: white; 
    border-color: #238636; 
}

/* News & Ratings */
.ecotrader-news ul { list-style: none; padding: 0; }
.ecotrader-news li a { 
    display:block; 
    padding: 12px; 
    border-bottom: 1px solid #30363D; 
    text-decoration: none; 
    color: inherit;
}
.ecotrader-news li a:hover { background-color: #161B22; }
.news-meta { font-size: 0.8em; color: #8b949e; margin-bottom: 4px; }
.news-title { font-weight: bold; margin: 0; color: #c9d1d9; }
.rating-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin-bottom: 1em; }
.rating-buy { background-color: #28a745; }
.rating-hold { background-color: #fbbf24; }
.rating-sell { background-color: #e53e3e; }
.rating-legend { display: flex; justify-content: space-around; font-size: 0.9em; color: #8b949e; }
.rating-legend .dot { height: 10px; width: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.rating-legend .dot.buy { background-color: #28a745; }
.rating-legend .dot.hold { background-color: #fbbf24; }
.rating-legend .dot.sell { background-color: #e53e3e; }

/* Comments */
.ecotrader-comment-voting { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ecotrader-comment-voting a { text-decoration: none; color: #8b949e; font-size: 1.5em; line-height: 1; transition: color 0.2s; }
.ecotrader-comment-voting a:hover { color: #58a6ff; }
.ecotrader-comment-voting a.active { color: #58a6ff; }
.ecotrader-comment-voting .vote-count { font-weight: bold; color: #c9d1d9; }
.load-more-comments { background: #21262d; text-align: center; padding: 10px; margin-top: 20px; cursor: pointer; border-radius: 5px; border: 1px solid #30363d; color: #c9d1d9; }

/* Stock List Block - UPDATED */
.ecotrader-stock-list-block ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ecotrader-stock-list-block li {
    list-style-type: none !important;
    border-bottom: none !important;
    padding: 0 !important;
}
.ecotrader-stock-list-block li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 8px;
    text-decoration: none;
    color: #f0f6fc; /* Lighter, almost white text */
    transition: background-color 0.2s;
    border-radius: 6px;
}
.ecotrader-stock-list-block li a:hover {
    background-color: #21262d;
}
.stock-list-item-title {
    font-weight: bold;
}
.stock-list-item-price {
    margin-right: 1em;
}
.stock-list-item-change.positive {
    color: #28a745;
}
.stock-list-item-change.negative {
    color: #e53e3e;
}
