/* AL-TAWAF AI CHATBOT WIDGET STYLES */
#ai-chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
    color: #ffffff;
    border: 2px solid #eab308;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

#ai-chat-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px rgba(234, 179, 8, 0.4);
}

#ai-chat-btn .chat-btn-icon {
    width: 38px;
    height: 38px;
    background: #eab308;
    color: #022c22;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

#ai-chat-btn .chat-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

#ai-chat-btn .chat-btn-title {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}

#ai-chat-btn .chat-btn-sub {
    font-size: 10px;
    color: #fef08a;
    font-weight: 600;
}

/* Chat Window Box */
#ai-chat-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(234, 179, 8, 0.3);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.3s ease;
}

#ai-chat-window.hidden {
    display: none !important;
}

/* Header */
.ai-chat-header {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #eab308;
}

.ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-avatar {
    width: 40px;
    height: 40px;
    background: #eab308;
    color: #022c22;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ai-chat-title {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.ai-chat-status {
    font-size: 11px;
    color: #86efac;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-chat-status-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
}

.ai-chat-close-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.ai-chat-close-btn:hover {
    color: #fde047;
}

/* Messages Container */
.ai-chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.ai-msg.bot {
    align-self: flex-start;
}

.ai-msg.user {
    align-self: flex-end;
}

.ai-msg-bubble {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #1e293b;
    word-break: break-word;
}

.ai-msg.bot .ai-msg-bubble {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ai-msg.user .ai-msg-bubble {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: #ffffff;
    border-top-right-radius: 4px;
}

/* Quick Action Chips */
.ai-chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.ai-chip {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-chip:hover {
    background: #166534;
    color: #ffffff;
    border-color: #166534;
}

/* Footer & Input */
.ai-chat-footer {
    padding: 10px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-chat-input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 25px;
    padding: 9px 14px;
    font-size: 12.5px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.ai-chat-input:focus {
    border-color: #064e3b;
}

.ai-chat-send-btn {
    width: 36px;
    height: 36px;
    background: #eab308;
    color: #022c22;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.ai-chat-send-btn:hover {
    transform: scale(1.08);
}
