/* Base Styles */
.adv-calorie-calculator {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
    line-height: 1.6;
}

.calculator-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calculator-header h2 {
    margin: 0;
    font-size: 28px;
}

.calculator-header p {
    margin: 10px 0 0;
    opacity: 0.9;
}

.calculator-header i {
    margin-right: 10px;
}

/* Form Styles */
.calculator-form {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
}

.form-section h3 i {
    margin-right: 8px;
    color: #e74c3c;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #e74c3c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-unit {
    padding: 12px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    color: #666;
}

/* Activity Levels */
.activity-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.activity-option input[type="radio"] {
    display: none;
}

.activity-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.activity-option label i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #7f8c8d;
}

.activity-option label span {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.activity-option label small {
    font-size: 12px;
    color: #7f8c8d;
}

.activity-option input[type="radio"]:checked + label {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

.activity-option input[type="radio"]:checked + label i,
.activity-option input[type="radio"]:checked + label span {
    color: #e74c3c;
}

/* Macro Sliders */
.macro-sliders {
    margin-top: 20px;
}

.macro-slider-group {
    margin-bottom: 15px;
}

.macro-slider-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.macro-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #eee;
    outline: none;
}

.macro-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
}

#protein-percent::-webkit-slider-thumb {
    background: #3498db;
}

#carbs-percent::-webkit-slider-thumb {
    background: #2ecc71;
}

#fat-percent::-webkit-slider-thumb {
    background: #9b59b6;
}

.macro-validation {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.macro-validation.error {
    background: #fdecea;
    color: #d32f2f;
}

.macro-validation i {
    margin-right: 5px;
}

/* Calculate Button */
.calculate-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.calculate-button:hover {
    background: linear-gradient(to right, #c0392b, #a52714);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.4);
}

.calculate-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Results Section */
.calculator-results {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.results-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
}

.results-header h3 i {
    margin-right: 10px;
    color: #e74c3c;
}

.save-button {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.save-button:hover {
    background: #2980b9;
}

.save-button i {
    margin-right: 5px;
}

/* Results Summary */
.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.result-card {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    border-top: 4px solid #e74c3c;
}

.goal-card {
    background: rgba(231, 76, 60, 0.1);
    border-top-color: #c0392b;
}

.result-value {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.result-label {
    font-size: 16px;
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.result-description {
    font-size: 13px;
    color: #95a5a6;
}

/* Macronutrients Visualization */
.results-macros {
    margin-bottom: 30px;
}

.results-macros h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
}

.results-macros h4 i {
    margin-right: 8px;
    color: #e74c3c;
}

.macros-visual {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
}

.macros-pie {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(#3498db 0% 30%, #2ecc71 30% 70%, #9b59b6 70% 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.macros-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.macro-detail {
    display: grid;
    grid-template-columns: 80px 50px 1fr;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: #f9f9f9;
}

.macro-detail.protein {
    border-left: 4px solid #3498db;
}

.macro-detail.carbs {
    border-left: 4px solid #2ecc71;
}

.macro-detail.fat {
    border-left: 4px solid #9b59b6;
}

.macro-amount {
    font-weight: 700;
    font-size: 16px;
}

.macro-percent {
    font-weight: 600;
    color: #7f8c8d;
}

.macro-name {
    font-weight: 600;
}

.macro-calories {
    grid-column: 1 / span 3;
    font-size: 13px;
    color: #95a5a6;
    margin-top: 5px;
}

/* Meal Plan Suggestions */
.results-mealplan h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
}

.results-mealplan h4 i {
    margin-right: 8px;
    color: #e74c3c;
}

.mealplan-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));