@use '@/styles/base';

.root {
    display: flex;
    gap: base.$gap-sm;
    align-items: center;
    height: 100%;
}

.icon-control {
    height: 100%;
}

.control {
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    height: 100%;
    cursor: default;
    transition: all 0.3s ease-in-out;

    &:active {
        transform: scale(0.95);
    }

    &:focus-visible {
        outline: none;
    }

    &[data-disabled] {
        cursor: not-allowed;
        opacity: 0.5;
    }

    &[data-active] {
        font-weight: base.$font-weight-lg;
    }
}

.uppercase {
    text-transform: uppercase;
}

.size-xs {
    padding: 0.125rem 0.5rem;
    font-size: base.$font-size-sm;
}

.size-sm {
    padding: 0.25rem 0.5rem;
    font-size: base.$font-size-sm;
}

.size-md {
    padding: 0.375rem 0.75rem;
    font-size: base.$font-size-md;
}

.size-lg {
    padding: 0.5rem 1rem;
    font-size: base.$font-size-lg;
}

.size-xl {
    padding: 0.75rem 1.25rem;
    font-size: base.$font-size-xl;
}

.radius-xs {
    border-radius: base.$border-radius-xs;
}

.radius-sm {
    border-radius: base.$border-radius-sm;
}

.radius-md {
    border-radius: base.$border-radius-md;
}

.radius-lg {
    border-radius: base.$border-radius-lg;
}

.radius-xl {
    border-radius: base.$border-radius-xl;
}

.filled-variant {
    @include base.button-filled-variant;

    &[data-active] {
        background-color: base.$primary-color;
        border-color: base.$primary-color;
    }
}

.default-variant {
    @include base.button-default-variant;

    &[data-active] {
        margin-bottom: -2px;
        border-bottom: 2px solid base.$primary-color;
    }
}

.primary-variant {
    @include base.button-primary-variant;

    &[data-active] {
        color: base.$primary-color;
    }
}

.subtle-variant {
    @include base.button-subtle-variant;

    &[data-active] {
        color: base.$primary-color;
    }
}

.label {
    font-weight: base.$font-weight-md;
}

.inner {
    display: flex;
    gap: base.$gap-sm;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.justify-between-icons {
    & > :nth-child(2) {
        margin-right: auto;
    }
}

.dots {
    display: flex;
    align-items: center;
    height: 100%;
}
