:root {
            --primary-color: #2c7da0;
            --secondary-color: #a9d6e5;
            --accent-color: #01497c;
            --finance-color: #198754;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
        }
     .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);
        }
        .form-control.is-invalid {
            border-color: var(--danger-color);
        }
        .invalid-feedback {
            display: none;
            color: var(--danger-color);
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }
        .form-control.is-invalid ~ .invalid-feedback {
            display: block;
        }
        .btn-finance {
            background-color: var(--finance-color);
            border-color: var(--finance-color);
            color: white;
        }
        .btn-finance:hover {
            background-color: #157347;
            border-color: #146c43;
        }
        .calculation-step {
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px dashed var(--border-color);
        }
        .finance-box {
            background-color: rgba(25, 135, 84, 0.05);
            border-left: 3px solid var(--finance-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        .warning-box {
            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;
        }
        .amortization-table-container {
            max-height: 400px;
            overflow-y: auto;
            margin: 1.5rem 0;
            border: 1px solid var(--border-color);
            border-radius: 6px;
        }
        .amortization-table {
            width: 100%;
            border-collapse: collapse;
        }
        .amortization-table th, .amortization-table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        .amortization-table th {
            background-color: var(--light-gray);
            font-weight: 600;
            position: sticky;
            top: 0;
        }
        .amortization-table tr:hover {
            background-color: rgba(44, 125, 160, 0.05);
        }
        .balloon-row {
            background-color: rgba(255, 193, 7, 0.1) !important;
            font-weight: 600;
        }
        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        .comparison-table th, .comparison-table td {
            padding: 1rem;
            text-align: center;
            border: 1px solid var(--border-color);
        }
        .comparison-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        .comparison-table .highlight-column {
            background-color: rgba(25, 135, 84, 0.05);
        }
        .loan-examples {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            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.75rem 1rem;
            font-size: 0.9rem;
            color: var(--primary-color);
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            flex: 1;
            min-width: 150px;
        }
        .example-btn:hover {
            background-color: rgba(44, 125, 160, 0.2);
            transform: translateY(-2px);
        }
        .example-name {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        .example-details {
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        .payment-breakdown {
            display: flex;
            height: 40px;
            border-radius: 4px;
            overflow: hidden;
            margin: 1rem 0;
        }
        .payment-part {
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
        }
        .nav-tabs {
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
        }
        .nav-tabs .nav-tabs @media (max-width: 768px) {
            .example-btn {
                min-width: 100%;
            }
        }
        .form-toggle {
            display: flex;
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 0.25rem;
            margin-bottom: 1.5rem;
        }
        .toggle-option {
            flex: 1;
            text-align: center;
            padding: 0.5rem;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 500;
        }
        .toggle-option.active {
            background-color: white;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .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;
        }
        .principal-color {
            background-color: rgba(44, 125, 160, 0.8);
        }
        .interest-color {
            background-color: rgba(232, 62, 140, 0.8);
        }
        .balloon-color {
            background-color: rgba(255, 193, 7, 0.8);
        }
        .balance-color {
            background-color: rgba(25, 135, 84, 0.8);
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }
        .currency {
            font-family: 'Courier New', monospace;
            font-weight: 600;
        }
        .positive {
            color: var(--finance-color);
        }
        .negative {
            color: var(--danger-color);
        }