* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.calculator-container {
    width: 100%;
    max-width: 100%; /* Changed from 900px */
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;}

.three-column-grid {
    display: grid;
    grid-template-columns: 20% 60% 20%;
    gap: 10px;
    padding: 10px;
    width: 100%;
}

.column {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
}


.main-content {
    display: flex;
}

.calculator-section {
    flex: 3;
    /* Your existing calculator content stays here */
}

.right-column {
    flex: 1;
    min-width: 250px;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
}
.header {
    background: linear-gradient(to right, #4b6cb7, #182848);
    color: white;
    padding: 25px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.header p {
    opacity: 0.9;
    font-size: 16px;
}

.tabs {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    transition: all 0.3s ease;
}

.tab:hover {
    background: #e2e8f0;
}

.tab.active {
    background: white;
    color: #4b6cb7;
    border-bottom: 3px solid #4b6cb7;
}

.calculator-content {
    padding: 25px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tool-description {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #4b6cb7;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 8px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.3s;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: #4b6cb7;
    box-shadow: 0 0 0 2px rgba(75, 108, 183, 0.2);
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
}

.radio-option input {
    width: auto;
}

.radio-option label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 14px;
}

.calculate-btn {
    background: linear-gradient(to right, #4b6cb7, #182848);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 5px;
}

.calculate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(75, 108, 183, 0.3);
}

.result-container {
    margin-top: 20px;
    padding: 18px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #4b6cb7;
}

.result-title {
   font-size: 18px;
   color: #1e293b !important;  
   margin-bottom: 12px;
   display: flex;
   align-items: center;
   gap: 8px;
   font-weight: 600; 
}

.result-value {
    font-size: 26px;
    font-weight: 700;
    color: #4b6cb7;
    margin: 8px 0;
}

.result-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
    margin-top: 8px;
    font-size: 13px;
}

.result-details {
    margin-top: 12px;
    line-height: 1.5;
    color: #475569;
    font-size: 13px;
}

.bmi-scale {
    display: flex;
    margin-top: 15px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scale-item {
    flex: 1;
    padding: 8px 4px;
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

/* Add Fitness category color */
.fitness { background: #9ccc65; }

/* Ensure all scale items have white text and proper styling */
.bmi-scale .scale-item {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Highlight for user's position */
.scale-item.user-position {
    border: 3px solid #1a237e !important;
    transform: scale(1.05);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Make sure the YOU indicator is visible */
.scale-item.user-position div {
    font-weight: bold;
    color: white;
}

.underweight { background: #4fc3f7; }
.normal { background: #66bb6a; }
.overweight { background: #ffb74d; }
.obese { background: #ff7043; }

.underweight { background: #4fc3f7; }
.normal { background: #66bb6a; }
.fitness { background: #9ccc65; }
.overweight { background: #ffb74d; }
.obese { background: #ff7043; }

.sleep-schedule {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.sleep-time {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.sleep-time h3 {
    margin-bottom: 8px;
    color: #475569;
    font-size: 14px;
}

.sleep-time-value {
    font-size: 20px;
    font-weight: 700;
    color: #4b6cb7;
}

.sleep-cycles {
    margin-top: 15px;
}

.sleep-cycles h3 {
    margin-bottom: 10px;
    color: #334155;
    font-size: 15px;
}

.cycle {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 10px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #4b6cb7;
    font-size: 13px;
}

.cycle-time {
    font-weight: 600;
    width: 80px;
    color: #475569;
}

.cycle-desc {
    flex: 1;
    color: #64748b;
}

.macro-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
}

.macro-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.macro-item h4 {
    color: #475569;
    margin-bottom: 8px;
    font-size: 14px;
}

.macro-value {
    font-size: 20px;
    font-weight: 700;
    color: #4b6cb7;
    margin-bottom: 5px;
}

.macro-grams {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.macro-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.macro-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.protein-bar { background: #ef4444; }
.carbs-bar { background: #3b82f6; }
.fat-bar { background: #f59e0b; }

.disclaimer {
    margin-top: 30px;
    padding: 12px;
    background: #fff3cd;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
    font-size: 16px;
    color: #856404;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(to right, #4b6cb7, #182848);
    color: white;
    margin-top: 30px;
    border-radius: 8px;
}

.footer-container p {
    margin: 0;
    font-size: 14px;
}

.footer-container a {
    color: #c3cfe2;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-container a:hover {
    color: white;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .macro-results {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .input-group {
        margin-bottom: 12px;
    }
    
    .calculator-content {
        padding: 30px;
    }
    
    .tab {
        padding: 15px;
        font-size: 16px;
    }
}