/* Demo-only additions — layered ON TOP of production CSS */

/* Prompt buttons (demo-specific interactive element) */
.demo-prompt-buttons {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid rgba(124, 58, 237, 0.3);
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
}
.demo-prompt-buttons-label {
    font-size: 0.75rem; color: #94a3b8;
    margin-bottom: 0.5rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.demo-prompt-btn-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.demo-prompt-btn {
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    color: #cbd5e1;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.demo-prompt-btn:hover {
    background: rgba(124, 58, 237, 0.3);
    border-color: rgba(124, 58, 237, 1);
    color: #f8fafc;
    transform: translateY(-1px);
}
.demo-prompt-btn.used { opacity: 0.4; pointer-events: none; }
.demo-prompt-btn i { margin-right: 0.3rem; }

/* Demo notice banner */
.demo-notice {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.8rem; color: #cbd5e1;
}
.demo-notice i { color: #22d3ee; }

/* Voice indicator in chat */
.demo-voice-indicator {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.3rem 0.6rem; margin-top: 0.5rem;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 20px; font-size: 0.75rem;
    color: #a78bfa; cursor: pointer;
}
.demo-voice-bars { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.demo-voice-bars span {
    width: 3px; background: #a78bfa;
    border-radius: 2px; animation: demo-vbar 0.6s ease infinite alternate;
}
.demo-voice-bars span:nth-child(1) { height: 4px; animation-delay: 0s; }
.demo-voice-bars span:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.demo-voice-bars span:nth-child(3) { height: 6px; animation-delay: 0.3s; }
.demo-voice-bars span:nth-child(4) { height: 12px; animation-delay: 0.1s; }
.demo-voice-bars span:nth-child(5) { height: 5px; animation-delay: 0.25s; }
@keyframes demo-vbar { to { height: 14px; } }

/* Chat media in response */
.demo-chat-media {
    margin-top: 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.3);
}
.demo-chat-media img, .demo-chat-media video {
    width: 100%; max-width: 420px; display: block;
}
.demo-chat-media-label {
    padding: 0.4rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.7rem; color: #94a3b8;
    display: flex; align-items: center; gap: 0.4rem;
}

/* (demo-input-fake removed — now uses production textarea) */

/* Mock terminal for skills page */
.demo-terminal {
    background: #0a0a14;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.75rem;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.75rem;
    color: #4caf50;
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.8;
}
.demo-terminal .log-line { opacity: 0; animation: demo-log-fade 0.4s forwards; }
.demo-terminal .log-accent { color: #22d3ee; }
.demo-terminal .log-warn { color: #f59e0b; }
.demo-terminal .log-muted { color: #64748b; }
@keyframes demo-log-fade { to { opacity: 1; } }

/* (Sidebar removed — production uses header dropdown for guide switching) */

/* Demo footer badge */
.demo-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    font-size: 0.7rem; color: #a78bfa;
    font-weight: 600;
}

/* Animation for new messages */
@keyframes demo-msg-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.demo-animated { animation: demo-msg-in 0.3s ease; }

/* Floating back-to-overview pill */
.demo-back-pill {
    position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
    z-index: 9999;
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    background: rgba(12, 12, 26, 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(124, 58, 237, 0.35);
    border-radius: 50px;
    color: #cbd5e1; font-size: 0.8rem; font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.demo-back-pill:hover {
    background: rgba(124, 58, 237, 0.25);
    border-color: rgba(124, 58, 237, 0.6);
    color: #f8fafc;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.25);
}
.demo-back-pill i { color: #a78bfa; font-size: 0.72rem; }

/* Voice playing state */
.demo-voice-playing {
    background: rgba(124, 58, 237, 0.35);
    border: 1px solid #a78bfa;
}
.demo-voice-playing i { animation: demo-pulse 0.8s ease infinite; }
@keyframes demo-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Mermaid diagram wrapper */
.demo-mermaid-wrapper {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 10px;
    overflow-x: auto;
    text-align: center;
}
.demo-mermaid-wrapper svg { max-width: 100%; height: auto; }

/* Dashboard demo kanban cards */
.demo-kanban-card {
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
    transition: all 0.3s ease;
}
.demo-kanban-card.active {
    background: rgba(124, 58, 237, 0.2);
    border-left: 3px solid #a78bfa;
    color: #f8fafc;
    animation: demo-kanban-pulse 1.5s ease infinite;
}
.demo-kanban-card.queued {
    background: rgba(100, 116, 139, 0.15);
    border-left: 3px solid #475569;
    color: #94a3b8;
}
.demo-kanban-card.completed {
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid #22c55e;
    color: #86efac;
}
@keyframes demo-kanban-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
    50% { box-shadow: 0 0 8px 2px rgba(124, 58, 237, 0.15); }
}

/* Dashboard execution log enhancements */
.demo-terminal .log-phase {
    color: #a78bfa;
    font-weight: 700;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    margin-bottom: 0.15rem;
}
.demo-terminal .log-success { color: #22c55e; }
.demo-terminal .log-line {
    padding: 0.1rem 0;
}

/* Log image thumbnail */
.demo-log-image {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}
.demo-log-image img {
    max-width: 180px;
    max-height: 120px;
    border-radius: 6px;
    display: block;
    margin-bottom: 0.3rem;
}
.demo-log-image span {
    font-size: 0.7rem;
    color: #94a3b8;
}

/* Dashboard Report Styles */
.demo-report {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.demo-report-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}
.demo-report-logo {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 12px;
    flex-shrink: 0;
}
.demo-report-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.demo-report-section:last-of-type { border-bottom: none; }
.demo-report-section h3 {
    font-size: 1.1rem;
    color: #f8fafc;
    margin-bottom: 0.75rem;
}
.demo-report-section p {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
}
.demo-report-highlight {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}
.demo-report-stat {
    text-align: center;
    padding: 0.75rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 8px;
}
.demo-report-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #a78bfa;
    font-family: monospace;
}
.demo-report-stat-label {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.15rem;
}
.demo-report-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.demo-report-gallery-item {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}
.demo-report-gallery-item img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}
.demo-report-gallery-item span {
    display: block;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    color: #94a3b8;
}
.demo-report-security-item {
    padding: 0.4rem 0.6rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 6px;
    font-size: 0.82rem;
    color: #cbd5e1;
}
.demo-report-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    color: #cbd5e1;
    font-size: 0.85rem;
}

/* Conversation list items */
.conversation-item {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}
.conversation-item:last-child { border-bottom: none; }
.conversation-item:hover {
    background: rgba(124, 58, 237, 0.08);
}

/* Media placeholder fallback */
.demo-media-placeholder {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    font-size: 0.85rem;
}
.demo-media-placeholder i { margin-right: 0.3rem; }

/* Quick-start tooltip system */
.demo-tooltip-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    animation: demo-overlay-in 0.3s ease;
}
@keyframes demo-overlay-in { from { opacity: 0; } to { opacity: 1; } }

.demo-tooltip {
    position: fixed;
    z-index: 10001;
    max-width: 320px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.97), rgba(15, 23, 42, 0.97));
    border: 1px solid rgba(124, 58, 237, 0.5);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.15);
    animation: demo-tooltip-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(16px);
}
@keyframes demo-tooltip-in {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.demo-tooltip-arrow {
    position: absolute;
    width: 12px; height: 12px;
    background: rgba(30, 41, 59, 0.97);
    border: 1px solid rgba(124, 58, 237, 0.5);
    transform: rotate(45deg);
}
.demo-tooltip-arrow.top { top: -7px; left: 50%; margin-left: -6px; border-bottom: none; border-right: none; }
.demo-tooltip-arrow.bottom { bottom: -7px; left: 50%; margin-left: -6px; border-top: none; border-left: none; }
.demo-tooltip-arrow.left { left: -7px; top: 50%; margin-top: -6px; border-top: none; border-right: none; }
.demo-tooltip-arrow.right { right: -7px; top: 50%; margin-top: -6px; border-bottom: none; border-left: none; }

.demo-tooltip-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.4rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.demo-tooltip-title i { color: #a78bfa; font-size: 0.8rem; }
.demo-tooltip-body {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.demo-tooltip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.demo-tooltip-step {
    font-size: 0.7rem;
    color: #64748b;
}
.demo-tooltip-dots {
    display: flex; gap: 4px;
}
.demo-tooltip-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.3);
}
.demo-tooltip-dot.active { background: #a78bfa; }
.demo-tooltip-btn {
    padding: 0.3rem 0.75rem;
    background: rgba(124, 58, 237, 0.3);
    border: 1px solid rgba(124, 58, 237, 0.5);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}
.demo-tooltip-btn:hover {
    background: rgba(124, 58, 237, 0.5);
    color: #fff;
}
.demo-tooltip-btn.primary {
    background: #7c3aed;
    border-color: #7c3aed;
}
.demo-tooltip-btn.primary:hover {
    background: #6d28d9;
}
.demo-tooltip-highlight {
    position: relative;
    z-index: 10001;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.4), 0 0 16px rgba(124, 58, 237, 0.2);
    border-radius: 8px;
}

/* Responsive adjustments for report */
@media (max-width: 768px) {
    .demo-report-highlight { grid-template-columns: repeat(2, 1fr); }
    .demo-report-gallery { grid-template-columns: 1fr; }
    .demo-report-header { flex-direction: column; text-align: center; }
    .demo-report-header .ms-auto { margin: 0.5rem auto 0 !important; }
    .demo-tooltip { max-width: 280px; }
}
