/* Container styles */
#weight-converter {
    max-width: 350px; /* Even more compact */
    margin: 10px auto;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Form element styles */
#weight-converter-form {
    width: 100%;
}

.input-group {
    margin-bottom: 10px; /* Reduced margin */
}

#weight-converter label {
    display: block;
    margin: 5px 0 2px; /* Tighter spacing */
    font-weight: 500;
    color: #333;
    font-size: 13px; /* Smaller font */
    line-height: 1.2;
}

#weight-converter input,
#weight-converter select {
    width: 100%;
    padding: 4px 6px; /* Reduced padding */
    height: 32px; /* Shorter height */
    margin-bottom: 6px; /* Smaller bottom margin */
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px; /* Smaller font */
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#weight-converter input:focus,
#weight-converter select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.08);
}

/* Result styles */
#weight-converter .conversion-result {
    margin-top: 12px;
    padding: 8px 10px;
    font-size: 1em; /* Standard font size */
    color: #333;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    min-height: 20px; /* Ensures consistent height */
}

#weight-converter .error {
    color: #333/*#dc3545*/;
    font-size: 0.85em;
    margin-top: 4px;
}