/* Dashboard Styles */

.dashboard {
    background-color: #f5f7fa;
    padding: 2rem 0;
}

.main-content {
    padding: 2rem 2rem 2rem 0;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #666;
    font-size: 1rem;
}

/* Metrics Row */

.metrics-row {
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.metric-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.metric-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

.metric-icon {
    font-size: 1.5rem;
    color: #667eea;
    opacity: 0.7;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.metric-value.positive {
    color: #198754;
}

.metric-value.negative {
    color: #dc3545;
}

.metric-change {
    font-size: 0.875rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.metric-change.positive {
    color: #198754;
}

.metric-change.negative {
    color: #dc3545;
}

/* Charts Row */

.charts-row {
    margin-bottom: 2rem;
}

.chart-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-card .card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-card .card-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.chart-toggle {
    display: flex;
    gap: 1rem;
}

.chart-toggle a {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #666;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.chart-toggle a:hover {
    background-color: #e0e0e0;
}

.chart-toggle a.active {
    background-color: #667eea;
    color: white;
}

.chart-container {
    padding: 2rem;
    min-height: 400px;
    position: relative;
}

/* Sidebar */

.sidebar {
    background-color: white;
    border-right: 1px solid #e0e0e0;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.sidebar-content {
    padding: 0 1rem;
}

.sidebar-nav {
    padding: 0;
}

.sidebar-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.sidebar-title:first-of-type {
    margin-top: 0;
}

.sidebar-nav .nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav .nav-item {
    margin-bottom: 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 500;
}

.sidebar-nav .nav-link:hover {
    background-color: #f5f5f5;
    color: #333;
}

.sidebar-nav .nav-link.active {
    background-color: #f0f0f0;
    color: #667eea;
    border-left: 3px solid #667eea;
    padding-left: calc(1rem - 3px);
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
}

/* Cards */

.card {
    background-color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.card .card-header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem;
}

.card .table {
    margin-bottom: 0;
}

/* Recent Trades Table */

.trades-table tbody tr {
    transition: background-color 0.3s;
}

.trades-table tbody tr:hover {
    background-color: #f8f9fa;
}

.symbol-badge {
    background-color: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    color: #333;
}

/* Responsive */

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .metrics-row {
        flex-direction: column;
    }
    
    .metric-card {
        margin-bottom: 1rem;
    }
    
    .chart-card .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chart-toggle {
        width: 100%;
        margin-top: 1rem;
    }
}
