@charset "utf-8";
/* CSS Document */
.container {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.unit-converter {
    font-family: Arial, sans-serif;
    background-color: #e7fef6; /* Changed background color here */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Updated .input-group to allow inline display within rows */
.input-group {
    margin-bottom: 15px;
    /* Removed display: block here to allow flex behavior in .input-row */
}

.input-group label {
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Make input rows display horizontally with wrapping */
.input-row {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    gap: 15px; /* Adds space between items */
    margin-bottom: 15px;
    align-items: flex-end; /* Aligns items at the bottom if heights differ */
}

.input-row .input-group {
    flex: 1; /* Allows input groups to grow and shrink */
    min-width: 120px; /* Minimum width for each input group to prevent excessive squishing */
    margin-bottom: 0; /* Remove bottom margin from input-group within a row */
}


.input-with-symbol {
    position: relative;
}

.input-with-symbol input {
    padding-left: 25px; /* Make space for the symbol */
}

.input-with-symbol #shipping-symbol,
.input-with-symbol #final-symbol {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #555;
}

.default-opacity {
    opacity: 0.7; /* Make the input slightly transparent */
    background-color: #e9ecef; /* A light grey background */
}

.button-group {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex; /* Arrange buttons horizontally */
    gap: 10px; /* Space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.add-button,
.remove-button,
.refresh-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    /* margin-right: 10px; Removed as gap is now used */
}

.add-button {
    background-color: #28a745;
    color: white;
}

.remove-button {
    background-color: #dc3545;
    color: white;
}

.remove-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.refresh-button {
    background-color: #007bff;
    color: white;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.converter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.converter-group {
    flex: 1;
    min-width: 200px;
}

.custom-dimension-converter * {
    box-sizing: border-box;
}

/* Specific styling for total section input groups if needed */
#total-section .input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

#total-section .input-group label {
    margin-bottom: 5px;
}

#total-section .input-group input,
#total-section .input-group select {
    width: 100%;
}