/* Investment Charts Styles */
.investment-chart-container {
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.investment-chart {
    width: 100% !important;
    height: 200px !important;
    border-radius: 6px;
}

/* Chart Data Display Styles */
.chart-data-display {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.1), rgba(231, 111, 81, 0.1));
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.data-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.data-row:last-child {
    margin-bottom: 0;
}

.data-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.data-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.data-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-value {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
}

.time-display {
    color: #64b5f6;
    font-family: 'Courier New', monospace;
}

.return-display {
    color: #2a9d8f;
}

.portfolio-value {
    color: #4caf50;
}

.profit-loss {
    color: #ff9800;
}

.profit-loss.positive {
    color: #4caf50;
}

.profit-loss.negative {
    color: #f44336;
}

/* Responsive Design */
@media (max-width: 768px) {
    .data-row {
        flex-direction: column;
    }
    
    .data-item {
        margin: 5px 0;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .data-label {
        margin-bottom: 0;
        margin-right: 10px;
    }
}

/* Animation for live updates */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.data-value.updating {
    animation: pulse 1s ease-in-out;
}

/* Live indicator */
.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    margin-left: 5px;
    animation: pulse 2s infinite;
}

.live-indicator.offline {
    background: #f44336;
    animation: none;
}