body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        h1 {
            color: #003366;
            text-align: center;
        }
        .calculator {
            background-color: #f0f0f0;
            border: 1px solid #ccc;
            border-radius: 5px;
            padding: 20px;
            margin-bottom: 20px;
        }
        .input-group {
            margin-bottom: 15px;
        }
        label {
            display: inline-block;
            width: 200px;
            font-weight: bold;
        }
        input, select {
            width: 150px;
            padding: 5px;
        }
        .wide-input {
            width: 300px;
        }
        button {
            background-color: #4CAF50;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }
        button:hover {
            background-color: #45a049;
        }
        .add-btn {
            background-color: #2196F3;
            margin-left: 10px;
            padding: 5px 10px;
            font-size: 14px;
        }
        .add-btn:hover {
            background-color: #1976D2;
        }
        .remove-btn {
            background-color: #f44336;
            padding: 5px 10px;
            font-size: 12px;
            margin-left: 10px;
        }
        .remove-btn:hover {
            background-color: #da190b;
        }
        .results {
            background-color: #e9f7ef;
            border: 1px solid #ccc;
            border-radius: 5px;
            padding: 20px;
            margin-top: 20px;
        }
        .result-section {
            margin-bottom: 20px;
            padding: 15px;
            background-color: white;
            border-radius: 3px;
            border-left: 4px solid #4CAF50;
        }
        .result-item {
            margin-bottom: 10px;
            padding: 8px;
            background-color: #f9f9f9;
            border-radius: 3px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .result-item strong {
            color: #003366;
        }
        .highlight {
            background-color: #d4edda;
            border-left: 4px solid #28a745;
            padding: 15px;
            margin-top: 20px;
            font-size: 18px;
            font-weight: bold;
        }
        .warning {
            background-color: #f8d7da;
            border-left: 4px solid #dc3545;
            padding: 15px;
            margin-top: 20px;
            color: #721c24;
        }
        .tab-container {
            margin-bottom: 20px;
        }
        .tab {
            display: inline-block;
            padding: 10px 20px;
            background-color: #ddd;
            cursor: pointer;
            border: 1px solid #ccc;
            border-bottom: none;
            margin-right: 5px;
        }
        .tab.active {
            background-color: #4CAF50;
            color: white;
        }
        .tab-content {
            display: none;
            border: 1px solid #ccc;
            padding: 20px;
            background-color: white;
        }
        .tab-content.active {
            display: block;
        }
        .category-section {
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
        }
        .category-section h3 {
            margin-top: 0;
            color: #495057;
        }
        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
        }
        .budget-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }
        .summary-card {
            background-color: white;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 15px;
            text-align: center;
        }
        .summary-card.positive {
            border-color: #28a745;
            background-color: #d4edda;
        }
        .summary-card.negative {
            border-color: #dc3545;
            background-color: #f8d7da;
        }
        .summary-value {
            font-size: 24px;
            font-weight: bold;
            color: #495057;
        }
        .summary-label {
            color: #6c757d;
            font-size: 14px;
        }
        .budget-chart {
            width: 100%;
            height: 400px;
            margin-top: 20px;
        }
        .progress-bar {
            width: 100%;
            height: 20px;
            background-color: #e9ecef;
            border-radius: 10px;
            overflow: hidden;
            margin: 10px 0;
        }
        .progress-fill {
            height: 100%;
            background-color: #28a745;
            transition: width 0.3s ease;
        }
        .progress-fill.over-budget {
            background-color: #dc3545;
        }
        .info {
            background-color: #d1ecf1;
            border: 1px solid #bee5eb;
            border-radius: 4px;
            padding: 10px;
            margin-top: 10px;
            color: #0c5460;
        }
        .expense-item {
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 10px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .expense-item input {
            width: 120px;
            margin-left: 10px;
        }
        .recommendations {
            background-color: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 8px;
            padding: 15px;
            margin-top: 20px;
        }
        .recommendations h3 {
            color: #856404;
            margin-top: 0;
        }
        .recommendation-item {
            padding: 8px;
            margin-bottom: 8px;
            background-color: white;
            border-radius: 4px;
            border-left: 4px solid #ffc107;
        }

        /* Cross-linking styles */
        .cross-links-section {
            max-width: 1000px;
            margin: 40px auto 20px;
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            padding: 30px;
        }
        
        .cross-links-section h2 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 30px;
            font-size: 1.8em;
            border-bottom: 3px solid #3498db;
            padding-bottom: 15px;
        }
        
        .cross-link-category {
            margin-bottom: 30px;
        }
        
        .cross-link-category h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 1.3em;
            padding-left: 10px;
            border-left: 4px solid #3498db;
        }
        
        .cross-link-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 15px;
        }
        
        .cross-link-card {
            display: block;
            text-decoration: none;
            color: #34495e;
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 15px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .cross-link-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(52, 152, 219, 0.15);
            border-color: #3498db;
            background: #e3f2fd;
            color: #2c3e50;
        }
        
        .cross-link-card span {
            font-weight: 500;
            display: block;
            line-height: 1.4;
        }
        
        .cross-link-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: #3498db;
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }
        
        .cross-link-card:hover::before {
            transform: scaleY(1);
        }
        
        @media (max-width: 768px) {
            .cross-links-section {
                margin: 20px;
                padding: 20px;
            }
            
            .cross-link-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            
            .cross-link-card {
                padding: 12px;
            }
        }
