:root {
    --button-color: #00a9f3;
    --button-text-color: #ffffff;
    --button-hover-color: #00a9f3;
}

#colorPreview, #topBarColorPreview {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    position: relative;
}

#topBarColorPreview {
    height: 50px;
    margin-top: 20px;
}

#colorPreview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 15px;
    background-size: cover; /* Обеспечивает, что фон занимает всю ширину блока */
    background-position: center; /* Центрирует фон */
    background-repeat: no-repeat; /* Убирает повторение фона */
    width: 100%; /* Ширина блока */
    height: auto; /* Высота блока определяется содержимым */
    min-height: 200px; /* Минимальная высота блока без фона */
}

.color-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#previewButton, #previewButtonHover {
    width: 320px;
}

#colorSettingsForm {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-right: 15px;
}

#colorSettingsForm div {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

#colorSettingsForm label {
    white-space: nowrap;
}

.color-preview-content .button {
    background-color: var(--button-color);
}

.color-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-button-container {
    position: relative;
    display: inline-block;
    margin: 5px 0 15px 0;
    z-index: 5;
}

.icon-button-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 33px;
    height: 33px;
    background: var(--button-text-color);
    border-radius: 25%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.icon-button {
    width: 35px;
    height: 35px;
    background: none;
    padding: 0;
    margin: 0 5px;
    border: none;
    cursor: pointer;
    color: var(--button-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-button-hover {
    color: var(--button-hover-color);
}

.icon-button svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 1024px) {
    .icon-button {
        width: 30px;
        height: 30px;
        margin: 0 2px;
        background: white;
        border: none;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
    }
    .icon-button-background {
        width: 28px;
        height: 28px;
    }
}
