/* Unit Converter */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--rosa-claro);
    color: var(--texto);
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}
.tab-btn.active {
    background: var(--rosa);
    border-color: var(--rosa);
}
.tab-btn:hover:not(.active) {
    background: var(--azul-hover);
    border-color: var(--azul-pastel);
}

.converter-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.unit-row {
    display: flex;
    gap: 0.8rem;
    width: 100%;
}

.unit-select {
    flex-shrink: 0;
    padding: 0.8rem 0.8rem;
    border: 2px solid var(--rosa);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--texto);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    max-width: 160px;
    transition: border-color 0.3s;
}
.unit-select:focus { border-color: var(--azul-pastel); }

.swap-btn {
    background: var(--rosa-claro);
    border: 2px solid var(--rosa);
    color: var(--texto);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.swap-btn:hover {
    background: var(--azul-hover);
    transform: rotate(180deg) scale(1.1);
}
