/* --- GLOBAL VARIABLES --- */
:root {
    --primary: #0a192f;
    --secondary: #112240;
    --accent: #64ffda;
    --text: #8892b0;
    --white: #e6f1ff;
}

/* Ensure global consistency */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary);
    color: var(--text);
    overflow-x: hidden;
}

/* --- COOKIE BANNER --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: var(--secondary); 
    border-top: 1px solid var(--accent);
    padding: 15px; 
    transform: translateY(100%); 
    transition: transform 0.5s ease-in-out; 
    z-index: 9999;
    display: flex;
    justify-content: center;
}
#cookie-banner.active { transform: translateY(0); }

/* --- ECOSYSTEM CHATBOT --- */
#chat-widget-container {
    position: fixed; bottom: 20px; right: 20px; z-index: 10000;
}

#chat-btn {
    width: 60px; height: 60px; border-radius: 50%; 
    background: var(--accent); color: var(--primary);
    border: none; cursor: pointer; font-size: 24px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s;
    display: flex; align-items: center; justify-content: center;
}
#chat-btn:hover { transform: scale(1.1); }

#chat-window {
    position: absolute; bottom: 80px; right: 0; 
    width: 320px; height: 450px;
    background: var(--primary); 
    border: 1px solid var(--secondary); 
    border-radius: 10px;
    display: none; flex-direction: column; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}
#chat-window.open { display: flex; }

#chat-header { 
    background: var(--secondary); color: var(--accent); 
    padding: 15px; font-weight: bold; 
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--accent);
}

#chat-body { 
    flex: 1; padding: 15px; overflow-y: auto; 
    font-size: 0.9rem; background: var(--primary);
}

.chat-msg { padding: 8px 12px; margin-bottom: 10px; border-radius: 8px; max-width: 80%; }
.chat-msg.bot { background: var(--secondary); color: var(--text); align-self: flex-start; border-left: 3px solid var(--accent); }
.chat-msg.user { background: var(--accent); color: var(--primary); align-self: flex-end; margin-left: auto; }

#chat-input-area { display: flex; border-top: 1px solid var(--secondary); }
#chat-input { flex: 1; padding: 12px; background: var(--primary); color: var(--white); border: none; outline: none; }
#chat-send { background: var(--secondary); border: none; color: var(--accent); padding: 0 20px; cursor: pointer; font-weight: bold; }