/**
 * Watson Custom Templates for Elementor
 * 
 * Стили для кнопки и модального окна с пользовательскими шаблонами
 */

/* Стили для нового модального окна */
.ws-templates-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-templates-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.ws-templates-modal-container {
    position: relative;
    width: 1200px;
    max-width: 95%;
    height: 85vh;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ws-templates-modal-container * {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.ws-templates-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e6e9ec;
}

.ws-templates-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    margin-right: 20px;
}

/* Стили для фильтра категорий */
.ws-templates-category-filter {
    margin-left: auto;
    margin-right: 15px;
    position: relative;
}

.ws-templates-category-current {
    padding: 7px 12px;
    border-radius: 4px;
    border: 1px solid #e6e9ec;
    background-color: #f7f7f7;
    font-size: 13px;
    min-width: 160px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ws-templates-category-current::after {
    content: '\25BC';
    font-size: 10px;
    margin-left: 8px;
    color: #6d7882;
}

.ws-templates-category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #e6e9ec;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    visibility: hidden;
}

.ws-templates-category-dropdown.ws-open {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
}

.ws-templates-category-item {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.ws-templates-category-item:hover {
    background-color: #f1f3f5;
}

.ws-templates-category-item.ws-active {
    background-color: #f1f3f5;
    font-weight: 500;
}

/* Стили для иерархического отображения категорий */
.ws-templates-category-item.ws-level-1 {
    font-weight: 500;
    border-top: 1px solid #eee;
    margin-top: 5px;
    padding-top: 10px;
}

.ws-templates-category-item.ws-level-2 {
    padding-left: 24px;
    position: relative;
}

.ws-templates-category-item.ws-level-2::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    width: 6px;
    height: 1px;
    background-color: #ccc;
}

.ws-templates-category-dropdown {
    max-height: 400px;
    overflow-y: auto;
}

/* Стили для табов в шапке */
.ws-templates-tabs {
    display: flex;
    margin-right: auto;
}

.ws-templates-tabs-item {
    padding: 8px 16px;
    margin-right: 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background-color: #f1f3f5;
    color: #6d7882;
    transition: all 0.2s ease;
}

.ws-templates-tabs-item:hover {
    background-color: #e6e9ec;
}

.ws-templates-tabs-item.ws-active {
    background-color: #000;
    color: white;
}

.ws-templates-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6d7882;
}

.ws-templates-modal-body {
    flex: 1;
    overflow: auto;
    padding: 0;
}

/* Стили для плейсхолдеров */
.ws-templates-placeholder {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.ws-templates-placeholder-item {
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    animation: ws-placeholder-pulse 1.5s infinite ease-in-out;
}

.ws-templates-placeholder-preview {
    height: 200px;
    background-color: #e0e0e0;
}

.ws-templates-placeholder-footer {
    padding: 15px;
}

.ws-templates-placeholder-title {
    height: 20px;
    width: 70%;
    background-color: #e0e0e0;
    margin-bottom: 15px;
    border-radius: 3px;
}

.ws-templates-placeholder-button {
    height: 30px;
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 3px;
}

@keyframes ws-placeholder-pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Иконка Watson */
.ws-icon-watson {
    width: 1em;
    height: 1em;
    display: inline-block;
    background-image: url('../img/smoking-pipe.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* Фильтр для изменения цвета SVG на черный */
    filter: brightness(0);
}

/* Кнопка шаблонов Watson */

/* Модальное окно с шаблонами */
/* Переопределяем стили диалогового окна Elementor */
#ws-templates-modal .dialog-widget-content {
    width: 1200px !important;
    max-width: 95% !important;
    height: 85vh !important;
    overflow: hidden;
    border-radius: 5px;
}

#ws-templates-modal .dialog-message {
    height: calc(100% - 200px) !important;
    overflow: auto;
    padding: 0;
}

#ws-templates-modal .dialog-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e6e9ec;
}

#ws-templates-modal .dialog-buttons-wrapper {
    border-top: 1px solid #e6e9ec;
}

