/* Crypto Ticker Styles */
.crypto-ticker-wrapper {
    background: linear-gradient(90deg, #0f1926, #1e293b);
    overflow: hidden;
    padding: 12px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.crypto-ticker-track {
    display: flex;
    gap: 40px;
    animation: ticker-scroll 30s linear infinite;
    width: fit-content;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 0 15px;
}

.coin-icon {
    font-size: 1.2rem;
    color: #f59e0b;
}

.coin-symbol {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.coin-price {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
}

.coin-change {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.coin-change.positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.coin-change.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.crypto-ticker-wrapper:hover .crypto-ticker-track {
    animation-play-state: paused;
}

/* Portfolio Chart Styles */
.chart-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 1.1rem;
    color: #1e293b;
}

.chart-period-btns {
    display: flex;
    gap: 8px;
}

.chart-period-btns button {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-period-btns button:hover,
.chart-period-btns button.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

#portfolioChart {
    width: 100%;
    height: 250px;
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-card .label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 5px;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-card .change {
    font-size: 0.85rem;
    margin-top: 5px;
}

.stat-card .change.positive { color: #10b981; }
.stat-card .change.negative { color: #ef4444; }

/* Live Market Widget */
.market-widget {
    background: linear-gradient(135deg, #0f1926, #1e293b);
    border-radius: 16px;
    padding: 25px;
    color: white;
}

.market-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.market-widget h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.market-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.market-item .coin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.market-item .coin-name {
    font-weight: 600;
}

.market-item .coin-symbol {
    font-size: 0.85rem;
    color: #94a3b8;
}

.market-item .price-info {
    text-align: right;
}

.market-item .price {
    font-weight: 600;
}

.market-item .change.positive { color: #10b981; }
.market-item .change.negative { color: #ef4444; }
