/**
 * Стили для плагина Watson Builder
 *
 * @package Watson_Builder
 */


.watson-builder-shortcode {
    font-family: 'Roboto', sans-serif;
}
 
/* Полностью скрываем скроллбары для WebKit (Сhrome, Safari, Edge) */
.watson-builder-shortcode ::-webkit-scrollbar,
.watson-builder-sidebar::-webkit-scrollbar,
.watson-builder-content::-webkit-scrollbar {
    width: 01 !important;
    height: 0 !important;
    display: none !important;
}

/* Полностью скрываем скроллбары для Firefox */
.watson-builder-sidebar,
.watson-builder-content {
    scrollbar-width: none;
    -ms-overflow-style: none; /* Для IE и Edge */
}

/* Дополнительные стили для полного скрытия скроллбара */
.watson-builder-shortcode,
.watson-builder-sidebar,
.watson-builder-content {
    -ms-overflow-style: none; /* IE и Edge */
    overflow: -moz-scrollbars-none; /* Firefox */
}
.watson-builder-shortcode {
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


/* Контейнер для разделения на две части */
.watson-builder-container {
    display: flex;
    flex-wrap: nowrap; /* Предотвращаем перенос на новую строку */
    margin: 0 -10px; /* Компенсация внутренних отступов */
    height: 100%; /* Контейнер занимает всю высоту родителя */
    flex: 1; /* Растягиваем контейнер на всю доступную высоту */
}
.watson-builder-sidebar-footer {
    font-size: 12px;
    color: #777;
    margin-top: 40px;
}
/* Боковая панель */
.watson-builder-sidebar {
    flex: 0 0 calc(20% - 20px);
    padding: 30px;
    box-sizing: border-box;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.watson-builder-sidebar.left-sidebar.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.watson-builder-sidebar.left-sidebar.disabled-all {
    opacity: 0.5;
    pointer-events: none;
}
.watson-builder-sidebar.right-sidebar {
    flex: 0 0 calc(20% - 20px);
    padding: 30px;
    box-sizing: border-box;
    border-left: 1px solid #e2e4e7;
    height: 100%;
    overflow-y: auto;
    font-family: 'Roboto', sans-serif;
    display: block;
}
.right-header {
    display: flex;
    gap: 5px;
    font-family: 'Roboto', sans-serif;
}
.right-header span {
    display: block;
    width: 50%;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    border-radius: 5px;
    color: #000;
    display: flex;
    gap: 7px;
    text-align: center;
    align-items: center;
    justify-content: center;
}


.right-header span:hover,
.right-header span.active {
    background: #fff;
    color: #000;
    cursor: pointer;
}

.right-header span svg {
    width: 16px;
}
.right-header span.help svg {
    width: 17px;
    height: 17px;
}

/* Основной контент (2/3 ширины) */
.watson-builder-content {
    flex: 0 0 calc(60% - 20px);
    padding: 0 10px;
    box-sizing: border-box;
    height: 100%;
    overflow-y: auto; /* Добавляем вертикальную прокрутку */
    padding-right: 15px; /* Дополнительный отступ для полосы прокрутки */
    position: relative;
}

/* Спиннер загрузки */
.watson-builder-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #000;
    border-radius: 50%;
    animation: watson-spinner 1s linear infinite;
}

.overlay-template {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-template:hover {
    opacity: 1;
}

@keyframes watson-spinner {
    to { transform: rotate(360deg); }
}

.loading-template {
    position: relative;
    min-height: 50px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.watson-builder-placeholder-insert.loading-template {
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
}

/* Кнопка "Мне повезет" */
#watson-builder-lucky-button {
    color: #3C41E6;
    border: 1px solid #3C41E6;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    background: transparent;
}
.footer_panel button  {
    margin-top: 0;
}

#watson-builder-lucky-button:hover {
    background-color: #3C41E6;
    color: #fff;
    border-color: #3C41E6;
}

#watson-builder-lucky-button:active {
    background-color: #000;
}
.mobile-header {
    display: none;
}




