// Copyright (C) 2017-2024 Smart code 203358507

@import (reference) '~stremio/common/screen-sizes.less';

.add-item {
    display: flex;
    padding: 0.35rem 1.5rem;
    border-radius: 2.5rem;
    transition: 0.3s all ease-in-out;
    background-color: var(--overlay-color);
    border: 2px solid transparent;
    justify-content: space-between;
    position: relative;

    .input {
        background-color: var(--overlay-color);
        border-radius: var(--border-radius);
        color: var(--primary-foreground-color);
        padding: 0.5rem 0.75rem;
        border: 1px solid transparent;
        width: 70%;

        &:focus {
            border: 1px solid var(--primary-foreground-color);
        }
    }

    .actions {
        display: flex;
        gap: 0.25rem;
        margin-right: 0;

        .add, .cancel {
            display: flex;
            gap: 0.5rem;
            padding: 0.25rem;
            align-items: center;
            justify-content: center;
            background-color: transparent;
            transition: 0.3s all ease-in-out;
            border-radius: var(--border-radius);
            width: 3rem;
            opacity: 0.6;

            .icon {
                width: 2rem;
                height: 2rem;
                color: var(--primary-foreground-color);
            }

            &:hover {
                opacity: 1;
                background-color: var(--overlay-color);
            }
        }

        .add {
            .icon {
                width: 1.8rem;
                height: 1.8rem;
            }
            &:hover {
                .icon {
                    color: var(--secondary-accent-color);
                }
            }
        }

        .cancel {
            &:hover {
                .icon {
                    color: var(--danger-accent-color);
                }
            }
        }
    }

    &:hover {
        border: 2px solid var(--overlay-color);
    }
}

@media only screen and (max-width: @minimum) {
    .add-item {
        padding: 0.35rem 0.5rem;
    }
}