:root {
            --primary-color: #2c7da0;
            --secondary-color: #a9d6e5;
            --accent-color: #01497c;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
            --tvm-green: #198754;
            --tvm-blue: #0d6efd;
            --tvm-purple: #6f42c1;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --chart-color-1: #2c7da0;
            --chart-color-2: #a9d6e5;
            --chart-color-3: #01497c;
            --chart-color-4: #198754;
        }.calc-mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
         .page-header {
            background: linear-gradient(135deg, rgba(169, 214, 229, 0.4) 0%, rgba(44, 125, 160, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(44, 125, 160, 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(44, 125, 160, 0.15);
        }
        .tvm-result {
            padding: 20px;
            background-color: white;
            border-radius: 8px;
            border: 1px solid #eee;
            margin: 15px 0;
            text-align: center;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        .tvm-value {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        .tvm-green {
            color: var(--tvm-green);
        }
        .tvm-blue {
            color: var(--tvm-blue);
        }
        .tvm-purple {
            color: var(--tvm-purple);
        }
        .tvm-label {
            font-size: 1.2rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }
        .metric-card {
            background: white;
            border-radius: 6px;
            padding: 1rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        .metric-value {
            font-size: 1.4rem;
            font-weight: 600;
            color: var(--primary-color);
        }
        .formula-box {
            background-color: rgba(111, 66, 193, 0.05);
            border-left: 3px solid #6f42c1;
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        @media (max-width: 768px) {
            .tvm-value {
                font-size: 2rem;
            }
        }
        .calculation-examples {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1rem 0;
        }
        .example-btn {
            background-color: rgba(44, 125, 160, 0.1);
            border: 1px solid rgba(44, 125, 160, 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(44, 125, 160, 0.2);
            transform: translateY(-2px);
        }
        .calculation-step {
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px dashed var(--border-color);
        }
        .tvm-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        .tvm-table th, .tvm-table td {
            padding: 0.75rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        .tvm-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        .tvm-table tr:nth-child(even) {
            background-color: rgba(44, 125, 160, 0.05);
        }
        .timeline-container {
            position: relative;
            height: 120px;
            margin: 2rem 0;
            overflow-x: auto;
        }
        .timeline {
            display: flex;
            min-width: 600px;
            height: 100%;
            position: relative;
        }
        .timeline-period {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
        }
        .timeline-marker {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: var(--primary-color);
            margin-bottom: 10px;
            z-index: 2;
        }
        .timeline-label {
            font-size: 0.8rem;
            color: var(--text-muted);
            text-align: center;
        }
        .timeline-line {
            position: absolute;
            top: 5px;
            left: 0;
            right: 0;
            height: 2px;
            background-color: var(--primary-color);
            z-index: 1;
        }
        .cash-flow {
            position: absolute;
            width: 60px;
            text-align: center;
            font-size: 0.8rem;
            font-weight: 600;
            padding: 4px;
            border-radius: 4px;
            z-index: 3;
        }
        .cash-inflow {
            background-color: rgba(25, 135, 84, 0.2);
            color: var(--tvm-green);
            bottom: 40px;
        }
        .cash-outflow {
            background-color: rgba(220, 53, 69, 0.2);
            color: var(--danger-color);
            top: 40px;
        }
        .currency-input {
            position: relative;
        }
        .currency-symbol {
            position: absolute;
            left: 4px;
            top: 52%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-weight: 600;
        }
        .currency-input .calc-mode-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }
        .calc-mode-tab {
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 0.75rem 1.25rem;
            font-weight: 600;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.3s;
            flex: 1;
            text-align: center;
            min-width: 120px;
        }
        .calc-mode-tab.active {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            color: white;
        }
        .calc-mode-tab:hover:not(.active) {
            background-color: var(--light-gray);
            color: var(--primary-color);
        }
        .formula-display {
            font-family: 'Cambria Math', 'Latin Modern Math', STIXGeneral, serif;
            font-size: 1.2rem;
            text-align: center;
            padding: 1rem;
            background-color: rgba(111, 66, 193, 0.05);
            border-radius: 6px;
            margin: 1rem 0;
        }
        .compound-frequency {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }
        .frequency-btn {
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            padding: 0.5rem 0.75rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .frequency-btn.active {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            color: white;
        }
        .payment-timing {
            display: flex;
            gap: 1rem;
            margin-top: 0.5rem;
        }
        .timing-option {
            display: flex;
            align-items: center;
        }
        .timing-option input {
            margin-right: 0.5rem;
        }