/* AI Chat Widget Styles */
.ai-chat-widget {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 350px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 100px);
    background: var(--bg-color, #ffffff);
    color: var(--text-color, #333333);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    border: 1px solid rgba(255, 193, 7, 0.3);
    overflow: hidden;
}

[data-theme='dark'] .ai-chat-widget {
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.ai-chat-widget.active {
    transform: translateY(0);
    opacity: 1;
}

.ai-chat-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] .ai-chat-header {
    background-color: #ffc107 !important;
}
[data-theme='dark'] .ai-chat-header * {
    color: #000000 !important;
}

.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-chat-footer {
    padding: 15px;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    background: rgba(128, 128, 128, 0.05);
}

[data-theme='dark'] .ai-chat-footer {
    background: #121212;
    border-top: 1px solid #333;
}

.ai-message {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.ai-message-bot {
    background: rgba(255, 193, 7, 0.15);
    color: var(--text-color, #333);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

[data-theme='dark'] .ai-message-bot {
    background: #2b2b2b !important;
    color: #ffffff !important;
    border-left: 3px solid #ffc107 !important;
}

.ai-message-user {
    background: #0d6efd;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

[data-theme='dark'] .ai-chat-widget .form-control {
    background-color: #2b2b2b !important;
    color: #ffffff !important;
    border-color: #444 !important;
}

[data-theme='dark'] .ai-chat-widget .form-control::placeholder {
    color: #aaaaaa !important;
}

.ai-chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: transform 0.2s ease;
}

.ai-chat-toggle-btn:hover {
    transform: scale(1.1);
}

.blink-animation {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* Scrollbar for chat */
.ai-chat-body::-webkit-scrollbar {
    width: 6px;
}
.ai-chat-body::-webkit-scrollbar-track {
    background: transparent;
}
.ai-chat-body::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.3);
    border-radius: 3px;
}
