#widget-box {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 1050;
}

#widget-box .html-container {
    max-height: 400px;
    overflow-y: scroll;
}

.onboardHelp.widget-hide {
    display: none;
}

/* Основной контейнер виджета */
.onboardHelp {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
}

/* Заголовок */
.onboardHelp-header {
    background-color: #DAA520;
    color: #333;
    padding: 12px 20px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.onboardHelp-header .fa-times {
    display: inline-block;
    padding: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.onboardHelp-header .fa-times:hover {
    opacity: 1;
}

/* Тело виджета */
.onboardHelp-body {
    display: flex;
    height: 100%;
    background-color: #daa5201a;
}

/* Область контента */
.content-area {
    flex: 1;
    overflow-y: auto;
    background-color: #daa5201a;
}

#info-view {
    background: #daa5201a;
    padding: 10px;
    padding-bottom: 0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.actions-panel-compact {
    width: 60px;
    background: #DAA520; /* Желтый цвет */
    border-left: 1px solid #e0e0e0;
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.05);
}


.action-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.action-icon-btn:hover {
    background-color: #4b6eaf;
    border-color: #4b6eaf;
    color: #ffffff;
    transform: scale(1.1);
}

.action-icon-btn.hidden {
    display: none;
}

/* Tooltip для кнопок */

.action-icon-btn {
    position: relative;
}

.action-icon-btn::after {
    content: attr(title);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 10px;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}

.action-icon-btn:hover::after {
    opacity: 1;
}

/* Оригинальные стили для совместимости */

.badgePanel .widget-closed {
    font-size: 44px;
    text-shadow: 2px 2px 2px rgb(0 0 0 / 32%);
    font-weight: 600;
    border-radius: 100px;
    border: 2px solid #e8eced;
    padding: 4px;
    background: #26bc9a;
    color: #4d4d4d;
    bottom: 0;
    height: 61px;
    width: 61px;
    text-align: center;
    line-height: 1.1em;
}

.widget-closed {
    font-size: 3.5em;
    text-shadow: 2px 2px 2px rgb(0 0 0 / 32%);
    font-weight: 400;
    border-radius: 100px;
    border: 2px solid #e8eced;
    padding: 4px;
    background: #cdb01f;
    color: #4d4d4d;
}

.hasArticle {
    color: #3ca344;
}

.hasTour {
    border: 3px solid #3ca344;
}

/* Оверлеи для выбора элементов */

#OverlayforSelect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-Index: 1045;
    background: rgb(147 168 207 / 30%);
}

#SelectedElement {
    position: fixed;
    z-Index: 56999;
    background: rgb(231 255 52 / 50%);
}

#SelectedElement button {
    position: relative;
    bottom: -40px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .onboardHelp-body {
        height: 400px;
    }

    .actions-panel-compact {
        width: 50px;
    }

    .action-icon-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Кнопка запуска тура в левом верхнем углу */

#tour-launcher-container {
    position: fixed;
    top: 36px;
    left: 150px;
    z-index: 1040;
}

.tour-launcher-button {
    animation: slideIn 0.3s ease-out;
}

.tour-launcher-button.hidden {
    display: none;
}

.tour-launcher-button .start-tour {
    background: #c52d63;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(75, 110, 175, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-launcher-button .start-tour:hover {
    background: #e91e63;
    box-shadow: 0 4px 12px rgba(75, 110, 175, 0.4);
    transform: translateY(-1px);
}

.tour-launcher-button .start-tour:active {
    transform: translateY(0);
}

/* Анимация появления */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Пульсирующая анимация для привлечения внимания */

.tour-launcher-button .start-tour {
    position: relative;
    background-color: #c52d63;
    border-color: #c52d63;
    font-size: 12px;
}

.tour-launcher-button .start-tour::before {
    /* заменить все свойства на: */
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 25px;
    background: #c52d63;
    z-index: -1;
    opacity: 0.6;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    #tour-launcher-container {
        top: 50px;
        left: 10px;
    }

    .tour-launcher-button .start-tour {
        padding: 8px 16px;
        font-size: 13px;
    }
}


.action-icon-btn.action-close {
    background: transparent;
    border: none;
    color: #333;
    font-size: 20px;
    width: auto;
    height: auto;
    padding: 5px;
    margin-bottom: 20px;
}

.action-icon-btn.action-close:hover {
    background: transparent;
    color: #000;
    transform: none;
}

/* Обновить цвета кнопок для желтого фона */
.actions-panel-compact .action-icon-btn:not(.action-close) {
    background: #ffffffe8;
    border: 1px solid #e0e0e0;
}

.actions-panel-compact .action-icon-btn:not(.action-close):hover {
    background: #f8f9fa;
    border-color: #999;
    color: #333;
    transform: scale(1.1);
}