.footer_panel {
    position: fixed;
    bottom: 0px;
    right: 0px;
    left: 0px;
    margin-left: calc(20% + 220px);
    margin-right: calc(20% + 220px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    height: 100px;
}

.footer_panel.hidden .pulse-button,
.footer_panel.hidden-all .pulse-button{
    animation: none;
    box-shadow: none;
    background: #eaeaea;
    color: #999;
    border: 2px solid #ffff;
    cursor: not-allowed;
}
.footer_panel.hidden .pulse-button:hover,
.footer_panel.hidden-all .pulse-button:hover {
    transition: none;
    transform: none;
}

/* Стили для модальных окон */
#watson-theme-modal,
#watson-video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

/* Стили для прогресс-бара */
.progress-container {
    display: none;
}
.progress-text {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #000;
    width: 0;
    transition: width 0.3s ease;
}

.progress-status {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.watson-modal-content {
    margin: 10% auto;
    border-radius: 8px;
    width: 80%;

    position: relative;
}
.watson-modal-content video {
    border-radius: 10px;
}

.watson-modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: #eee;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.watson-modal-close:hover {
    color: #fff;
}

.watson-modal h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
}

.watson-modal p {
    margin-bottom: 20px;
    color: #555;
}

.watson-modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.watson-ai-prototype-description-holder {
    font-size: 12px;
    padding: 10px 20px;
    background: #fff;
    border-radius: 5px;
    color: #666;
    display: none;
    margin-bottom: 70px;
    box-shadow: 0px 5px 47px -10px rgba(0, 0, 0, 0.2);
    position: relative;
}
.watson-ai-prototype-description-holder b {
    font-weight: normal;
    color: #000;
}
.watson-ai-prototype-description-holder h6 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #000;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}
.close-ai-prototype-description-holder {
    cursor: pointer;
    font-weight: 500;
    position: absolute;
    right: -8px;
    top: -9px;
    background: #000;
    font-size: 12px;
    line-height: 10px;
    color: #fff;
    padding: 5px 7px;
    border-radius: 15px;
}
.close-ai-prototype-description-holder:hover {
    cursor: pointer;
}
.watson-ai-prototype-final {
    color: #000;
    display: none;
    border-top: 1px solid #ddd;
    padding-top: 10px;  
}

.watson-ai-prototype-description p {
    transition: all 0.3s ease;
    padding: 3px 5px;
    border-radius: 3px;
}

.watson-ai-prototype-description p.active-paragraph {
    background-color: #f1f1f1;
    color: #000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.watson-builder-template-item {
    transition: all 0.3s ease;
}

.watson-builder-template-item.highlighted-section {
    margin: 20px 0 ; 
    z-index: 10;
    transform: scale(1.1);
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
}
#watson-site-theme, #watson-new-project-manual, #watson-new-project-ai, #watson-site-theme-protorype {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;;
    width: 100%;
}
#watson-new-project-ai, #watson-new-project-manual {
    min-width: 500px;
    color: #000;
}

#watson-new-project-ai::placeholder,
#watson-new-project-manual::placeholder {
    color: #aaa;
    opacity: 1;
    text-align: center;
    font-style: italic;
}
.e-n-tab-title:hover {
    cursor: pointer;
}

.watson-theme-submit {
    color: #fff;
    background-color: #1d2327;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.watson-theme-submit:hover {
    background-color: #000;
}

.d-flex {
    display: flex;
}
.watson-modal-content-left,
.watson-modal-content-right {
    width: 50%;
}

/* Стили для пульсирующей кнопки */
.pulse-button {
    background: #3C41E6;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: pulseAnimation 2s infinite;
    box-shadow: 0 5px 15px rgb(148, 177, 255);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    z-index: 999;
}

.pulse-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgb(148, 177, 255);
}

.pulse-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgb(148, 177, 255);
}

