/* ====================================================
   Модуль синхронизации коллекций плашек - Стили
   ==================================================== */

/* Контейнер галереи */
#plankGallery {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--block-button);
    position: relative;
}

/* Заголовок галереи */
#plankGallery .gallery-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Сетка галереи */
#plankGallery .plank-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    max-height: 500px;
    overflow-y: auto; padding-right: 10px;
}

/* Скроллбар для галереи */
#plankGallery .plank-gallery-grid::-webkit-scrollbar {
    width: 2px;
}


/* Элемент галереи */
#plankGallery .gallery-item-wrapper {
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 4px;
    transition: all 0.3s ease;
    background: #f8f8f8;
    position: relative;
}

#plankGallery .gallery-item-wrapper:hover {
    transform: scale(0.97);
    border-color: var(--accent);
    z-index: 5;
}

#plankGallery .gallery-item-wrapper.selected {
    border-color: var(--accent2);
    box-shadow: 0 0 3px var(--accent);
}

#plankGallery .gallery-item-wrapper .pa-fld1 .pl a {
display: none;
}

#plankGallery .gallery-item-wrapper .pa-fld1 .bg {
margin-top: 0;
height: 50px;
display: flex;
    align-items: flex-end;
}

#plankGallery .gallery-item-wrapper .pa-fld1 .bg::after {background: none}

#plankGallery .gallery-item-wrapper .pa-fld1 .pl {
bottom: 0;
border-radius: 7px;
}

/* Ошибка отображения плашки */
#plankGallery .plank-error {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

/* Пустая галерея */
#plankGallery .empty-gallery {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

/* Предупреждение валидации */
.validation-warning {
    border: 1px solid #ff4444;
    border-radius: var(--main-bord-radius);
    padding: 10px 15px;
    margin: 10px 0;
    font-size: 13px;
}

/* Статус валидации */
.validation-status {
    font-size: 13px;
    padding: 5px 10px;
    margin: 5px 0;
    border-radius: var(--main-bord-radius);
    display: inline-block;
}

.validation-status.valid {
    color: #4CAF50;
    background: #f0fff0;
}

.validation-status.invalid {
    color: #ff4444;
    background: #fff0f0;
}

/* Инпут с ошибкой */
.input-error {
    border-color: #ff4444 !important;
}


/* Уведомление */
.plank-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--main-bord-radius);
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    max-width: 300px;
    font-family: var(--main-title);
    text-transform: uppercase;
    font-size: 10px;
}

.plank-notification.success {
    background: #000;
}

.plank-notification.error {
    background: #f44336;
}

.plank-notification.warning {
    background: #ff9800;
}

.plank-notification.info {
    background: #2196F3;
}