/* ========================================
   LAKSIT AI 2030 — Cyberpunk Premium CSS
   ======================================== */

:root {
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff00aa;
    --neon-purple: #a855f7;
    --neon-teal: #00ffcc;
    --abyss: #050510;
    --abyss-card: #0a0a1f;
    --glass-bg: rgba(10, 10, 31, 0.55);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-hover-border: rgba(0, 240, 255, 0.2);
}

body {
    background: var(--abyss);
    font-family: 'Manrope', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Aurora Background */
.aurora-bg {
    position: fixed; inset: 0;
    pointer-events: none; z-index: -1;
    background:
        radial-gradient(ellipse at 15% 15%, rgba(0,240,255,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(255,0,170,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(168,85,247,0.03) 0%, transparent 60%);
    animation: aurora-drift 40s ease-in-out infinite;
}
@keyframes aurora-drift {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(20px,-15px) scale(1.02); }
    66% { transform: translate(-15px,10px) scale(0.98); }
}

/* Glass Panels */
.glass-nav {
    background: rgba(5,5,16,0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
    border-color: var(--glass-hover-border);
    box-shadow: 0 8px 32px rgba(0,240,255,0.06), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Neon Glow */
.neon-text-glow {
    text-shadow: 0 0 8px rgba(0,240,255,0.4), 0 0 20px rgba(0,240,255,0.2);
}

/* Logo */
.logo-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 16px rgba(0,240,255,0.3);
    animation: logo-pulse 3s ease-in-out infinite;
}
@keyframes logo-pulse {
    0%,100% { box-shadow: 0 0 16px rgba(0,240,255,0.3); }
    50% { box-shadow: 0 0 24px rgba(0,240,255,0.5), 0 0 40px rgba(168,85,247,0.2); }
}

/* Status Dots */
.status-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--neon-cyan);
    display: inline-block;
    box-shadow: 0 0 8px var(--neon-cyan);
    animation: dot-pulse 2s ease-in-out infinite;
}
.status-dot-sm {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--neon-cyan);
    display: inline-block;
    box-shadow: 0 0 6px var(--neon-cyan);
    animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Nav Links */
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 500;
    color: rgba(156,163,175,0.8);
    transition: all 0.2s; cursor: pointer;
    background: none; border: none;
}
.nav-link:hover { color: var(--neon-cyan); background: rgba(0,240,255,0.06); }
.nav-link.active { color: var(--neon-cyan); background: rgba(0,240,255,0.1); }

/* Glass Buttons */
.glass-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    transition: all 0.2s;
}
.glass-btn:hover {
    background: rgba(0,240,255,0.08);
    border-color: rgba(0,240,255,0.2);
}

/* Dashboard Panel */
.dashboard-panel {
    width: 100%;
    flex: 1 1 65%;
}
@media (min-width: 1024px) {
    .dashboard-panel { width: 65%; }
}

/* Chat Panel */
.chat-panel {
    width: 100%;
    position: fixed; top: 0; right: -100%; bottom: 0;
    z-index: 100;
    background: rgba(5,5,16,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column;
}
.chat-panel.open { right: 0; }

@media (min-width: 1024px) {
    .chat-panel {
        position: relative !important;
        right: auto !important;
        width: 35%;
        flex: 0 0 35%;
        background: transparent;
        backdrop-filter: none;
    }
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }

/* Metric Icon */
.metric-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}

/* Sparkline */
.sparkline-container { height: 48px; position: relative; }
.sparkline-container svg { width: 100%; height: 100%; }

/* Quick Action Buttons */
.quick-action-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 8px; border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(156,163,175,0.8);
    font-size: 11px; font-weight: 500;
    transition: all 0.25s;
    cursor: pointer;
}
.quick-action-btn:hover {
    background: rgba(0,240,255,0.08);
    border-color: rgba(0,240,255,0.25);
    color: var(--neon-cyan);
    box-shadow: 0 0 16px rgba(0,240,255,0.1);
}

/* Capability Chips */
.capability-chip {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 11px; color: rgba(156,163,175,0.7);
    transition: all 0.2s;
}
.capability-chip:hover {
    background: rgba(0,240,255,0.06);
    border-color: rgba(0,240,255,0.2);
    color: var(--neon-cyan);
}

