.macro-container{
    align-items: center;
    padding:25px;
    max-width:800px;
    border-radius:10px;
    box-shadow:0 4px 12px rgba(0,0,0,0.12);
}

.unit-buttons{
    display:flex;
    gap:10px;
    margin-bottom:15px;
}

.unit-buttons button{
    flex:1;
    padding:8px;
    border:none;
    border-radius:6px;
    background:#999;
    color:white;
    cursor:pointer;
}

.unit-buttons button:disabled{
    background:#f34f3a;
    cursor:default;
}

label{
    display:block;
    margin-top:12px;
    font-weight:bold;
}

input, select{
    width:100%;
    padding:8px;
    margin-top:5px;
    border-radius:6px;
    border:1px solid #ccc;
}

button.calculate{
    margin-top:18px;
    width:100%;
    padding:10px;
    border:none;
    border-radius:6px;
    background:#f34f3a;
    color:white;
    font-size:16px;
    cursor:pointer;
}

button.calculate:hover{
    background:#9e2c1d;
}

.results{
    margin-top:20px;
    padding:15px;
    background:#ffffff;
    border-radius:6px;
}

.hidden{
    display:none;
}

.error{
    color:red;
    font-size:13px;
}


.macro-input {
    line-height:14px;
}

.tabs{
    display:grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top:10px;
    margin-bottom:10px;
    gap:4px;
}

.tab{
    padding:8px;
    border:none;
    background:#e0e6ff;
    cursor:pointer;
    font-size:14px;
    width:100%;
}

    .tab.active{
    background:#f34f3a;
    color:white;
    font-weight:bold;
}



.results-text {
    color: #000;
}


.results-table{
    width:100%;
    border-collapse:collapse;
    border-radius:10px;
    margin-top:10px;
    font-size:15px;
}

.results-table td{
    padding:8px;
    border:1px solid #ddd;
}

.results-table .label{
    background:#e0e6ff;
    color: #000;
   
    width:40%;
}

.results-table .value{
    background:#d8eddb;
    color: #000;
    text-align:left;
    font-weight:600;
}


.macro-slider{
margin-top:10px;
}

.macro-slider input[type=range]{
width:100%;
}

/* Base slider */

.slider{
    width:100%;
    appearance:none;
    height:8px;
    border-radius:5px;
    outline:none;
    margin-top:6px;
}

/* THUMB */

.slider::-webkit-slider-thumb{
    appearance:none;
    height:18px;
    width:18px;
    border-radius:50%;
    background:#333;
    cursor:pointer;
    border:2px solid white;
}

.slider::-moz-range-thumb{
    height:18px;
    width:18px;
    border-radius:50%;
    background:#333;
    cursor:pointer;
    border:none;
}

/* Protein (Blue) */

.slider.protein{
    background:#4a90e2;
}

/* Carbs (Orange) */

.slider.carbs{
    background:#f5a623;
}

/* Fat (Red) */

.slider.fat{
    background:#d0021b;
}

