.fuel-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0ebff 100%);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 2.5rem;
}


.fuel-unit-selection {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.fuel-unit-btn {
    padding: 0.9rem 4rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 500;
    font-family: "Roboto Slab", serif;
    text-transform: uppercase;
    color: #000;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.fuel-unit-btn.active {
   background: linear-gradient(135deg, #0F2BC9 0%, #667eea 100%);
    color: #fff;
}

/* Input Rows */
.fuel-input-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.fuel-input-field {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}

.fuel-input-field label {
    font-weight: 600;
    margin: 6px 0;
    color: #111;
}

.fuel-input-field input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-weight: 400;
    font-family: "Roboto Slab", serif;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fff;
}

/* Custom Dropdown */
.fuel-custom-select {
    position: relative;
    width: 100%;
}

.fuel-selected {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 9px 12px;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
}

.fuel-selected:after {
    content: "\25BC";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.fuel-items {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    display: none;
    max-height: 150px;
    overflow-y: auto;
}

.fuel-items div {
    padding: 10px;
    cursor: pointer;
    font-weight: 400;
}

.fuel-items div:hover {
    background-color: #f0f4ff;
}

.fuel-items.show {
    display: block;
}

.fuel-selected.fuel-active:after {
    transform: translateY(-50%) rotate(180deg);
}

/* Metric & Imperial Toggle */
.metric {
    display: block;
}

.imperial {
    display: none;
}

/* Calculate Button */
.fuel-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.fuel-calc-btn {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #0F2BC9 0%, #667eea 100%);
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
    font-family: "Roboto Slab", serif;
    border: none;
    border-radius: 8px;
    width: 40%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.fuel-calc-btn:hover {
    transform: translateY(1px);
}

/* Result Card */
.fuel-result-card {
    max-width: 900px;
    margin: 2rem auto 0 auto;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    padding: 0.8rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.fuel-result-box {
    flex: 1;
    min-width: 180px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0ebff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    margin: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fuel-result-box p{
    font-size: 1rem;
}

.result-value {
    font-size: 1.6rem;
    font-weight: 500;
    color: rgb(9, 119, 9);
    margin-bottom: 8px;
}

/* Input adjustments */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}


/***** Media Query *****/
/***** Tablets in portrait & smaller laptops (≤991px) ******/
@media (max-width: 991px) {
  .fuel-card {
    max-width: 800px;
}

.fuel-result-card {
    max-width: 800px;
}
}

/***** Standard tablets & landscape phones (≤768px) ******/
@media (max-width: 768px) {
  .fuel-card {
    max-width: 700px;
}

.fuel-result-card {
    max-width: 700px;
}


.fuel-result-box p{
    font-size: 1rem;
}

.result-value {
    font-size: 1.4rem;
}
}

/***** Large smartphones & phablets (≤617px) ******/
@media (max-width: 617px) {
  .fuel-card {
    max-width: 500px;
}

.fuel-result-card {
    max-width: 500px;
}

.fuel-unit-selection {
    flex-direction: column;
}

.fuel-input-row {
    align-items: center;
    flex-direction: column;
}

.fuel-input-field {
    width: 100%;
}


.fuel-calc-btn {
    width: 60%;
}

.fuel-result-box p{
    font-size: 1rem;
}

.result-value {
    font-size: 1.4rem;
}
}

/***** Small smartphones (≤450px) ******/
@media (max-width: 450px) {
  .fuel-card {
    max-width: 380px;
}

.fuel-result-card {
    max-width: 380px;
}

.fuel-unit-selection {
    flex-direction: column;
}

.fuel-input-row {
    align-items: center;
    flex-direction: column;
}

.fuel-input-field {
    width: 100%;
}


.fuel-calc-btn {
    width: 100%;
}

.fuel-result-box p{
    font-size: 0.9rem;
}

.result-value {
    font-size: 1.3rem;
}
}

/***** Extra small phones & older devices (≤365px) ******/
@media (max-width: 365px) {
  .fuel-card {
    max-width: 320px;
}

.fuel-result-card {
    max-width: 320px;
}

.fuel-unit-selection {
    flex-direction: column;
}

.fuel-input-row {
    align-items: center;
    flex-direction: column;
}

.fuel-input-field {
    width: 100%;
}


.fuel-calc-btn {
    width: 100%;
}

.fuel-result-box p{
    font-size: 0.8rem;
}

.result-value {
    font-size: 1.2rem;
}
}

