body, div, input, li, p, span, td, textarea {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

.calculator-container {
    background: linear-gradient(to right, #f8f9fa, #e0eafc);
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
}

.calculator-title {
    text-align: center;
    color: #053b7d;
    margin-bottom: 5px;
    font-size: 28px;
}

.calculator-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #053b7d;
    box-shadow: 0 0 5px rgba(5, 59, 125, 0.3);
}

.height-inputs {
    display: flex;
    gap: 10px;
}

.height-inputs select {
    flex: 1;
}

.button-group {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #053b7d;
    color: white;
}

.btn-primary:hover {
    background-color: #042a5c;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.results-summary {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #053b7d, #0a5abd);
    border-radius: 10px;
    color: white;
}

.results-summary h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.calories-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calories-number {
    font-size: 48px;
    font-weight: 700;
}

.calories-label {
    font-size: 16px;
    opacity: 0.9;
}

.diet-tabs {
    display: flex;
    gap: 5px;
    margin: 20px 0 15px 0;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 15px;
    border: 2px solid #053b7d;
    background: white;
    color: #053b7d;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #e8f0fe;
}

.tab-btn.active {
    background: #053b7d;
    color: white;
}

.diet-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.diet-content h4 {
    color: #053b7d;
    margin: 0 0 10px 0;
    text-align: center;
}

.diet-description {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.macro-cards {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.macro-card {
    flex: 1;
    min-width: 100px;
    max-width: 150px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: white;
}

.macro-card.protein {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.macro-card.carbs {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.macro-card.fat {
    background: linear-gradient(135deg, #f39c12, #d68910);
}

.macro-icon {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.macro-value {
    font-size: 28px;
    font-weight: 700;
}

.macro-label {
    font-size: 12px;
    opacity: 0.9;
}

.meal-timing-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

.meal-timing-section h3 {
    color: #053b7d;
    margin: 0 0 15px 0;
    text-align: center;
}

.meal-schedule {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meal {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #053b7d;
}

.meal-time {
    font-weight: 700;
    color: #053b7d;
    width: 80px;
}

.meal-name {
    flex: 1;
    font-weight: 600;
}

.meal-percent {
    color: #666;
    font-size: 14px;
}

.disclaimer {
    background: #fff3cd;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 13px;
    color: #856404;
    border: 1px solid #ffc107;
}

.disclaimer-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.smaller-button {
    padding: 8px 15px;
    background: #053b7d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.smaller-button:hover {
    background: #042a5c;
}

@media (max-width: 500px) {
    .calculator-container {
        padding: 15px;
    }

    .macro-cards {
        flex-direction: column;
        align-items: center;
    }

    .macro-card {
        width: 100%;
        max-width: none;
    }

    .meal {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .meal-time {
        width: auto;
    }

    .diet-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}
