body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

.clock-preview-module {
    font-family: Arial, sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

.container_clock {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    
    margin: 0 auto;
    background: #fff;
    
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Колонки */
.controls-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.left-column {
    flex: 1;
    min-width: 250px;
}

.center-column {
    flex: 2;
    min-width: 350px;
    text-align: center;
}

.right-column {
    flex: 1;
    min-width: 250px;
}

/* Стили для canvas */
#canvas {
    border: 1px solid #ddd;
    height: auto;
    max-height: 100%;
    width: 100%;
    max-width: 380px;
    display: block;
    margin: 0 auto 15px;
    transition: opacity 0.3s ease;
}

/* Стили для селектов */
.custom-select {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.options {
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 380px;
    overflow-y: auto;
    margin-top: 5px;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
}

.option:hover {
    background: #f0f0f0;
    transition: background-color 0.2s;
}

.option img {
    width: 90px;
    
    object-fit: cover;
    border-radius: 3px;
}

.option.selected-option {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
    font-weight: bold;
    transition: all 0.2s ease;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.result-section h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.2em;
}

.characteristics-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.characteristics-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #343a40;
    font-size: 1.2em;
}

.characteristics-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.char-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: white;
    border-radius: 4px;
    margin-bottom: 5px;
}
/* Адаптивность для экранов < 768px (планшеты и телефоны) */
@media (max-width: 768px) {
    .container_clock {
        flex-direction: column; /* Колонки идут друг под другом */
        gap: 15px; /* Уменьшаем отступы */
    }

    /* Убираем фиксированные min-width */
    .left-column,
    .center-column,
    .right-column {
        min-width: unset; /* Сбрасываем минимальную ширину */
        width: 100%; /* Занимаем всю ширину родителя */
    }

    /* Корректируем flex-grow для лучшей адаптации */
    .center-column {
        flex: 1; /* Не растягиваем слишком сильно */
    }

    /* Уменьшаем отступы в секции характеристик */
    .characteristics-section {
        padding: 15px;
    }

    /* Уменьшаем шрифт заголовков */
    .result-section h4,
    .characteristics-section h2 {
        font-size: 1.1em;
    }
}

/* Дополнительно: для очень маленьких экранов (< 480px) */
@media (max-width: 480px) {
    .container_clock {
        padding: 10px; /* Уменьшаем внутренние отступы контейнера */
    }

    .option {
        gap: 8px; /* Меньше пространства между иконкой и текстом */
        padding: 6px 8px; /* Компактные отступы у опций */
    }

    .char-item {
        padding: 6px 10px; /* Более компактные строки характеристик */
        flex-wrap: wrap; /* Если текст длинный, переносим */
    }

    .char-item strong {
        margin-bottom: 4px; /* Отступ для переноса текста */
    }
}