/* Анимация градиента */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Анимация пульсации */
@keyframes pulseAnimation {
    0% {
        box-shadow: 0 0 0 0 rgb(148, 177, 255);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(148, 177, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(148, 177, 255, 0);
    }
}

/* Стили для списка сохраненных страниц */
.right-content {
    margin-top: 20px;
}

.watson-generations-list {
    margin-top: 15px;
}

.watson-generations-list h4 {
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 20px;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.watson-generations-list h4:first-child {
    margin-top: 0;
}

.watson-generations-list .empty-list {
    color: #888;
    font-style: italic;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

.watson-generations-list ul.generations-list {
    list-style: none;
    margin: 0;
    padding-left: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.watson-generations-list ul.generations-list li .page-item {
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.watson-generations-list ul.generations-list li .page-title {
    display: block;
    color: #999;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    font-size: 12px;
}
.watson-generations-list ul.generations-list li .page-title:hover {
    color: #000;
    cursor: pointer;
}

.watson-generations-list .page-actions {
    display: flex;
    align-items: center;
    padding-right: 8px;
}

.watson-generations-list .page-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 4px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
}

.watson-generations-list .page-actions button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.watson-generations-list .page-actions .screenshot-btn:hover {
    color: #2196F3;
}

.watson-generations-list .page-actions .delete-btn:hover {
    color: #f44336;
}

.watson-generations-list .page-actions .copy-template-ids-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin: 0 2px;
    border-radius: 3px;
    color: #555;
}

.watson-generations-list .page-actions .copy-template-ids-btn:hover {
    color: #4CAF50;
    background-color: rgba(0, 0, 0, 0.05);
}



.bubbly-button {
    font-family: "Helvetica", "Arial", sans-serif;
    display: inline-block;
    font-size: 1em;
    padding: 1em 2em;
    -webkit-appearance: none;
    appearance: none;
    background-color: #000;
    color: #fff;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform ease-in 0.1s, box-shadow ease-in 0.25s;
  }
  .bubbly-button:focus {
    outline: 0;
  }
  .bubbly-button:before, .bubbly-button:after {
    position: absolute;
    content: "";
    display: block;
    width: 140%;
    height: 100%;
    left: -20%;
    z-index: -1000;
    transition: all ease-in-out 0.5s;
    background-repeat: no-repeat;
  }
  .bubbly-button:before {
    display: none;
    top: -75%;
    background-image: radial-gradient(circle, #000 20%, transparent 20%), radial-gradient(circle, transparent 20%, #000 20%, transparent 30%), radial-gradient(circle, #000 20%, transparent 20%), radial-gradient(circle, #000 20%, transparent 20%), radial-gradient(circle, transparent 10%, #000 15%, transparent 20%), radial-gradient(circle, #000 20%, transparent 20%), radial-gradient(circle, #000 20%, transparent 20%), radial-gradient(circle, #000 20%, transparent 20%), radial-gradient(circle, #000 20%, transparent 20%);
    background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%, 10% 10%, 18% 18%;
  }
  .bubbly-button:after {
    display: none;
    bottom: -75%;
    background-image: radial-gradient(circle, #000 20%, transparent 20%), radial-gradient(circle, #000 20%, transparent 20%), radial-gradient(circle, transparent 10%, #000 15%, transparent 20%), radial-gradient(circle, #000 20%, transparent 20%), radial-gradient(circle, #000 20%, transparent 20%), radial-gradient(circle, #000 20%, transparent 20%), radial-gradient(circle, #000 20%, transparent 20%);
    background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 10% 10%, 20% 20%;
  }
  .bubbly-button:active {
    transform: scale(0.9);
    background-color: #000;
    box-shadow: 0 2px 25px rgba(255, 0, 130, 0.2);
  }
  .bubbly-button.animate:before {
    display: block;
    animation: topBubbles ease-in-out 0.75s forwards;
  }
  .bubbly-button.animate:after {
    display: block;
    animation: bottomBubbles ease-in-out 0.75s forwards;
  }
  
  @keyframes topBubbles {
    0% {
      background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%;
    }
    50% {
      background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%;
    }
    100% {
      background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%;
      background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
  }
  @keyframes bottomBubbles {
    0% {
      background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%;
    }
    50% {
      background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%;
    }
    100% {
      background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%;
      background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
  }

.watson-builder-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    gap: 20px;
}
  .watson-builder-buy-button {
    display: block;
    width: 100%;
    text-align: center;
    color: #fff;
    background-color: #3C41E6;
    border: none;
    border-radius: 4px;
    padding: 10px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
  }

  .watson-builder-sidebar-header h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    border-radius: 5px;
    padding: 10px;
    margin: 0px;
    display: inline-block;
    letter-spacing: 3px;
}

.watson-builder-dropzone h3 {
    max-width: 500px;
    text-align: center;
    font-weight: 300;
    font-size: 24px;
}

.watson-builder-video {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 320px;
    background: #fff;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    border-radius: 5px;
    padding: 5px;
    padding-bottom: 0;
    z-index: 99;
}
.right-content .watson-builder-video:hover{
    cursor: pointer;
}
.watson-builder-video video {
    border-radius: 5px;
    margin: 0px;
}
.watson-builder-video > .close-video{
    position:absolute;
    top:-5px;
    right:-5px;
    background: #fff;
    border-radius: 5px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.watson-builder-play-video {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.watson-builder-video-small {
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: absolute;
    bottom: 10px;
    right: 10px;
    transform: translate(-50%, -50%);
    background-color: #EFEFFD;
    color: #3C41E6;
    padding-left: 2px;
    border: 1px solid #3C41E6;
    border-radius: 5px;
    z-index: 120;
    transition: all 0.3s ease;
    box-shadow: #fff 0px 7px 29px 0px;
}
.watson-builder-video-small:hover{
    background-color: #3C41E6;
    color: #fff;
}

.create-project {
    display: flex;
    align-items: center;    
    justify-content: center;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    color: #333;
    background: transparent;
    border: 1px dashed #ccc;
    border-radius: 5px;
    font-size: 12px;
    transition: all 0.3s ease;
}
.create-project:hover{
    background-color: #3C41E6;
    color: #fff;
    border-color: #3C41E6;
    border-style: solid;
}
.create-project svg {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    fill: #333;
    transition: all 0.3s ease;
}
.create-project:hover svg {
    fill: #fff;
}
.copied {
    color: #4CAF50!important;
}

#watson-builder-lucky-button-footer,
#watson-builder-lucky-button-footer-clear {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.3;
    height: 23px;
    display: none;
}
#watson-builder-lucky-button-footer:hover,
#watson-builder-lucky-button-footer-clear:hover {
    color: #3C41E6;
    opacity: 1;
}
#watson-builder-lucky-button-footer-clear {
    margin-right: -86px;
}

.ws-ai-gen-btn--folder{
    margin-right: 80px;
}
.watson-generations-list-full {
    display: none;
    color: rgb(139, 1, 1);
    border: 1px dashed rgb(139, 1, 1);
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    font-style: italic;
    font-size: 13px;    
}
.watson-builder-sidebar .close{
    cursor: pointer;
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 99999;
    display: none;
    background: #000;
    color: #fff;
    width: 26px;
    height: 26px;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .watson-builder-shortcode {
        height: auto; /* Полная высота экрана для мобильных */
        min-height: 100vh;
    }
    
    .watson-builder-container {
        flex-direction: column; /* Меняем направление на вертикальное */
        height: auto !important;
    }
    
    .watson-builder-sidebar,
    .watson-builder-content {
        flex: 1; /* Обе секции растягиваются равномерно */
        min-height: 50%; /* Минимальная высота - половина экрана */
    }
    
    .watson-builder-sidebar {
        border-right: none;
        border-bottom: 1px solid #e2e4e7;
        margin-bottom: 10px;
        padding-bottom: 10px;
        display: none;
    }
    .watson-builder-sidebar.right-sidebar{
        display: none;
    }

    .watson-builder-sidebar.active{
        display: block;
        height: 100vh;
        background: #fff;
        z-index: 99999;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    .watson-builder-sidebar.right-sidebar.active{
        background: #f1f1f1;

    }
    .watson-builder-sidebar.active .watson-builder-sidebar-header {
        display: none;
    }
    .watson-builder-sidebar.active .close{
        display: flex;
    }
    .watson-builder-placeholders {
        display: none !important;
    }
    #watson-builder-content-area {
        width: auto !important;
        margin-bottom: 0 !important;
    }
    .watson-builder-content {
        padding: 0 !important;
    }
    #watson-builder-dropzone {
        padding: 20px !important;
    }
    .watson-builder-dropzone h3 {
        margin-bottom: 60px;
        font-size: 22px !important;
    }
    #watson-builder-content-area .watson-builder-dropzone {
        height: 70vh !important;
    }
    .footer_panel {
        margin-left: 0 !important;
        margin-right: 0 !important;
        position: relative !important;
    }
    .watson-builder-template-item {
        width: auto !important;
    }
    #watson-builder-lucky-button-footer-clear {
        display: none !important;
    }
    .watson-modal-form input#watson-site-theme-protorype, #watson-site-theme {
        font-size: 16px !important;
    }
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding:15px;
    }
    .mobile-header h3 {
        margin: 0;
    }
}