:root {
    --bg-main: #0a0e14;
    --bg-sidebar: #0d1117;
    --border-color: #1f2937;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --cyan: #22d3ee;
    --cyan-dim: rgba(34, 211, 238, 0.15);
    --cyan-border: rgba(34, 211, 238, 0.4);
    --bubble-user: #1e293b;
    --bubble-ai: #111827;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { background-color: var(--bg-main); color: var(--text-main); font-family: var(--font-main); height: 100vh; display: flex; overflow: hidden; font-size: 14px; position: relative; }

#cursor-aura {
    position: fixed; top: 0; left: 0; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 60%);
    border-radius: 50%; pointer-events: none; z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    will-change: transform;
}

.custom-scroll::-webkit-scrollbar { width: 4px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: transparent; border-radius: 2px; transition: background 0.3s; }
.custom-scroll.is-scrolling::-webkit-scrollbar-thumb { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.hologram-reset {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(34, 211, 238, 0.15) 50%, transparent 100%);
    background-size: 100% 200%;
    pointer-events: none; z-index: 100; opacity: 0;
}
.hologram-reset.activating {
    animation: hologram-sweep 0.6s ease-out forwards;
}
@keyframes hologram-sweep {
    0% { opacity: 1; background-position: 0 -100%; }
    100% { opacity: 0; background-position: 0 200%; }
}

.sidebar { width: 260px; background-color: var(--bg-sidebar); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; flex-shrink: 0; z-index: 10; position: relative; }
.sidebar-header { padding: 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border-color); }

.logo-icon {
    width: 36px; height: 36px; border: 1px solid var(--cyan-border); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--cyan); font-size: 18px; font-weight: bold; background: var(--cyan-dim);
    animation: pulse-logo 1.5s infinite alternate;
}
@keyframes pulse-logo { 0% { box-shadow: 0 0 0px var(--cyan); } 100% { box-shadow: 0 0 15px var(--cyan); } }

.logo-text h1 { font-size: 16px; font-weight: 600; }
.logo-text p { font-size: 10px; color: var(--text-muted); letter-spacing: 1px; margin-top: 2px; }