/* Suggested Chips */
.suggested-chip {
    white-space: nowrap;
    padding: 6px 14px; border-radius: 20px;
    font-size: 11px; font-weight: 500;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(156,163,175,0.8);
    cursor: pointer; transition: all 0.2s;
    flex-shrink: 0;
}
.suggested-chip:hover {
    background: rgba(0,240,255,0.1);
    border-color: rgba(0,240,255,0.3);
    color: var(--neon-cyan);
}

/* Toolbar Buttons */
.toolbar-btn {
    padding: 6px; border-radius: 8px;
    color: rgba(156,163,175,0.5);
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
}
.toolbar-btn:hover { color: var(--neon-cyan); background: rgba(0,240,255,0.08); }
.toolbar-btn.active { color: var(--neon-magenta); background: rgba(255,0,170,0.1); }

/* Chat Textarea */
.chat-textarea {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 10px 14px;
    color: white;
    font-size: 13px;
    resize: none;
    max-height: 140px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Manrope', sans-serif;
    line-height: 1.5;
}
.chat-textarea::placeholder { color: rgba(107,114,128,0.6); }
.chat-textarea:focus {
    outline: none;
    border-color: rgba(0,240,255,0.35);
    box-shadow: 0 0 20px rgba(0,240,255,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Send Button */
.send-btn {
    padding: 10px; border-radius: 12px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white; border: none; cursor: pointer;
    transition: all 0.25s;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.send-btn:not(:disabled):hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0,240,255,0.4), 0 0 40px rgba(168,85,247,0.2);
}
.send-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

/* Chat Bubbles */
.bubble-ai {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(0,240,255,0.1);
    border-radius: 16px 16px 16px 4px;
    backdrop-filter: blur(8px);
}
.bubble-user {
    background: linear-gradient(135deg, rgba(0,240,255,0.12), rgba(168,85,247,0.08));
    border: 1px solid rgba(0,240,255,0.15);
    border-radius: 16px 16px 4px 16px;
}

/* Message Actions */
.msg-actions {
    display: flex; gap: 4px; margin-top: 8px; padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}
.msg-action-btn {
    display: flex; align-items: center; gap: 4px;
    font-size: 10px; color: rgba(156,163,175,0.5);
    padding: 3px 8px; border-radius: 6px;
    transition: all 0.2s; cursor: pointer; border: none; background: none;
}
.msg-action-btn:hover { color: var(--neon-cyan); background: rgba(0,240,255,0.08); }

/* Typing Indicator */
.typing-dots { display: flex; align-items: center; gap: 4px; }
.typing-dot {
    width: 7px; height: 7px; border-radius: 50%;
    animation: typing-bounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(1) { background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); animation-delay: 0s; }
.typing-dot:nth-child(2) { background: var(--neon-magenta); box-shadow: 0 0 8px var(--neon-magenta); animation-delay: 0.2s; }
.typing-dot:nth-child(3) { background: var(--neon-purple); box-shadow: 0 0 8px var(--neon-purple); animation-delay: 0.4s; }
@keyframes typing-bounce {
    0%,60%,100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed rgba(0,240,255,0.2);
    background: rgba(0,240,255,0.03);
    transition: all 0.3s;
}
.upload-zone.drag-over {
    border-color: var(--neon-cyan);
    background: rgba(0,240,255,0.08);
    box-shadow: 0 0 30px rgba(0,240,255,0.15);
}

/* Draggable Cards */
.draggable-card { cursor: grab; transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s; }
.draggable-card.dragging { opacity: 0.4; transform: scale(0.98); cursor: grabbing; }
.draggable-card.drag-over { border-color: rgba(0,240,255,0.3) !important; background: rgba(0,240,255,0.04) !important; }

/* Chat History Items */
.chat-history-item {
    width: 100%; text-align: left;
    padding: 6px 10px; border-radius: 8px;
    font-size: 12px; color: rgba(156,163,175,0.7);
    transition: all 0.2s; cursor: pointer;
    background: none; border: 1px solid transparent;
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-history-item:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.8); }
.chat-history-item.active { background: rgba(0,240,255,0.1); border-color: rgba(0,240,255,0.2); color: var(--neon-cyan); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,240,255,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,240,255,0.35); }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Markdown */
.markdown-body { font-size: 13px; line-height: 1.65; color: rgba(229,231,235,0.9); }
.markdown-body p { margin-bottom: 0.6em; }
.markdown-body p:last-child { margin-bottom: 0; }
.markdown-body h1,.markdown-body h2,.markdown-body h3 { font-family: 'Orbitron', sans-serif; color: var(--neon-cyan); margin: 0.8em 0 0.4em; font-size: 1.1em; }
.markdown-body code {
    background: rgba(0,0,0,0.4); padding: 2px 6px; border-radius: 4px;
    font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--neon-magenta);
}
.markdown-body pre {
    background: rgba(0,0,0,0.5); border: 1px solid rgba(0,240,255,0.15);
    border-radius: 10px; padding: 14px; margin: 0.6em 0; overflow-x: auto;
    position: relative;
}
.markdown-body pre code { background: transparent; padding: 0; color: #e0e6ed; font-size: 12px; }
.markdown-body ul,.markdown-body ol { padding-left: 1.5em; margin-bottom: 0.6em; }
.markdown-body li { margin-bottom: 0.3em; }
.markdown-body blockquote {
    border-left: 3px solid var(--neon-purple); padding-left: 12px;
    color: rgba(156,163,175,0.7); margin: 0.6em 0;
}
.markdown-body table { width: 100%; border-collapse: collapse; margin: 0.6em 0; }
.markdown-body th, .markdown-body td { border: 1px solid rgba(255,255,255,0.1); padding: 6px 10px; font-size: 12px; }
.markdown-body th { background: rgba(0,240,255,0.06); color: var(--neon-cyan); font-weight: 600; }
.markdown-body a { color: var(--neon-cyan); text-decoration: underline; }
.markdown-body strong { color: white; }

/* Code Copy Button */
.code-copy-btn {
    position: absolute; top: 8px; right: 8px;
    padding: 4px 10px; border-radius: 6px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
    font-size: 10px; color: rgba(156,163,175,0.6);
    cursor: pointer; opacity: 0; transition: all 0.2s;
    font-family: 'Manrope', sans-serif;
}
pre:hover .code-copy-btn { opacity: 1; }
.code-copy-btn:hover { background: rgba(0,240,255,0.15); color: var(--neon-cyan); border-color: rgba(0,240,255,0.3); }
.code-copy-btn.copied { color: #22c55e; background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.3); }

/* Activity Item */
.activity-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 10px;
    background: rgba(255,255,255,0.02);
    transition: background 0.2s; cursor: pointer;
}
.activity-item:hover { background: rgba(255,255,255,0.05); }
.activity-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Details/Summary */
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }

