


.converter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    margin: 0 auto;
    max-width: 100%;
    padding: 20px;
}


.input-group input {
    /* width: 100%; */
    /* height: 45px; */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    appearance: none;
    background-color: #f7f7f7;
    font-size: 14px;
    cursor: pointer;
}

.arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    pointer-events: none;
}

.swap-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0078d7;
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.swap-btn:hover {
    background-color: #0063b1;
}

.unit-categories {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-top: 30px;
    padding: 20px;
}

.unit-categories h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: normal;
}

.unit-row {
    display: flex;
    margin-bottom: 15px;
    justify-content: space-between;
}

.unit-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    width: 30%;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
}

.unit-item .value {
    font-size: 14px;
    color: #333;
    margin-right: 5px;
    white-space: nowrap;
}

.unit-item .unit {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

/* Add CSS for navigation */
.converter-nav {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.converter-nav a {
    padding: 8px 15px;
    margin-right: 5px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    font-weight: bold;
}

.converter-nav a.active {
    background-color: #eef4ff;
    color: #1e88e5;
}

.converter-nav a:hover:not(.active) {
    background-color: #f8f8f8;
}

.title-text {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0 10px;
    color: #333;
}

/* Responsive styling */
@media screen and (max-width: 600px) {
    .converter-header {
        flex-direction: column;
    }
    
    .input-group {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .swap-btn {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .unit-row {
        /*flex-wrap: wrap;*/
    }
    
    .unit-item {
        width: 48%;
        margin-bottom: 10px;
    }
    
    .unit-item:nth-child(3) {
        width: 100%;
    }
}



