body {
    font-family: 'Arial', sans-serif;
    color: #333333;
    background-color: #FFFFFF;
    margin: 0;
    padding: 0;
}

header {
    background-color: #4A90E2;
    color: #FFFFFF;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #50C878;
}

main {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.content-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px;
}

.converter-interface {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-right: 20px;
    position: relative;
}

.sidebar {
    width: 300px;
    background-color: #f5f5f5;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.ad-section, .info-section {
    margin-bottom: 20px;
}

.ad {
    background-color: #e0e0e0;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
}

footer {
    background-color: #333333;
    color: #FFFFFF;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-links {
    margin-bottom: 10px;
}

.legal {
    font-size: 0.9em;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    justify-content: center;
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-bottom: none;
    margin-right: 5px;
    background-color: #f9f9f9;
    white-space: nowrap;
}

.tab-item.active {
    background-color: #fff;
    border-top: 2px solid #007bff;
    font-weight: bold;
}

.input-output {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 20px 0;
    gap: 20px;
}

.input-output input {
    width: 45%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.unit-selection {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;
}

.unit-box {
    width: 45%;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fff;
}

.unit-title {
    padding: 5px;
    margin-bottom: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.unit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.unit-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    margin: 5px 0;
    cursor: pointer;
    background-color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

.unit-item:hover {
    background-color: #e0e0e0;
}

.unit-item.selected {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
}

.result {
    margin-left: auto;
    text-align: right;
    min-width: 50px;
}

.format-selection {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
}

.format-selection label {
    margin-right: 5px;
} 