/* Health Calculator Plugin Styles */
.health-calc-wrapper {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    max-width: 800px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.health-calc-header {
    text-align: center;
    margin-bottom: 30px;
}

.health-calc-header h3 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.health-calc-form {
    margin-bottom: 30px;
}

.health-calc-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.health-calc-col {
    flex: 1;
}

.health-calc-col-full {
    width: 100%;
}

.health-calc-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.health-calc-form input[type="number"],
.health-calc-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 1.4;
}

.health-calc-form select {
    font-size: 12px;
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    padding: 10px 12px;
    height: auto;
    min-height: 44px;
    line-height: 1.3;
}

.health-calc-form input[type="number"]:focus,
.health-calc-form select:focus {
    outline: none;
    border-color: #379237;
    box-shadow: 0 0 0 3px rgba(55, 146, 55, 0.1);
    background-color: #f0f8f0;
}

.health-calc-form select:hover {
    border-color: #379237;
    background-color: #f5f9f5;
}

.health-calc-form select option {
    font-size: 12px;
    padding: 8px 12px;
    color: #333;
    background-color: white;
    line-height: 1.4;
    min-height: 24px;
}

/* Specific styling for regular dropdowns (gender, activity level) */
#gender, #activity-level {
    font-size: 12px;
    padding: 10px 12px;
    background-color: #f8fdf8;
    border: 2px solid #ddd;
    min-height: 44px;
    line-height: 1.3;
}

#gender:hover, #activity-level:hover {
    border-color: #379237;
    background-color: #f0f8f0;
}

#gender:focus, #activity-level:focus {
    border-color: #379237;
    background-color: #f0f8f0;
    box-shadow: 0 0 0 3px rgba(55, 146, 55, 0.1);
}

.input-with-unit {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.input-with-unit input {
    flex: 2;
}

.input-with-unit select {
    flex: 1;
    min-width: 80px;
    max-width: 90px;
    font-size: 12px;
    padding: 10px 8px;
    text-align: center;
    border: 2px solid #379237;
    background-color: #f8fdf8;
    color: #2e7a2e;
    font-weight: 500;
}

.input-with-unit select:hover {
    background-color: #379237;
    color: white;
}

.input-with-unit select:focus {
    background-color: #f0f8f0;
    color: #2e7a2e;
}

.health-calc-button-container {
    text-align: center;
    margin-top: 30px;
}

.health-calc-submit-btn {
    background-color: #379237;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.health-calc-submit-btn:hover {
    background-color: #2e7a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(55, 146, 55, 0.3);
}

.health-calc-submit-btn:active {
    transform: translateY(0);
}

.health-calc-results {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.results-section {
    margin-bottom: 25px;
}

.results-section:last-child {
    margin-bottom: 0;
}

.results-section h4 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #379237;
    padding-bottom: 8px;
}

.bmi-container {
    text-align: center;
}

.bmi-value {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #379237;
}

.bmi-indicator {
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, #3498db, #2ecc71, #f39c12, #e74c3c);
    border-radius: 10px;
    margin: 15px 0;
    position: relative;
}

.bmi-indicator::after {
    content: '▼';
    position: absolute;
    top: -25px;
    color: #333;
    font-size: 20px;
    transform: translateX(-50%);
}

.bmi-category {
    font-size: 18px;
    font-weight: 600;
    padding: 10px;
    border-radius: 6px;
    color: white;
    margin-top: 10px;
}

.bmi-underweight { background-color: #3498db; }
.bmi-normal { background-color: #2ecc71; }
.bmi-overweight { background-color: #f39c12; }
.bmi-obese { background-color: #e74c3c; }

.calorie-info {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #379237;
}

.calorie-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.calorie-item:last-of-type {
    border-bottom: none;
}

.calorie-item strong {
    color: #333;
}

.calorie-item span {
    font-weight: 600;
    color: #379237;
    font-size: 18px;
}

.calorie-deficit {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 4px solid #379237;
}

.calorie-deficit small {
    color: #2e7a2e;
    font-size: 14px;
    line-height: 1.4;
}

.calorie-deficit span {
    font-weight: 600;
    color: #379237;
}

/* Responsive Design */
@media (max-width: 768px) {
    .health-calc-wrapper {
        padding: 20px;
        margin: 10px 0;
    }
    
    .health-calc-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .health-calc-header h3 {
        font-size: 24px;
    }
    
    .input-with-unit {
        flex-direction: column;
    }
    
    .input-with-unit input,
    .input-with-unit select {
        flex: none;
        max-width: none;
        width: 100%;
    }
    
    #gender, #activity-level {
        font-size: 13px;
        padding: 12px;
        min-height: 48px;
    }
    
    .health-calc-submit-btn {
        width: 100%;
        padding: 15px;
    }
    
    .bmi-value {
        font-size: 36px;
    }
    
    .calorie-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .health-calc-wrapper {
        padding: 15px;
    }
    
    .health-calc-header h3 {
        font-size: 20px;
    }
    
    .bmi-value {
        font-size: 30px;
    }
}