/* css/tour.css */

/* Базовые стили для тура */
.shepherd-theme-custom {
    --primary-color: #2563eb;
    --border-color: #e5e7eb;
    --text-color: #1f2937;
    --text-secondary: #6b7280;
    
    max-width: 400px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    z-index: 9999;
}

/* Контент тура */
.tour-step-content {
    color: var(--text-color);
}

/* Заголовок шага */
.tour-step-header {
    padding: 20px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tour-step-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

/* Логотип */
.tour-logo {
    height: 32px;
    width: auto;
}

/* Основной контент */
.shepherd-text {
    padding: 20px 24px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Кнопки */
.shepherd-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.shepherd-button {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.shepherd-button-primary {
    background: var(--primary-color);
    color: white;
}

.shepherd-button-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.shepherd-button-secondary {
    background: #f3f4f6;
    color: var(--text-secondary);
}

.shepherd-button-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* Оверлей - делаем очень прозрачным */
.shepherd-modal-overlay-container {
    background: transparent !important;
    pointer-events: none;
}

/* Стрелка */
.shepherd-arrow {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

.shepherd-arrow:before {
    background: #ffffff;
}

/* Кнопка закрытия */
.shepherd-cancel-icon {
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.shepherd-cancel-icon:hover {
    background: #f3f4f6;
    color: var(--text-color);
}

/* Подсветка активного элемента */
.shepherd-enabled {
    position: relative;
    z-index: 9999;
    box-shadow: 0 0 0px 6px rgb(161 0 0 / 18%);
    border-radius: 8px;
    pointer-events: auto !important;
}

.shepherd-content {
    
}

/* Специальные стили для страницы create_assistant.php */
.create-assistant-tour {
    position: fixed !important;
    right: 24px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    width: 320px !important;
    max-width: 320px !important;
}

/* Стрелка для create_assistant.php */
.create-assistant-tour .shepherd-arrow {
    left: -8px !important;
    right: auto !important;
}

.create-assistant-tour .shepherd-arrow:before {
    transform: rotate(45deg);
}

/* Изображения и медиа */
.tour-image-container {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tour-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Блок кода */
.tour-code-block {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    font-family: ui-monospace, monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
}

.tour-code-block pre {
    margin: 0;
    white-space: pre-wrap;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .create-assistant-tour {
        position: fixed !important;
        right: 16px !important;
        left: 16px !important;
        width: auto !important;
        max-width: calc(100% - 32px) !important;
    }

    .shepherd-footer {
        flex-direction: column-reverse;
    }

    .shepherd-button {
        width: 100%;
        text-align: center;
    }
}