:root {
    --blue-primary: #2563eb;
    --blue-deep:    #1e40af;
    --blue-soft:    #64748b;
    --white:        #ffffff;
    --off-white:    #f8faff;
}

/* style.css (AI Page Specific) */

/* 1. Override Global Body settings for the Chat Layout */
body {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    padding-top: 80px !important; /* Forces the gap for the navbar */
    margin: 0;
    overflow: hidden !important; /* Prevents double scrollbars */
}

/* 2. Style the Injected Navbar Links (They are missing because global.css 
      doesn't know how to style the specific JS-injected classes) */
.nav-links {
    display: flex !important;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #64748b; /* --blue-soft */
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #2563eb; /* --blue-primary */
}

/* 3. Adjust the Chat Scene to fill the remaining space */
.chat-scene {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.chat-container {
    width: 100%;
    max-width: 800px;
    height: 85vh; /* Adjusted for better fit */
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.1);
    pointer-events: auto; /* Ensure clicks work */
}

/* 4. Keep your window, message, and input styles below... */
.chat-window {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ... (Your existing .message, .ai-message, .user-message, .input-area styles) ... */
/* --- Keep the rest of your Message Bubbles and Input Area styles below --- */
.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease forwards;
}

.ai-message {
    align-self: flex-start;
    background: var(--off-white);
    color: var(--blue-deep);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.user-message {
    align-self: flex-end;
    background: var(--blue-primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.input-area {
    padding: 20px;
    background: var(--off-white);
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(37, 99, 235, 0.05);
}

#user-input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: 2px solid transparent;
    outline: none;
    font-family: 'Varela Round', sans-serif;
}

#send-btn {
    background: var(--blue-primary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}