/* US Health Calculators - Main Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- CUSTOM SLIDER INPUTS --- */
input[type=range].slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
    transition: background 0.2s;
}

input[type=range].slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #2563eb; /* Blue-600 */
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.1s;
}

input[type=range].slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* --- GAUGE ANIMATIONS --- */
.gauge-arc {
    /* Rainbow arc for BMI */
    background: conic-gradient(
        from 270deg,
        #3b82f6 0deg 35deg,   /* Blue (Under) */
        #22c55e 35deg 75deg,  /* Green (Normal) */
        #eab308 75deg 100deg, /* Yellow (Over) */
        #ef4444 100deg 180deg /* Red (Obese) */
    );
}

.chart-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(#3b82f6 0% 0%, #e2e8f0 0% 100%);
    transition: background 0.5s ease-out;
}

.chart-inner {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 160px; height: 160px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* --- UTILITIES --- */
.prose h2 { @apply text-2xl font-bold text-slate-900 mt-8 mb-4; }
.prose h3 { @apply text-xl font-bold text-slate-800 mt-6 mb-3; }
.prose p { @apply text-slate-600 mb-4 leading-relaxed; }
.prose ul { @apply list-disc pl-5 mb-6 text-slate-600 space-y-2; }
.prose strong { @apply font-semibold text-slate-800; }