/* Стили для содержимого модального окна */
.ws-templates-modal-content {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Стили для табов */
.ws-templates-tabs {
    background-color: #fff;
}

.ws-templates-tabs-wrapper {
    display: flex;
}

/* Стили для контента табов */
.ws-templates-tab-content {
    display: none;
    padding: 20px;
    overflow: auto;
    height: calc(100% - 50px);
}

.ws-templates-tab-content.ws-active {
    display: block;
}

/* Стили для категорий */
.ws-templates-categories {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ws-templates-category-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 500;
}

.ws-templates-category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Стили для элементов шаблонов */
.ws-template-item {
    border: 1px solid #e6e9ec;
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.ws-template-item:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.ws-template-item-preview {
    height: 200px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Стили для шаблонов Elementor */
.elementor-template-library-template-remote .elementor-template-library-template-body {
    height: 0;
    padding-bottom: 133.33%; /* Соотношение сторон 3:4 */
    position: relative;
    overflow: hidden;
}

.elementor-template-library-template-remote .elementor-template-library-template-screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.elementor-template-library-template-remote .elementor-template-library-template-preview {
    height: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Бейдж с номером шаблона */
.ws-template-item-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 3px;
    z-index: 2;
}

/* Контейнер для кнопок при наведении */
.ws-template-item-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.ws-template-item:hover .ws-template-item-hover {
    opacity: 1;
}

/* Кнопки действий */
.ws-template-item-buttons {
    display: flex;
    gap: 15px;
}

.ws-template-view-button,
.ws-template-insert-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 5px;
}

.ws-template-view-button:hover,
.ws-template-insert-button:hover {
    transform: translateY(-3px);
    background: #fff;
}

.ws-template-view-button img,
.ws-template-insert-button img {
    width: 20px;
    height: 20px;
    display: block;
}

/* Название шаблона */
.ws-template-item-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 15px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Стили для модального окна предпросмотра */
.ws-template-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999; /* Очень высокий z-index, чтобы быть поверх всех элементов Elementor */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.ws-template-preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    animation: zoomIn 0.3s ease;
}

.ws-template-preview-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.ws-template-preview-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}



