/* Custom styles for Asset Allocation Dashboard */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-size: 1.5rem;
}

.card {
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.card-header {
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

/* Chart containers */
#comparison-chart,
#f1-chart,
#f2-chart {
    min-height: 500px;
    width: 100%;
}

/* Metrics tables */
.metrics-table {
    width: 100%;
}

.metrics-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.metrics-table td:first-child {
    font-weight: 600;
    width: 60%;
}

.metrics-table td:last-child {
    text-align: right;
}

/* Positive/negative returns */
.positive {
    color: #28a745;
    font-weight: 600;
}

.negative {
    color: #dc3545;
    font-weight: 600;
}

/* DataTables styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

table.dataTable thead th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid #f3f3f3;
    border-top: 0.25rem solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Login page */
.card.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #comparison-chart,
    #f1-chart,
    #f2-chart {
        min-height: 300px;
    }

    .table-responsive {
        font-size: 0.875rem;
    }
}
