/* AI Widget Styles */
.ai-widget-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e63946;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.ai-widget-btn:hover {
    background: #ff1f2c;
    transform: scale(1.05);
}
.ai-widget-btn svg {
    width: 32px;
    height: 32px;
    color: white;
}
.ai-widget-panel {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    height: 550px;
    background: #111;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
    border: 1px solid rgba(230,57,70,0.3);
    transition: all 0.3s;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
}
.ai-widget-panel.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.ai-widget-header {
    background: #e63946;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: bold;
}
.ai-widget-header button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}
.ai-widget-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.message {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}
.message.user {
    background: #e63946;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.message.assistant {
    background: #2a2a2a;
    color: #eee;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.ai-widget-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid #333;
    background: #1a1a1a;
    gap: 8px;
    align-items: center;
}
.ai-widget-input input {
    flex: 1;
    background: #2a2a2a;
    border: none;
    padding: 8px 12px;
    border-radius: 24px;
    color: white;
}
.ai-widget-input button {
    background: none;
    border: none;
    color: #e63946;
    cursor: pointer;
    width: 32px;
    height: 32px;
}
.loading-dots span {
    animation: blink 1.4s infinite;
}
@keyframes blink {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}