/* ===== Desktop Overrides (≥768px) ===== */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

/* Headings */
h3 {
    font-size: 2.1rem;
    text-align: center;
}
h4 {
    font-size: 1.2rem;
    text-align: center;
}

/* Measurement Menu - Desktop */
/* ===== Desktop menu layout ===== */
#measurementTypes {
    display: flex;
    flex-wrap: wrap; 
    gap: 8px;
    justify-content: flex-start;
    padding: 8px 0;
    width: 100%;
    overflow-x: visible;
}

#measurementTypes .menu-item {
    flex: 0 0 auto;            /* Do not shrink, fixed width */
    min-width: 90px;
    text-align: center;
    text-decoration: none;
    background-color: #336699;
    
    border-radius: 45%; 
    color: #fff;
    font-size: 0.95rem;
    padding: 8px 12px;
}
/* ===== Menu Hover & Active Styles ===== */
#measurementTypes .menu-item:hover {
    background-color: blue;
    color: white;
}

/* Active menu item */
#measurementTypes .menu-item.active {
    background-color: #003366;
    color: orange;
}

/* Optional: Ensure colors apply to links inside menu items */
#measurementTypes .menu-item:hover a,
#measurementTypes .menu-item.active a {
    color: inherit; /* inherit white or orange */
    text-decoration: none;
}



/* Converter Form - Desktop */
.converter-table .form-control,
.converter-table .form-select {
    font-size: 1rem;
}

/* Result Display - Desktop */
#resultDisplay {
    font-size: 1.2rem;
}

/* Dropdowns - Desktop */
.from-unit-select option,
.to-unit-select option {
    font-size: 0.95rem;
}
.from-unit-select, .to-unit-select {
    height: 200px;
    overflow-y: auto;
}

/* Sidebar - Desktop */
.sidebar {
    display: block;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 5px;
}

/* Footer - Desktop */
#footer {
    padding: 30px 0;
}
