/* General Widget Styles */
.td-gainers, .td-losers, .td-volume-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.07);
    padding: 20px;
    margin-bottom: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.td-gainers h3, .td-losers h3, .td-volume-widget h3 {
    font-size: 1.5em;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Stock List */
.td-gainers ul, .td-losers ul, .td-volume-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.td-gainers li, .td-losers li, .td-volume-widget li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.td-gainers li:last-child,
.td-losers li:last-child,
.td-volume-widget li:last-child {
    border-bottom: none;
}

.td-gainers strong,
.td-losers strong,
.td-volume-widget strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Price and Change */
.td-gainers .price,
.td-losers .price,
.td-volume-widget .price {
    color: #333;
}

.td-gainers .change,
.td-volume-widget .change {
    color: #27ae60;
    font-weight: bold;
}

.td-losers .change {
    color: #c0392b;
    font-weight: bold;
}

/* Ticker Styles */
.td-ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
    background: #f1f3f5;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 10px 0;
    margin-top: 30px;
}

.td-ticker-track {
    display: flex;
    gap: 40px;
    animation: tickerScroll 30s linear infinite;
    padding: 0 20px;
}

.td-ticker-item {
    font-size: 14px;
    color: #34495e;
    white-space: nowrap;
}

/* Animate ticker */
@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Responsive */
@media (max-width: 768px) {
    .td-gainers, .td-losers, .td-volume-widget {
        padding: 15px;
    }

    .td-ticker-track {
        gap: 20px;
        font-size: 13px;
    }

    .td-gainers li, .td-losers li, .td-volume-widget li {
        flex-direction: column;
        align-items: flex-start;
    }
}

.stock-card {
    background: #ffffff;
    padding: 10px 15px;
    font-family: Arial, sans-serif;
    border-radius: 6px;
    margin-bottom: 10px;
}
.stock-card:hover {
    background-color: #e5ecff;
  }

.stock-header,
.stock-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-symbol {
    font-weight: bold;
}

.stock-dot {
    color: orange;
    font-size: 10px;
    vertical-align: super;
}

.stock-price {
    font-weight: bold;
}

.stock-name {
    font-size: 13px;
    color: #666;
}

.stock-change {
    color: green;
    font-weight: bold;
    font-size: 14px;
}
.stock-change1{
    color: red;
    font-weight: bold;
    font-size: 14px;
}


.td-stock-table th, .td-stock-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: #000;
    font-weight: 500;
}
 .td-stock-table tr:hover {
    background-color: #f9f9f9;
}
.td-stock-table td.up {
    color: #4CAF50; /* green */
    font-weight: bold;
}
          
.td-stock-table td.down {
    color: #F44336; /* red */
    font-weight: bold;
}
.td-flag {
    width: 16px;
    height: 12px;
    display: inline-block;
    background-size: cover;
    margin-right: 5px;
    vertical-align: middle;
}
.td-stock-table {
    width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}
          
.td-stock-table thead {
    background-color: #f7f7f7;
}
          
.td-stock-table th,
.td-stock-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}
.td-stock-table th {
    font-weight: 600;
    color: #000;
}
.td-stock-table td:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}         
/* Optional: add hover effect */
.td-stock-table tbody tr:hover {
    background-color: #fafafa;
    cursor: pointer;
}
@media screen and (max-width: 768px) {
    .td-stock-table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
    }
  }	