
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;900&display=swap');
:root {
    --bg-dark: #0f172a;
    --bg-sidebar: #1e293b;
    --bg-chat: #0b1120;
    --accent-primary: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --bubble-sent: #1d4ed8;
    --bubble-received: #1e293b;
    --success: #10b981;
}
* { box-sizing: border-box; }
body {
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
}
.bg-orb {
    position: fixed; border-radius: 50%;
    filter: blur(80px); z-index: -1;
    opacity: 0.4;
}
.orb-1 { top: -100px; left: -100px; width: 500px; height: 500px; background: #4f46e5; }
.orb-2 { bottom: -100px; right: -100px; width: 600px; height: 600px; background: #0ea5e9; }
.app-layout {
    width: 100%; max-width: 1400px;
    height: 100vh;
    display: flex;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}
.sidebar {
    width: 300px;
    background: rgba(30, 41, 59, 0.4);
    border-right: 1px solid var(--glass-border);
    display: flex; flex-direction: column;
}
.sidebar-header { padding: 20px; border-bottom: 1px solid var(--glass-border); }
.search-input {
    width: 100%; background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    padding: 10px 15px; border-radius: 8px;
    color: #fff; outline: none; transition: 0.3s;
}
.search-input:focus { border-color: var(--accent-primary); box-shadow: 0 0 10px var(--accent-glow); }
.chat-list { flex: 1; overflow-y: auto; padding: 10px; }
.chat-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; margin-bottom: 5px;
    border-radius: 10px; text-decoration: none; color: inherit;
    transition: 0.2s; border: 1px solid transparent;
}
.chat-item:hover { background: rgba(255,255,255,0.05); }
.chat-item.active { background: rgba(59, 130, 246, 0.15); border-color: var(--accent-primary); }
.avatar {
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: 700; background: linear-gradient(135deg, #3b82f6, #06b6d4);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    position: relative;
}
.avatar::after {
    content: ''; position: absolute; bottom: 0; right: 0;
    width: 12px; height: 12px; background: var(--success);
    border: 2px solid var(--bg-sidebar); border-radius: 50%;
}
.chat-info h4 { margin: 0; font-size: 0.95rem; }
.chat-info p { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.chat-area {
    flex: 1; display: flex; flex-direction: column;
    background: radial-gradient(circle at center, rgba(30,41,59,0.3) 0%, rgba(11,17,32,0.8) 100%);
}
.top-bar {
    padding: 15px 25px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    display: flex; justify-content: space-between; align-items: center;
    z-index: 10;
}
.chat-meta-title { font-weight: 700; font-size: 1.1rem; text-shadow: 0 0 10px rgba(255,255,255,0.1); }
.messages-feed {
    flex: 1; overflow-y: auto; padding: 20px 10%;
    display: flex; flex-direction: column; gap: 20px;
}
.messages-feed::-webkit-scrollbar { width: 8px; }
.messages-feed::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
.msg {
    max-width: 800px; width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 12px; padding: 20px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.msg.pinned {
    border-left: 4px solid var(--accent-primary);
    background: linear-gradient(90deg, rgba(59,130,246,0.1) 0%, rgba(15,23,42,0) 100%);
}
.hero-cta {
    text-align: center; padding: 40px;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}
.msg-header {
    display: flex; justify-content: space-between; margin-bottom: 10px;
    font-size: 0.85rem; color: var(--accent-primary); font-weight: 700;
}
.msg-content { line-height: 1.6; font-size: 1rem; color: #cbd5e1; }
.msg-content h2, .msg-content h3 { color: #fff; margin-top: 20px; }
.msg-content p { margin-bottom: 15px; }
.msg-content strong { color: #fff; font-weight: 600; }
.msg-content ul { padding-left: 20px; color: var(--text-muted); }
.btn-glow {
    display: inline-block;
    background: var(--accent-primary);
    color: #fff; text-decoration: none;
    padding: 12px 30px; border-radius: 8px;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: 0.3s; margin-top: 15px; border: none; cursor: pointer;
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 25px var(--accent-primary); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.tag { background: rgba(255,255,255,0.05); padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; color: var(--text-muted); }
.msg-meta { text-align: right; margin-top: 10px; font-size: 0.75rem; color: var(--text-muted); display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 900px) {
    .sidebar { width: 70px; }
    .sidebar-header, .chat-info { display: none; }
    .chat-item { justify-content: center; padding: 10px 0; }
    .avatar { width: 50px; height: 50px; }
    .messages-feed { padding: 10px; }
}
