* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    display: flex;
}

.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #2c3e50;
    padding: 2rem 0;
    position: fixed;
    left: 0;
    top: 0;
    color: white;
}

.sidebar-header {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    padding: 0.8rem 1.5rem;
    transition: background-color 0.3s;
}

.nav-links li:hover {
    background-color: #34495e;
}

.nav-links a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
}

.active {
    background-color: #34495e;
    border-left: 4px solid #3498db;
}

.main-content {
    margin-left: 250px;
    padding: 2rem;
    width: calc(100% - 250px);
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
}

.converter-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.converter-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

select, input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.result {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
}
.converter-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start; /* Changed from center to flex-start */
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: center; /* This ensures input and select are aligned */
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

select, input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    height: 38px; /* Explicitly set height to match */
}

input {
    width: 250px;
}

select {
    width: 200px;
}

.info-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.explanation {
    margin-top: 4rem; /* Increased from 2rem to 4rem */
    padding: 1.5rem;  /* Slightly increased padding */
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
    border: 1px solid #e9ecef; /* Added subtle border */
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #007bff;
    border-radius: 50%;
    margin-right: 6px;
    position: relative;
    cursor: pointer;
}

input[type="radio"]:checked {
    background-color: #007bff;
    border: 2px solid #007bff;
}

input[type="radio"]:checked::after {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0 0 15px 0;
}
legend {
    font-weight: 500;
    margin-bottom: 8px;
}