:root {
            --primary-color: #2e7d32;
            --secondary-color: #c8e6c9;
            --accent-color: #1b5e20;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --danger-color: #e53935;
            --finance-color: #1565c0;
            --calc-color: #6a1b9a;
        }
          .page-header {
            background: linear-gradient(135deg, rgba(200, 230, 201, 0.4) 0%, rgba(46, 125, 50, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(46, 125, 50, 0.2);
            position: relative;
            overflow: hidden;   color: var(--text-color);
        }
        .breadcrumb {
            background-color: transparent;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
        }
        .breadcrumb-item a {
            color: var(--text-muted);
            text-decoration: none;
        }
        .breadcrumb-item.active {
            color: var(--text-color);
        }
        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
        }
        .finance-result {
            padding: 12px;
            background-color: white;
            border-radius: 4px;
            border: 1px solid #eee;
            font-size: 1.1rem;
            margin: 10px 0;
        }
        .finance-box {
            background-color: rgba(21, 101, 192, 0.05);
            border-left: 3px solid var(--finance-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        @media (max-width: 768px) {
            }
        .input-examples {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1rem 0;
        }
        .example-btn {
            background-color: rgba(46, 125, 50, 0.1);
            border: 1px solid rgba(46, 125, 50, 0.2);
            border-radius: 4px;
            padding: 0.5rem 0.75rem;
            font-size: 0.9rem;
            color: var(--primary-color);
            cursor: pointer;
            transition: all 0.2s;
        }
        .example-btn:hover {
            background-color: rgba(46, 125, 50, 0.2);
            transform: translateY(-2px);
        }
        .calculation-step {
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px dashed var(--border-color);
        }
        .metric-card {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            text-align: center;
            transition: transform 0.3s;
            height: 100%;
        }
        .metric-card:hover {
            transform: translateY(-5px);
        }
        .metric-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        .metric-label {
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }
        .metric-description {
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        .data-table th, .data-table td {
            padding: 0.75rem;
            text-align: center;
            border: 1px solid var(--border-color);
        }
        .data-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        .data-table tr:nth-child(even) {
            background-color: rgba(46, 125, 50, 0.05);
        }
        .risk-assessment {
            padding: 1rem;
            border-radius: 6px;
            margin: 1rem 0;
            text-align: center;
        }
        .risk-low {
            background-color: rgba(40, 167, 69, 0.1);
            border: 1px solid rgba(40, 167, 69, 0.3);
            color: #155724;
        }
        .risk-moderate {
            background-color: rgba(255, 193, 7, 0.1);
            border: 1px solid rgba(255, 193, 7, 0.3);
            color: #856404;
        }
        .risk-high {
            background-color: rgba(220, 53, 69, 0.1);
            border: 1px solid rgba(220, 53, 69, 0.3);
            color: #721c24;
        }
        .return-series-input {
            font-family: 'Courier New', monospace;
        }
        .sharpe-interpretation {
            padding: 1rem;
            border-radius: 6px;
            background-color: white;
            border: 1px solid var(--border-color);
            margin: 1rem 0;
        }
        .graph-legend {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-top: 1rem;
        }
        .legend-item {
            display: flex;
            align-items: center;
        }
        .legend-color {
            width: 20px;
            height: 4px;
            margin-right: 0.5rem;
        }
        .returns-color {
            background-color: rgba(46, 125, 50, 0.8);
        }
        .mean-color {
            background-color: rgba(21, 101, 192, 0.8);
        }
        .risk-free-color {
            background-color: rgba(255, 193, 7, 0.8);
        }
        .data-entry-mode {
            display: flex;
            border-radius: 6px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
        }
        .mode-option {
            flex: 1;
            text-align: center;
            padding: 0.75rem;
            cursor: pointer;
            background-color: var(--light-gray);
            transition: all 0.3s;
        }
        .mode-option.active {
            background-color: var(--primary-color);
            color: white;
        }
        .import-export-section {
            background-color: rgba(46, 125, 50, 0.05);
            border-radius: 6px;
            padding: 1rem;
            margin: 1rem 0;
            border: 1px solid rgba(46, 125, 50, 0.2);display:none
        }
        .portfolio-comparison {
            margin-top: 2rem;
            padding-top: 1rem;
            border-top: 2px solid var(--border-color);
        }
        .comparison-table {
            width: 100%;
            margin-top: 1rem;
        }
        .optimization-suggestions {
            background-color: rgba(255, 193, 7, 0.05);
            border-left: 3px solid var(--warning-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        .sortino-ratio {
            background-color: rgba(106, 27, 154, 0.05);
            border-left: 3px solid var(--calc-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        .tab-content {
            padding: 1rem 0;
        }
        .nav-tabs