.calculator-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 30px 0;
}

.converter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.nav-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    color: #666;
}

.nav-btn:hover {
    background: #e9ecef;
    color: #333;
}

.nav-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.converter-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.converter-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.conversion-grid {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    gap: 20px;
    align-items: center;
}

.swap-btn-container {
    display: flex;
    justify-content: center;
}

.swap-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s;
}

.swap-btn:hover {
    background: #f8f9fa;
    transform: rotate(180deg);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-weight: 600;
    color: var(--text-color);
}

.input-wrapper {
    position: relative;
    display: flex;
}

.input-wrapper input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.unit-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    margin-top: 5px;
}

.common-conversions {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.common-conversions h3 {
    font-size: 1.1rem;
    margin-top: 15px;
    color: #666;
}

.conversion-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.conversion-table th,
.conversion-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.conversion-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

@media (max-width: 768px) {
    .conversion-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .swap-btn {
        transform: rotate(90deg);
    }
    
    .swap-btn:hover {
        transform: rotate(270deg);
    }
}
