.control {
    width: 44px;
    height: 44px;
    border-radius: var(--mantine-radius-lg);
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            135deg,
            transparent 0%,
            rgba(6, 182, 212, 0.1) 50%,
            transparent 100%
        );
        opacity: 0;
        transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 0;
    }

    &:hover::before {
        opacity: 1;
    }

    & > * {
        position: relative;
        z-index: 1;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    &:hover > * {
        transform: scale(1.1);
        filter: drop-shadow(0 2px 4px rgba(6, 182, 212, 0.3));
    }

    @mixin light {
        border-color: var(--mantine-color-gray-3);
        color: var(--mantine-color-gray-7);
        background: linear-gradient(
            135deg,
            var(--mantine-color-white) 0%,
            var(--mantine-color-gray-0) 100%
        );
        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.05),
            0 1px 4px rgba(0, 0, 0, 0.03);

        @mixin hover {
            background: linear-gradient(
                135deg,
                var(--mantine-color-gray-0) 0%,
                var(--mantine-color-gray-1) 100%
            );
            border-color: var(--mantine-color-cyan-3);
            color: var(--mantine-color-cyan-6);
            box-shadow:
                0 4px 16px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.05);
            transform: translateY(-1px);
        }
    }

    @mixin dark {
        border-color: var(--mantine-color-dark-4);
        color: var(--mantine-color-white);
        background: linear-gradient(
            135deg,
            var(--mantine-color-dark-6) 0%,
            var(--mantine-color-dark-7) 100%
        );
        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.2),
            0 1px 4px rgba(0, 0, 0, 0.1);

        @mixin hover {
            background: linear-gradient(
                135deg,
                var(--mantine-color-dark-5) 0%,
                var(--mantine-color-dark-6) 100%
            );
            border-color: var(--mantine-color-cyan-4);
            color: var(--mantine-color-cyan-3);
            box-shadow:
                0 4px 16px rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(6, 182, 212, 0.2);
            transform: translateY(-1px);
        }
    }
}