.history-section { flex: 1; overflow-y: auto; padding: 16px; }
.history-title { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.history-item { padding: 10px 12px; border-radius: 6px; background-color: #161b22; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; border: 1px solid transparent; transition: 0.2s; }
.history-item.active { background-color: #1f2937; border-color: var(--border-color); }
.history-item:hover { border-color: var(--cyan-border); background-color: #1a222c; }
.empty-history { color: var(--text-muted); font-size: 13px; line-height: 1.6; padding: 10px 0; }

.sidebar-footer { padding: 16px; border-top: 1px solid var(--border-color); font-size: 12px; color: var(--text-muted); display: flex; flex-direction: column; gap: 8px; }
.status-row { display: flex; justify-content: space-between; }
.status-online { color: var(--cyan); display: flex; align-items: center; gap: 6px; }
.status-dot { width: 8px; height: 8px; background-color: var(--cyan); border-radius: 50%; animation: pulse-dot 0.8s infinite alternate; }
@keyframes pulse-dot { 0% { opacity: 0.3; box-shadow: 0 0 0 var(--cyan); } 100% { opacity: 1; box-shadow: 0 0 12px var(--cyan); } }
.status-value { color: #d1d5db; font-family: monospace; }

.main-content { flex: 1; display: flex; flex-direction: column; background-color: var(--bg-main); position: relative; z-index: 5; }
.top-nav { height: 60px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background-color: var(--bg-main); }
.nav-tabs { display: flex; gap: 8px; background-color: #0d1117; padding: 4px; border-radius: 8px; border: 1px solid var(--border-color); }
.nav-tab { padding: 6px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; color: var(--text-muted); transition: 0.3s; }
.nav-tab.active { background-color: var(--cyan); color: #000; font-weight: 600; box-shadow: 0 0 15px rgba(34, 211, 238, 0.4); }
.nav-status { display: flex; align-items: center; gap: 12px; }
.tag-status { font-size: 11px; color: var(--cyan); border: 1px solid var(--cyan-border); padding: 2px 8px; border-radius: 4px; background: var(--cyan-dim); font-family: monospace; }

.new-session-btn {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-main);
    padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; transition: 0.3s;
}
.new-session-btn:hover { background: #1f2937; border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 10px var(--cyan-dim); }

.view-section { display: none; flex: 1; flex-direction: column; height: 100%; overflow: hidden; position: relative; }
.view-section.active { display: flex; }
.chat-area { flex: 1; overflow-y: auto; padding: 24px 10%; display: flex; flex-direction: column; gap: 24px; }

.message-row { display: flex; gap: 16px; max-width: 85%; animation: slide-up 0.3s ease-out forwards; }
@keyframes slide-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.message-row.user { align-self: flex-end; flex-direction: row-reverse; }
.message-row.ai { align-self: flex-start; }
.avatar { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; font-weight: bold; }
.avatar.ai { background-color: var(--cyan-dim); color: var(--cyan); border: 1px solid var(--cyan-border); }
.avatar.user { background-color: #374151; color: #d1d5db; border: 1px solid #4b5563; }
.message-content { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.message-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 8px; }
.message-row.user .message-meta { justify-content: flex-end; }

.bubble { padding: 12px 16px; border-radius: 8px; line-height: 1.6; font-size: 14px; border: 1px solid transparent; position: relative; overflow: hidden; word-break: break-all; }
.message-row.user .bubble { background-color: var(--bubble-user); border-color: #334155; border-top-right-radius: 2px; }
.message-row.ai .bubble { background-color: var(--bubble-ai); border-color: #1f2937; border-top-left-radius: 2px; }

.loading-bubble { border-color: var(--cyan) !important; box-shadow: inset 0 0 10px rgba(34, 211, 238, 0.1); }
.loading-bubble::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), transparent); animation: scan 1s infinite linear; }
@keyframes scan { 0% { left: -100%; } 100% { left: 100%; } }

.type-cursor { display: inline-block; width: 2px; height: 14px; background-color: var(--cyan); vertical-align: middle; margin-left: 2px; animation: blink 0.8s infinite; box-shadow: 0 0 5px var(--cyan); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.bottom-section { padding: 16px 10% 24px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(to top, var(--bg-main) 60%, transparent); }
.quick-prompts { display: flex; gap: 8px; flex-wrap: wrap; }
.prompt-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); padding: 6px 12px; border-radius: 16px; font-size: 12px; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.prompt-btn:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); transform: translateY(-3px); box-shadow: 0 4px 12px var(--cyan-dim); }

.input-wrapper {
    background-color: #0d1117; border: 1px solid var(--border-color);
    border-radius: 8px; display: flex; align-items: center;
    padding: 8px 16px; position: relative; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 transparent;
}
.input-wrapper::before, .input-wrapper::after { content: ''; position: absolute; background: var(--cyan); transition: 0.3s; opacity: 0; }
.input-wrapper::before { top: -1px; left: 0; width: 0; height: 2px; }
.input-wrapper::after { bottom: -1px; right: 0; width: 0; height: 2px; }
.input-wrapper .b-left, .input-wrapper .b-right { position: absolute; width: 2px; height: 0; background: var(--cyan); transition: 0.3s; opacity: 0; }
.input-wrapper .b-left { top: 0; left: -1px; }
.input-wrapper .b-right { bottom: 0; right: -1px; }

.input-wrapper:focus-within {
    border-color: transparent;
    transform: translateY(2px) scale(0.99);
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.5), 0 0 20px rgba(34, 211, 238, 0.15);
}
.input-wrapper:focus-within::before { width: 100%; opacity: 1; }
.input-wrapper:focus-within::after { width: 100%; opacity: 1; }
.input-wrapper:focus-within .b-left { height: 100%; opacity: 1; transition-delay: 0.15s; }
.input-wrapper:focus-within .b-right { height: 100%; opacity: 1; transition-delay: 0.15s; }

.input-wrapper input { flex: 1; background: transparent; border: none; color: var(--text-main); font-size: 14px; outline: none; padding: 8px 0; }
.input-wrapper input::placeholder { color: #4b5563; }

.send-btn { width: 32px; height: 32px; border-radius: 6px; background-color: var(--cyan-dim); border: 1px solid var(--cyan-border); color: var(--cyan); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; font-weight: bold; }
.send-btn:hover { background-color: var(--cyan); color: #000; box-shadow: 0 0 15px var(--cyan); transform: scale(1.05); }
.bottom-status { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); font-family: monospace; }

.trip-header { text-align: center; margin-top: 40px; margin-bottom: 32px; }
.trip-header h2 { font-size: 24px; font-weight: 500; margin-bottom: 24px; }
.process-flow { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 32px; }
.process-step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.step-num { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--cyan); }
.step-arrow { position: relative; width: 40px; height: 2px; background: var(--border-color); overflow: hidden; }
.step-arrow::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: energy 1.5s infinite linear; }
@keyframes energy { 0% { left: -100%; } 100% { left: 100%; } }
.trip-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; max-width: 900px; margin: 0 auto; }
.trip-card { background-color: #0d1117; border: 1px solid var(--border-color); border-radius: 8px; padding: 16px; cursor: pointer; transition: 0.3s; }
.trip-card:hover { border-color: var(--cyan); background-color: #161b22; box-shadow: 0 5px 20px rgba(34, 211, 238, 0.1); transform: translateY(-2px); }
.trip-card h4 { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.trip-card p { font-size: 12px; color: var(--text-muted); }
.customer-welcome { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; margin-top: -60px; }
.radar-wrap { width: 80px; height: 80px; border-radius: 50%; border: 1px solid var(--cyan); position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; box-shadow: 0 0 20px rgba(34, 211, 238, 0.2); }
.radar-wrap::before { content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--cyan); animation: radar-ping 2s infinite ease-out; }
@keyframes radar-ping { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
.customer-welcome h2 { font-size: 20px; font-weight: 500; color: var(--cyan); }
.customer-welcome p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