/* Toast */
.toast-item {
    padding: 10px 16px; border-radius: 10px;
    font-size: 12px; font-weight: 500;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    pointer-events: auto;
}
.toast-item.show { transform: translateX(0); }
.toast-success { background: rgba(34,197,94,0.2); color: #86efac; border-color: rgba(34,197,94,0.3); }
.toast-error { background: rgba(239,68,68,0.2); color: #fca5a5; border-color: rgba(239,68,68,0.3); }
.toast-info { background: rgba(0,240,255,0.15); color: var(--neon-cyan); border-color: rgba(0,240,255,0.25); }

/* Persona Options */
.persona-option {
    padding: 8px 12px; border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(156,163,175,0.7);
    font-size: 12px; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
    text-align: center;
}
.persona-option:hover { background: rgba(0,240,255,0.06); border-color: rgba(0,240,255,0.2); color: white; }
.persona-option.active { background: rgba(0,240,255,0.1); border-color: rgba(0,240,255,0.3); color: var(--neon-cyan); }

/* Voice Recording */
.voice-recording { animation: voice-pulse 1s ease-in-out infinite; }
@keyframes voice-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,0,170,0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255,0,170,0); }
}

/* Fade In */
.fade-in-up { animation: fadeInUp 0.35s ease forwards; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
@media (prefers-contrast: high) {
    .glass-card, .glass-nav { background: rgba(0,0,0,0.9); border-width: 2px; border-color: #fff; }
}