/* --- Variables & Reset (Imported from your theme) --- */
:root {
    --bg-dark: #0b1121;       
    --bg-alt:  #111827;       
    --primary: #3b82f6;       
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;     
    --secondary-glow: rgba(139, 92, 246, 0.5);
    --text-main: #f8fafc;     
    --text-muted: #94a3b8;    
    --radius: 12px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Keep your background animations --- */
.background-shapes { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; overflow: hidden; z-index: -1; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: float 20s infinite alternate; }
.shape-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: var(--primary); }
.shape-2 { bottom: 20%; right: -10%; width: 600px; height: 600px; background: var(--secondary); animation-delay: -5s; }
.shape-3 { top: 40%; left: 40%; width: 300px; height: 300px; background: #06b6d4; animation-delay: -10s; opacity: 0.2; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, 50px) scale(1.1); } }

/* --- Text Utilities --- */
.text-gradient {
    background: linear-gradient(to right, #3b82f6, #8b5cf6, #06b6d4);
    background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: gradientText 5s linear infinite;
}
@keyframes gradientText { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.section-header { text-align: center; margin-bottom: 30px; position: relative; z-index: 2; }
.section-header h2 { font-size: 2.5rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* --- Chat Layout & Glassmorphism --- */
.container { max-width: 800px; margin: 0 auto; padding: 40px 20px; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; }
.chat-wrapper { width: 100%; z-index: 2; }

.chat-container {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px; padding: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    display: flex; flex-direction: column; gap: 20px;
}

/* --- Chat Box & Messages --- */
.chatbox {
    height: 500px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 15px;
    padding-right: 10px;
}
/* Scrollbar styling for chatbox */
.chatbox::-webkit-scrollbar { width: 6px; }
.chatbox::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 10px; }
.chatbox::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.msg {
    max-width: 80%; padding: 12px 18px;
    border-radius: var(--radius); line-height: 1.5; font-size: 0.95rem;
    word-wrap: break-word;
}
.user-msg {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; border-bottom-right-radius: 4px;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}
.bot-msg {
    align-self: flex-start;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main); border-bottom-left-radius: 4px;
}
.bot-loading {
    align-self: flex-start; color: var(--text-muted); font-style: italic; font-size: 0.9rem;
}

/* --- Input Area --- */
.input-area { display: flex; gap: 15px; }
.input-area input {
    flex: 1; background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-main);
    padding: 15px 20px; border-radius: 50px; font-size: 1rem; outline: none;
    transition: var(--transition);
}
.input-area input:focus { border-color: var(--primary); box-shadow: 0 0 15px rgba(59, 130, 246, 0.2); background: rgba(15, 23, 42, 0.9); }
.input-area input::placeholder { color: var(--text-muted); }

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; padding: 12px 30px; border-radius: 50px;
    font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
    transition: var(--transition); outline: none;
}
.glow-effect:hover { box-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--secondary-glow); transform: translateY(-2px); }

.chat-message ul {
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 20px; /* Gives the bullet points room to breathe */
}

.chat-message p {
    margin: 0 0 8px 0; /* Adds slight spacing between paragraphs */
}