/* Анимации для модального окна */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Стили для плейсхолдеров */
.ws-templates-placeholder {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ws-templates-placeholder-item {
    border-radius: 3px;
    overflow: hidden;
    background-color: #f7f7f7;
    position: relative;
    height: 240px;
    animation: placeholderPulse 1.5s infinite ease-in-out;
}

.ws-templates-placeholder-preview {
    height: 200px;
    background-color: #eee;
    position: relative;
}

.ws-templates-placeholder-title {
    height: 16px;
    width: 70%;
    margin: 12px auto;
    background-color: #eee;
    border-radius: 2px;
}

/* Анимация пульсации для плейсхолдеров */
@keyframes placeholderPulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

/* Стили для загрузки */
.ws-templates-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.ws-templates-loading i {
    font-size: 30px;
    margin-bottom: 10px;
    color: #000 !important;
}

/* Стили для кнопки "Загрузить еще" */
.ws-templates-load-more {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.ws-templates-load-more-button {
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ws-templates-load-more-button:hover {
    background-color: #333;
}

.ws-templates-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #000;
    animation: spinner 0.8s linear infinite;
    margin-bottom: 10px;
}

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

/* Стили для ошибок */
.ws-templates-error {
    padding: 30px;
    text-align: center;
    color: #6d7882;
    font-size: 16px;
}

/* Стили для кнопки синхронизации шаблонов */
.ws-sync-templates-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.ws-sync-templates-button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.ws-sync-templates-button:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
}

/* Стили для прогресс-бара синхронизации */
.ws-sync-progress-container {
    margin: 40px auto 0;
    width: 100%;
    max-width: 300px;
    height: 2px;
    background-color: #f0f0f0;
    border-radius: 1px;
    overflow: visible;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ws-sync-progress-bar {
    height: 100%;
    background-color: #000;
    width: 0;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.ws-sync-progress-text {
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#ws-templates-footer .ws-sync-progress-text {
    position: relative;
    top: 0;
    font-size: 10px;
    color: #666;
    font-weight: 400;
    font-style: italic; 
}
#ws-templates-footer .ws-sync-progress-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/* Дополнительные стили для контента табов */
.ws-templates-tab-content {
    max-height: calc(80vh - 150px);
}

.ws-templates-tab-content.ws-active {
    display: block;
}

/* Категории шаблонов */
.ws-templates-category {
    margin-bottom: 30px;
}

.ws-templates-category-title {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 500;
    color: #556068;
    padding-bottom: 5px;
    border-bottom: 1px solid #e6e9ec;
}

.ws-templates-category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Элементы шаблонов */
.ws-template-item {
    border: 1px solid #e6e9ec;
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s;
    background-color: #fff;
}

.ws-template-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.ws-template-item-preview {
    height: 180px;
    background-size: contain;
    background-position: center;
}

.ws-template-item-footer {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}

.ws-template-item-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #556068;
}


/* Загрузка и ошибки */
.ws-templates-loading,
.ws-templates-error {
    text-align: center;
    padding: 50px 0;
}

.ws-templates-loading i {
    font-size: 30px;
    color: #556068;
    margin-bottom: 10px;
    display: block;
}

.ws-templates-error {
    color: #6d7882;
    font-size: 16px;
}

.ws-templates-loading {
    text-align: center;
    padding: 50px 0;
}

.ws-templates-loading i {
    font-size: 30px;
    color: #556068;
}

.ws-templates-empty {
    text-align: center;
    padding: 50px 0;
    color: #6d7882;
    font-size: 16px;
}

/* Стили для списка шаблонов (будут использоваться в будущем) */
.ws-templates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* ===== Watson Image Button ===== */
.ws-watson-button {
    background: none;
    border: none;
    color: #6d7882;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin-left: 5px;
    width: 1em;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.ws-watson-button:hover {
    color: #000;
}

.ws-watson-button svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}


/* ===== Watson AI Generation Panel (Drag&Drop) ===== */
.ws-ai-generation-panel.ws-ai-flex {
  display: flex;
  gap: 32px;
  min-height: 360px;
}
.ws-ai-panel-left {
  flex: 1 1 33%;
  max-width: 260px;
  border-right: 1px solid #ececec;
  padding-right: 18px;
  min-width: 180px;
}
.ws-ai-panel-right {
  flex: 2 1 67%;
  min-width: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 8px;
  min-height: 320px;
  width: 100%;
  border: 1px dashed #d0d7de;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  padding: 20px 250px;
}
.ws-ai-panel-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #222;
  letter-spacing: 0.01em;
}
.ws-ai-cat-tree {
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.ws-ai-cat-item {
  padding: 7px 12px 7px 22px;
  border-radius: 5px;
  margin-bottom: 2px;
  background: none;
  color: #222;
  font-size: 14px;
  user-select: none;
  transition: background 0.2s, color 0.2s;
  position: relative;
  cursor: pointer;
}
.ws-ai-cat-item.ws-ai-cat-parent {
  color: #000;
  cursor: default;
  padding-left: 0;
  border-radius: 0;
}
.ws-ai-cat-item.ws-ai-cat-leaf[draggable="true"] {
  cursor: grab;
}
.ws-ai-cat-item.ws-ai-cat-leaf[draggable="true"]:active {
  cursor: grabbing;
}
.ws-ai-cat-item.ws-dragging {
  opacity: 0.5;
  background: #e6f7ff;
}
.ws-ai-cat-item span {
  pointer-events: none;
  margin-right: 7px;
}
.ws-ai-cat-tree > li {
  border-bottom: 1px solid #e6e9ec ;
}
.ws-ai-cat-tree ul {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}
/* Подкатегории (level 2) — блоки-карточки */
.ws-ai-cat-parent > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 8px;
  padding-left: 0;
}
.ws-ai-cat-parent > ul > .ws-ai-cat-leaf {
  flex: 1 1 100%;
  margin: 0;
  border: 1px solid #e3e7ed;
  cursor: grab;
  user-select: none;
}
.ws-ai-cat-parent > ul > .ws-ai-cat-leaf:hover {
  background: #e6f7ff;
  color: #0a2540;
  box-shadow: 0 4px 16px rgba(0,149,255,0.12);
  border-color: #b3e0fc;
}
.ws-ai-cat-parent > ul > .ws-ai-cat-leaf.ws-dragging {
  background: #bae6fd;
  color: #0a2540;
  border-color: #0095ff;
}
@media (max-width: 600px) {
  .ws-ai-cat-parent > ul {
    flex-direction: column;
    gap: 6px;
  }
  .ws-ai-cat-parent > ul > .ws-ai-cat-leaf {
    min-width: 0;
    max-width: 100%;
    font-size: 14px;
    padding: 10px 12px;
  }
}
/* Конец карточного вида для подкатегорий */
.ws-ai-drop-placeholder {
  color: #bbb;
  font-size: 16px;
  text-align: center;
  margin: 0 auto;
  margin-top: 80px;
}

.ws-cloned-cat {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 5px;
  margin: 8px 0 0 0;
  padding: 8px 14px 8px 22px;
  font-size: 15px;
  color: #ad8b00;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.07);
  cursor: default;
  display: inline-block;
}

.ws-template-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.ws-template-item-preview {
    height: 180px;
    background-color: #f7f7f7;
    background-size: contain;
    background-position: center;
}

.ws-template-item-footer {
    padding: 10px;
    border-top: 1px solid #e6e9ec;
    background-color: #fff;
}

.ws-template-item-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}
.ws-ai-gen-result img {
    display: block;
    width: 100%;
}
.ws-ai-gen-btn {
    font-size: 12px;
    padding: 5px;
    border: none;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    outline: none;
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    visibility: hidden;
}
.ws-ai-gen-result:hover .ws-ai-gen-btn {
    visibility: visible;
    opacity: 1;
}
.ws-ai-gen-btn svg {
    width: 24px;;
}
.ws-ai-gen-btn--replace{
    margin-right: 40px;
}
.ws-ai-gen-result {
    position: relative;
    overflow: visible;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: move;
    margin: 0;
    transition: margin 0.2s;
}
.ws-ai-gen-result:hover {
    margin: 10px 0;
}

