#fbac-calculator {
    /*max-width: 600px;*/
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.units-switch {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.units-switch label {
    margin: 0 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0073aa;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.input-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.input-row label {
    width: 80px;
    margin-right: 10px;
}

/*
.input-wrapper {
    position: relative;
    flex: 1;
    margin-right: 10px;
}
*/

/*
.input-wrapper input {
    width: 100%;
    padding: 8px;
}
*/

.unit-label {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    margin-right: 20px;
}

.area-box {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    /*background: #fff;*/
    background-color: #eee;
}

.area-result {
    display: block;
    font-weight: bold;
    color: #0073aa;
    margin-top: 10px;
}

.results-container {
    border: 1px solid #ccc;
    border-radius: 8px;
    /*background-color: #eee;*/
    padding: 15px;
}

button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background: #005177;
}

.remove-area {
    background: #d63638;
    margin-left: 10px;
}

.error-msg {
    color: red;
    font-size: 0.9em;
    margin-top: 5px
}

#total-area, #base-boards, #final-boards {
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* ... previous styles ... */

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for inputs */
    grid-template-rows: auto auto; /* Row 1: labels, Row 2: inputs */
    gap: 5px 10px; /* Row gap small, column gap for spacing */
    margin-bottom: 10px;
}

.board-dimentions {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    background-color: #eee;
}

.grid-label {
    grid-row: 1;
    margin: 0;
    font-weight: bold;
    text-align: left; /* Align under labels if needed, but since full width per column */
    padding-left: 5px; /* Align with input padding */
}

.input-wrapper {
    grid-row: 2;
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* Adjust for waste label (not in grid) */
#fbac-form label[for="waste"] {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.waste-field {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #eee;
    margin-bottom: 30px;
}

.waste-field input {
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* ... rest of styles (units-switch, area-box, etc.) remain the same ... */

/*
.area-box {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #fff;
}
*/

/*
.area-result {
    display: block;
    font-weight: bold;
    color: #0073aa;
    margin-top: 10px;
}
*/

/*
button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    margin-top: 10px;
}
*/

/*
button:hover {
    background: #005177;
}
*/

/*
.remove-area {
    background: #d63638;
    margin-left: 10px;
}
*/

/*
.error-msg {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}
*/

/*
#total-area, #base-boards, #final-boards {
    font-weight: bold;
    margin-top: 10px;
}*/
