body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        h1 {
            color: #1a5490;
            text-align: center;
        }
        .calculator-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }
        .calculator {
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 25px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .calculator h2 {
            color: #1a5490;
            margin-top: 0;
            text-align: center;
        }
        .input-group {
            margin-bottom: 20px;
        }
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #495057;
        }
        input, select {
            width: 100%;
            padding: 10px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            box-sizing: border-box;
        }
        button {
            background-color: #1a5490;
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            margin-right: 10px;
            font-size: 16px;
            width: 100%;
            margin-bottom: 10px;
        }
        button:hover {
            background-color: #144a7a;
        }
        .button-group {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 15px;
        }
        .results {
            background-color: #e8f4f8;
            border: 1px solid #b8e0d2;
            border-radius: 8px;
            padding: 25px;
            margin-top: 20px;
        }
        .result-item {
            background-color: white;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 15px;
            border-left: 4px solid #1a5490;
        }
        .result-item h3 {
            margin: 0 0 10px 0;
            color: #1a5490;
            font-size: 16px;
        }
        .result-item .value {
            font-size: 1.4em;
            font-weight: bold;
            color: #2c3e50;
            font-family: monospace;
        }
        .activity-categories {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 10px;
            margin: 15px 0;
        }
        .category-btn {
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            padding: 10px;
            cursor: pointer;
            text-align: center;
            transition: background-color 0.3s;
            font-size: 0.9em;
        }
        .category-btn:hover {
            background-color: #e9ecef;
        }
        .category-btn.active {
            background-color: #1a5490;
            color: white;
        }
        .activities-list {
            max-height: 200px;
            overflow-y: auto;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            background-color: white;
        }
        .activity-item {
            padding: 10px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .activity-item:hover {
            background-color: #f8f9fa;
        }
        .activity-item:last-child {
            border-bottom: none;
        }
        .activity-met {
            font-size: 0.8em;
            color: #666;
            font-family: monospace;
        }
        .time-presets {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin: 10px 0;
        }
        .time-preset {
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            padding: 8px;
            cursor: pointer;
            text-align: center;
            font-size: 0.9em;
            transition: background-color 0.3s;
        }
        .time-preset:hover {
            background-color: #e9ecef;
        }
        .weekly-summary {
            background-color: white;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 15px;
            margin-top: 15px;
        }
        .weekly-summary h4 {
            margin-top: 0;
            color: #1a5490;
        }
        .activity-log {
            margin-top: 10px;
        }
        .log-item {
            display: flex;
            justify-content: space-between;
            padding: 5px 0;
            border-bottom: 1px solid #f0f0f0;
            font-size: 0.9em;
        }
        .log-item:last-child {
            border-bottom: none;
        }
        .intensity-slider {
            width: 100%;
            margin: 10px 0;
        }
        .intensity-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.8em;
            color: #666;
            margin-top: 5px;
        }
        .info-section {
            background-color: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 8px;
            padding: 20px;
            margin-top: 20px;
        }
        .info-section h3 {
            color: #856404;
            margin-top: 0;
        }
        .met-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }
        .met-table th,
        .met-table td {
            border: 1px solid #dee2e6;
            padding: 8px;
            text-align: left;
        }
        .met-table th {
            background-color: #f8f9fa;
            font-weight: bold;
        }
        .back-link {
            display: inline-block;
            margin-top: 20px;
            color: #1a5490;
            text-decoration: none;
        }
        .back-link:hover {
            text-decoration: underline;
        }
        @media (max-width: 768px) {
            .calculator-container {
                grid-template-columns: 1fr;
            }
            .button-group {
                grid-template-columns: 1fr;
            }
            .time-presets {
                grid-template-columns: repeat(2, 1fr);
            }
        }
