body {
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 0;
}

#app {
    padding-bottom: 20px;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100%;
    background: #09090b;
}

.list-item {
    transition: all 0.25s ease;
}

.list-item:active {
    transform: scale(0.96);
    background-color: #18181b;
}

/* формирование карточки для листа в engine.php */
.flex-fix {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
}

.room-select-fix {
    width: 100%;
    height: 4em;
    background: transparent;
    border-color: transparent !important;
}

/* стили чекбокса на странице настроек */
/* Контейнер-карточка (линия) */
.custom-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #18181b; /* Цвет zinc-900 */
    border-radius: 24px; /* Скругление углов */
    padding: 24px; /* Внутренние отступы */
    box-sizing: border-box;
}

/* Крупная иконка */
.custom-icon {
    font-size: 48px; /* Размер иконки (можно менять) */
    line-height: 1;
    user-select: none;
}

/* Оболочка свитча (настройки размера) */
.custom-switch {
    position: relative;
    display: inline-block;
    width: 90px; /* Ширина переключателя */
    height: 50px; /* Высота переключателя */
}

/* Прячем стандартный чекбокс */
.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Задний фон переключателя (основа) */
.custom-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3f3f46; /* Цвет в выключенном состоянии */
    transition: 0.3s;
    border-radius: 50px; /* Полное скругление */
}

/* Кругляк внутри переключателя (толкатель) */
.custom-slider:before {
    position: absolute;
    content: "";
    height: 42px; /* Размер круга внутри */
    width: 42px; /* Размер круга внутри */
    left: 4px; /* Отступ от левого края */
    bottom: 4px; /* Отступ от нижнего края */
    background-color: white;
    transition: 0.3s;
    border-radius: 50px;
}

/* Стиль фона при включении */
.custom-switch input:checked + .custom-slider {
    background-color: #16a34a; /* Яркий зеленый цвет при активации */
}

/* Движение круга вправо при включении */
.custom-switch input:checked + .custom-slider:before {
    transform: translateX(40px); /* Дистанция сдвига (ширина 90px - круг 42px - отступы) */
}
