/* css/ai-assistant-style.css */
:root {
    --primary-color: #1a73e8;
    --primary-dark: #1967d2;
    --bg-color: #f0f4f9;
    --chat-bg-color: #ffffff;
    --text-color: #3c4043;
    --user-bubble-bg: linear-gradient(135deg, var(--primary-color), #5c9cff);
    --bot-bubble-bg: #f1f3f4;
    --border-color: #e0e6eb;
    --input-bg: #ffffff;
}
html[data-theme='dark'] {
    --bg-color: #131314;
    --chat-bg-color: #1e1f20;
    --text-color: #e8eaed;
    --bot-bubble-bg: #3c4043;
    --border-color: #3c4043;
    --input-bg: #3c4043;
}
.ai-assistant-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px); /* Adjust based on your header height */
    width: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0 auto;
    overflow: hidden;
}
.ai-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.ai-chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-dark) var(--chat-bg-color);
}
.chat-message {
    display: flex;
    margin-bottom: 20px;
    max-width: 85%;
    flex-shrink: 0;
}
.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: var(--bot-bubble-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.message-content {
    display: flex;
    flex-direction: column;
}
.chat-bubble {
    padding: 15px 20px;
    border-radius: 18px;
    line-height: 1.6;
    font-size: 1rem;
    word-wrap: break-word;
}
.chat-bubble p { margin-bottom: 10px; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble a { color: var(--primary-color); font-weight: 500; text-decoration: none; }
.chat-bubble a:hover { text-decoration: underline; }
.bot-message .chat-bubble { background-color: var(--bot-bubble-bg); border-top-left-radius: 5px; }
.user-message { margin-left: auto; flex-direction: row-reverse; }
.user-message .message-avatar { margin-left: 15px; margin-right: 0; background-color: var(--primary-color); color: #fff; }
.user-message .chat-bubble { background: var(--user-bubble-bg); color: white; border-top-right-radius: 5px; }
.user-message .chat-bubble a { color: #fff; text-decoration: underline; }

.ai-input-area {
    padding: 20px;
    flex-shrink: 0;
}
.ai-input-form {
    display: flex;
    align-items: center;
    background-color: var(--input-bg);
    border-radius: 28px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.ai-input-form input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 15px 20px;
    font-size: 1rem;
    outline: none;
    color: var(--text-color);
}
.ai-input-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.ai-input-form button:hover { background-color: var(--primary-dark); }
.ai-input-form button:disabled { background-color: #9e9e9e; cursor: not-allowed; }

/* Typing indicator */
.typing-indicator { display: flex; align-items: center; }
.typing-indicator span { height: 8px; width: 8px; margin: 0 2px; background-color: var(--primary-color); display: block; border-radius: 50%; opacity: 0.4; animation: typing 1s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0% { opacity: 0.4; transform: translateY(0); } 20% { opacity: 1; transform: translateY(-3px); } 40% { opacity: 0.4; transform: translateY(0); } 100% { opacity: 0.4; transform: translateY(0); } }

/* Suggestion Chips */
.suggestion-chips { padding: 0 20px 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 15px; border: 1px solid var(--border-color); border-radius: 20px; font-size: 0.9rem; cursor: pointer; transition: background-color 0.2s; }
.chip:hover { background-color: var(--bot-bubble-bg); }

.welcome-message { text-align: center; padding: 40px 20px; }
.welcome-logo { font-size: 4rem; font-weight: 700; background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; }
.welcome-message h2 { font-size: 1.8rem; }