#ai-chat-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, #ffd700 0%, #daa520 100%);
    color: #8b4513;
    border: 3px solid #b8860b;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 9999;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.4);
}

#ai-chat-launcher:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.6);
}

#ai-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 360px;
    height: 550px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.ai-chat-closed {
    display: none !important;
}

#ai-chat-header {
    background: linear-gradient(135deg, #0277bd 0%, #005c9e 100%);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #01579b;
}

.ai-header-title {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
}

.ai-robot-avatar {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 50%;
    background: white;
    padding: 2px;
}

#ai-chat-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

#ai-chat-toggle:hover {
    opacity: 1;
}

#ai-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f4f6f8;
}

.ai-message {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.ai-message.system {
    background: white;
    color: #333;
    float: left;
    clear: both;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ai-message.user {
    background: #0073aa;
    color: white;
    float: right;
    clear: both;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#ai-chat-input-area {
    padding: 12px;
    border-top: 1px solid #eee;
    display: flex;
    background: white;
}

#ai-chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 8px;
    outline: none;
}

#ai-chat-input:focus {
    border-color: #0073aa;
}

#ai-chat-send {
    background: #0073aa;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#ai-chat-send:hover {
    background: #005c9e;
}