.stock-card {
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.stock-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stock-card.positive {
    background: linear-gradient(135deg, #1a2e2a 0%, #1f3b33 100%);
    border-left: 4px solid #10b981;
}

.stock-card.negative {
    background: linear-gradient(135deg, #2e1a1a 0%, #3b1f1f 100%);
    border-left: 4px solid #ef4444;
}

.stock-symbol {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.stock-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px; /* Adjusted */
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-change {
    font-size: 0.75rem; /* Adjusted */
    font-weight: 500;
    /* margin-bottom removed */
}

/* Styles for price change text/badge when parent card has .positive class */
.stock-card .price-change.positive,
.stock-card .percentage-badge.positive {
    color: #10b981;
}
.stock-card .percentage-badge.positive {
    background-color: rgba(16, 185, 129, 0.15);
}


/* Styles for price change text/badge when parent card has .negative class */
.stock-card .price-change.negative,
.stock-card .percentage-badge.negative {
    color: #ef4444;
}
.stock-card .percentage-badge.negative {
    background-color: rgba(239, 68, 68, 0.15);
}


.percentage-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 6px;
}

.stock-date {
    font-size: 0.7rem;
    color: #9ca3af;
    margin: 0;
}

.trend-arrow {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1rem;
}

/* Arrow color for positive themed cards */
.stock-card.positive .trend-arrow {
    color: #10b981;
}

/* Arrow color for negative themed cards */
.stock-card.negative .trend-arrow {
    color: #ef4444;
}

.stock-card.most-shorted {
    background: linear-gradient(135deg, #1e1a2e 0%, #252040 100%);
    border-left: 4px solid #6366f1;
}

.stock-card.most-shorted .trend-arrow {
    color: #6366f1;
}

/* Price change text/badge color for most-shorted cards, if performance is positive */
.stock-card.most-shorted .price-change.positive,
.stock-card.most-shorted .percentage-badge.positive {
    color: #818cf8; /* Or keep #10b981 if preferred for positive performance */
}
.stock-card.most-shorted .percentage-badge.positive {
    background-color: rgba(99, 102, 241, 0.15); /* Or keep rgba(16, 185, 129, 0.15) */
}
/* Price change text/badge color for most-shorted cards, if performance is negative */
.stock-card.most-shorted .price-change.negative,
.stock-card.most-shorted .percentage-badge.negative {
    color: #818cf8; /* Or keep #ef4444 if preferred for negative performance */
}
.stock-card.most-shorted .percentage-badge.negative {
    background-color: rgba(99, 102, 241, 0.15); /* Or keep rgba(239, 68, 68, 0.15) */
}


.stock-card.most-active {
    background: linear-gradient(135deg, #2e1f1a 0%, #3b2a20 100%);
    border-left: 4px solid #f59e0b;
}

.stock-card.most-active .trend-arrow {
    color: #f59e0b;
}

/* Price change text/badge color for most-active cards, if performance is positive */
.stock-card.most-active .price-change.positive,
.stock-card.most-active .percentage-badge.positive {
    color: #fbbf24; /* Or keep #10b981 */
}
.stock-card.most-active .percentage-badge.positive {
    background-color: rgba(245, 158, 11, 0.15); /* Or keep rgba(16, 185, 129, 0.15) */
}
/* Price change text/badge color for most-active cards, if performance is negative */
.stock-card.most-active .price-change.negative,
.stock-card.most-active .percentage-badge.negative {
    color: #fbbf24; /* Or keep #ef4444 */
}
.stock-card.most-active .percentage-badge.negative {
    background-color: rgba(245, 158, 11, 0.15); /* Or keep rgba(239, 68, 68, 0.15) */
}


.stock-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px; /* Adjusted */
}

.price-info {
    flex-grow: 1;
}

@media (max-width: 768px) {
    .stock-card {
        padding: 10px;
    }
    
    .stock-price {
        font-size: 1rem;
    }
    
    .stock-symbol {
        font-size: 0.9rem;
    }
}
