:root {
    --bg: #020617;
    --panel: #0f172a;
    --accent: #3b82f6;
    --text: #f1f5f9;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.1);
}

[v-cloak] { display: none; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.dashboard { max-width: 1000px; margin: 60px auto; padding: 20px; }
.header-main { margin-bottom: 40px; }
.logo { font-weight: 900; font-size: 2rem; margin: 0; }
.logo span { color: var(--accent); }
.subtitle { color: var(--text-muted); margin-top: 5px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.tile {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

.tile:hover { border-color: var(--accent); transform: translateY(-5px); background: #131d33; }
.tile.create-new { border: 2px dashed var(--border); align-items: center; justify-content: center; color: var(--accent); }
.plus-icon { font-size: 3rem; font-weight: 200; }

.app-container { display: flex; height: 100vh; width: 100vw; }
.sidebar { width: 300px; background: #070c18; border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 25px; }
.main-chat { flex: 1; display: flex; flex-direction: column; }

.chat-window { flex: 1; overflow-y: auto; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.bubble { max-width: 75%; padding: 14px 20px; border-radius: 20px; font-size: 0.95rem; line-height: 1.6; }
.user { align-self: flex-end; background: var(--accent); color: white; border-bottom-right-radius: 4px; }
.assistant { align-self: flex-start; background: var(--panel); border: 1px solid var(--border); border-bottom-left-radius: 4px; }

.source-tag { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); padding: 8px 12px; border-radius: 10px; font-size: 12px; margin-bottom: 10px; }

.btn { background: var(--accent); color: white; border: none; padding: 12px; border-radius: 14px; cursor: pointer; font-weight: 600; }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.input-area { padding: 30px; display: flex; gap: 15px; border-top: 1px solid var(--border); }
input { flex: 1; background: var(--panel); border: 1px solid var(--border); border-radius: 15px; padding: 15px; color: white; outline: none; }

.status-overlay { position: fixed; bottom: 30px; right: 30px; z-index: 1000; }
.loader-card { background: var(--panel); padding: 20px; border-radius: 15px; border: 1px solid var(--accent); width: 220px; }
.progress-track { background: rgba(255,255,255,0.05); height: 6px; border-radius: 3px; margin-top: 10px; overflow: hidden; }
.progress-fill { background: var(--accent); height: 100%; transition: width 0.3s; }
