:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #4bb543;
    --warning-color: #f8961e;
    --danger-color: #f94144;
    --border-radius: 12px;
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}


/* Add to :root */
:root {
    /* ... existing variables ... */
    --body-color: #6d6875;
    --body-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Add after .result-box */
.body-visualization {
    width: 150px;
    height: 300px;
    margin: 20px auto;
    position: relative;
    perspective: 1000px;
}

.body-shape {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.5s ease-in-out;
}

.body-front, .body-side {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-color: var(--body-color);
    border-radius: 75px 75px 20px 20px;
    box-shadow: var(--body-shadow);
}

.body-front {
    transform: rotateY(0deg);
}

.body-side {
    transform: rotateY(90deg);
}

.body-shape:hover {
    transform: rotateY(90deg);
}

/* BMI-specific body shapes */
.body-underweight {
    width: 100px;
    background-color: #4bb543;
}

.body-healthy {
    width: 120px;
    background-color: #4bb543;
}

.body-overweight {
    width: 140px;
    background-color: #f8961e;
}

.body-obese {
    width: 160px;
    background-color: #f94144;
}

.body-animation {
    animation: bodyChange 2s forwards;
}

@keyframes bodyChange {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(0.9);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Add to media query */
@media (max-width: 480px) {
    .body-visualization {
        width: 120px;
        height: 240px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7ff;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

header p {
    color: #666;
    font-size: 1rem;
}

.calculator-card, .results-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.results-card {
    display: none;
}

.results-card.show {
    display: block;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

input[type="number"], select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

input[type="number"]:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.gender-options {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.gender-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}

.gender-options input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.gender-options input[type="radio"]:checked {
    border-color: var(--primary-color);
}

.gender-options input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.calculate-btn, .back-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calculate-btn:hover, .back-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.calculate-btn:active, .back-btn:active {
    transform: translateY(0);
}

.result-box {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.result-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.bmi-value {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin: 10px 0;
    color: var(--primary-color);
}

.bmi-category {
    text-align: center;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.bmi-bar {
    height: 20px;
    background: linear-gradient(to right, #4bb543, #f8961e, #f94144);
    border-radius: 10px;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
}

.bmi-fill {
    height: 100%;
    background-color: white;
    position: absolute;
    right: 0;
    border-radius: 0 10px 10px 0;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.bmi-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

.calories-value {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 10px 0;
    color: var(--primary-color);
}

.tips-box ul {
    padding-left: 20px;
}

.tips-box li {
    margin-bottom: 8px;
}

footer {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 30px;
}

.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .calculator-card, .results-card {
        padding: 20px 15px;
    }
    
    .gender-options {
        gap: 15px;
    }
}