/*
 * FreecalcHub.com - Length Unit Converter
 * Version: 1.0
 * Date Created: May 26, 2025
 * Description: Specific styles for the Length Unit Converter.
 */

.conversion-form-layout {
    display: flex;
    align-items: center; /* Align items vertically */
    gap: 15px; /* Space between elements */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.conversion-form-layout .form-group {
    margin-bottom: 0; /* Remove default margin as we use gap */
    flex-grow: 1;
}

.conversion-form-layout .form-group#valueInputGroup {
    flex-basis: 150px; /* Give more space to value input */
}
.conversion-form-layout .form-group#fromUnitGroup,
.conversion-form-layout .form-group#toUnitGroup {
    flex-basis: 200px; /* Specific basis for select dropdowns */
}


.conversion-form-layout #swapButton {
    padding: 10px 15px;
    height: auto; /* Ensure button height matches inputs */
    line-height: normal;
    flex-shrink: 0; /* Prevent button from shrinking */
    margin-top: 20px; /* Align with labels if they are on top */
}
/* Adjust margin-top if labels are part of the form-group inputs */
.conversion-form-layout #swapButton {
    align-self: flex-end; /* Align with bottom of taller inputs */
    margin-bottom: 5px; /* if using .form-group internal padding */
}


.main-result {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
    background-color: var(--background-alt);
    border-radius: var(--border-radius);
}

.quick-table {
    margin-top: 15px;
    padding: 15px;
    background-color: var(--background-alt);
    border-radius: var(--border-radius);
}

.quick-table h4 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-muted);
}

.quick-table ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.quick-table li {
    padding: 8px;
    border-bottom: 1px solid var(--border-color-light);
    font-size: 0.95em;
}
.quick-table li:last-child {
    border-bottom: none;
}

.quick-table li strong {
    color: var(--text-color);
}

.quick-table li span {
    color: var(--accent-color);
    float: right; /* Align value to the right */
}

/* Ensure select dropdowns take available width in their flex items */
.conversion-form-layout .form-group select {
    width: 100%;
}
