/* ========================================
   CHATBOT WIDGET STYLES (для chatbot_simple.js)
   ======================================== */

.chatbot-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;
    font-family: Arial, sans-serif !important;
}

.chatbot-button {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
}

.chatbot-button:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.chatbot-button i {
    color: white !important;
    font-size: 28px !important;
}

.chatbot-badge {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: #ff4757 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
}

.chatbot-window {
    width: 350px !important;
    height: 500px !important;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin-bottom: 10px !important;
    position: fixed !important;
    bottom: 90px !important;
    right: 20px !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.chatbot-window[style*="display: block"],
.chatbot-window:not([style*="display: none"]) {
    visibility: visible !important;
    opacity: 1 !important;
}

.chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.chatbot-header h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: white !important;
}

.chatbot-close {
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background-color 0.3s ease !important;
}

.chatbot-close:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.chatbot-messages {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 15px !important;
    background: #f5f5f5 !important;
}

.chatbot-message {
    margin-bottom: 15px !important;
    display: flex !important;
}

.chatbot-message-bot {
    justify-content: flex-start !important;
}

.chatbot-message-user {
    justify-content: flex-end !important;
}

.chatbot-message-content {
    max-width: 70% !important;
    padding: 10px 15px !important;
    border-radius: 15px !important;
    word-wrap: break-word !important;
}

.chatbot-message-bot .chatbot-message-content {
    background: white !important;
    color: #333 !important;
    border-bottom-left-radius: 5px !important;
}

.chatbot-message-user .chatbot-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-bottom-right-radius: 5px !important;
}

.chatbot-input-container {
    display: flex !important;
    padding: 15px !important;
    background: white !important;
    border-top: 1px solid #e0e0e0 !important;
}

.chatbot-input {
    flex: 1 !important;
    border: 1px solid #ddd !important;
    border-radius: 25px !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    outline: none !important;
    transition: border-color 0.3s ease !important;
}

.chatbot-input:focus {
    border-color: #667eea !important;
}

.chatbot-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    margin-left: 10px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s ease !important;
}

.chatbot-send:hover {
    transform: scale(1.1) !important;
}

.chatbot-send i {
    font-size: 16px !important;
    color: white !important;
}

/* ========================================
   DRAGGABLE STYLES
   ======================================== */

.chatbot-dragging {
    cursor: move !important;
    opacity: 0.8 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.chatbot-header {
    cursor: move !important;
}

.chatbot-header:active {
    cursor: grabbing !important;
}

.chatbot-button {
    cursor: grab !important;
}

.chatbot-button:active {
    cursor: grabbing !important;
}

/* Отключаем transition при перетаскивании для плавности */
.chatbot-dragging {
    transition: none !important;
}