/* Стили для индикаторов при перетаскивании */
.ws-ai-gen-result.ws-dragging {
    opacity: 0.6;
    transform: scale(0.98);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.ws-ai-gen-result.ws-drop-before {
    border-top: 1px dashed #000;
    padding-top: 20px;
    margin-top: 20px;
}

.ws-ai-gen-result.ws-drop-after {
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* Стили для кнопки "ВСТАВИТЬ" */
.ws-ai-insert-button {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 20px auto 0;
    padding: 12px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.ws-ai-insert-button:hover {
    background-color: #333;
    transform: translateY(-2px);
}
#ws-templates-footer {
    color: #6d7882;
    font-size: 12px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ws-current-version {
    font-weight: 600;
    color: #000;
}
.ws-update-available {
    background-color: #EFEFFD;
    color: #3C41E6;
    border: 1px solid #3C41E6;
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: 7px;
    font-size: 11px;
}
.ws-update-available:hover {
    background-color: #3C41E6;
    color: #fff;
    cursor: pointer;
}
.ws-latest-version {
    color: #0f5132;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: 7px;
    font-size: 11px;
}

.ws-clipboard-paste-button {
    padding: 0;
    padding-top: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.ws-ai-panel-footer {
    text-align: center;
    margin-top: 20px;
    color: #6d7882;
    font-size: 12px;
}
.ws-ai-panel-footer a {
    color: #000;
    text-decoration: underline;
}

.ws-clipboard-paste-dialog { 
    position: fixed; 
    top: 10%; 
    left: 50%; 
    background: #fff; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    z-index: 9999; 
    width: 500px; 
    max-width: 90%; 
    padding: 40px 30px;
    margin-left: -280px;
}
.ws-clipboard-paste-dialog h3 { 
    margin-top: 0; 
    margin-bottom: 15px; 
    font-size: 16px;
    text-align: center;
    font-family: roboto;
} 
.ws-clipboard-paste-dialog input { 
    width: calc(100% - 32px); 
    margin-bottom: 15px; 
    padding: 10px; 
    border: 1px solid #ddd;
    font-size: 11px;
    color: #6d7882;
    border-radius: 3px; text-align: center; 
}
.ws-clipboard-paste-dialog input:focus {
    outline: none;
    border-color: #000;
    box-shadow: none;
}
.ws-clipboard-paste-dialog-buttons { 
    display: flex; 
    justify-content: center; 
} 
.ws-clipboard-paste-dialog button { 
    padding: 8px 15px; 
    border: none; 
    border-radius: 3px; 
    cursor: pointer; 
    font-family: roboto;
    box-shadow: none;
} 
.ws-clipboard-paste-dialog-cancel { 
    background: #eee; 
} 
.ws-clipboard-paste-dialog-cancel:hover { 
    background: #ddd; 
} 
.ws-clipboard-paste-dialog-insert { 
    background: #000; 
    color: #fff; 
} 
.ws-clipboard-paste-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0,0,0,0.5); 
    z-index: 9999; 
}