/* File: arioncomply-v1/presentations/demos/shared/demo-styles.css */
/* Description: Thin overlay for demo pages - complements production mystyles.css / admin-styles.css.
               Contains ONLY: demo navigation bar, layout offsets, and supplement utilities. */
/* Author: Libor Ballaty <libor@arionetworks.com> */
/* Created: 2026-02-18 */
/* Last Updated: 2026-02-19 */

/* ============================================================
   DEMO NAVIGATION BAR (top progress indicator)
   ============================================================ */
.demo-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
    background: #0f172a;
    border-bottom: 2px solid #00b894;
    padding: 0 24px;
    height: 56px;
}
.demo-nav-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center;
    height: 100%; gap: 32px;
}
.demo-nav-logo {
    display: flex; align-items: center; gap: 10px;
    color: #fff; text-decoration: none; font-size: .9rem;
    white-space: nowrap;
}
.demo-nav-logo-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #00b894);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .75rem; color: #fff;
}
.demo-nav-logo strong { color: #00b894; }
.demo-nav-steps {
    display: flex; align-items: center; gap: 4px;
    flex: 1; justify-content: center;
}
.demo-nav-step {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 20px;
    font-size: .8rem; font-weight: 600;
    color: #64748b; text-decoration: none;
    transition: all .2s;
}
.demo-nav-step:hover { color: #94a3b8; background: rgba(255,255,255,.06); }
.demo-nav-step.active { color: #fff; background: rgba(0,184,148,.2); }
.demo-nav-step.done { color: #00b894; }
.demo-nav-step-num {
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .65rem; font-weight: 800;
    background: rgba(255,255,255,.08); color: inherit;
}
.demo-nav-step.active .demo-nav-step-num { background: #00b894; color: #0f172a; }
.demo-nav-step.done .demo-nav-step-num { background: rgba(0,184,148,.2); }
.demo-nav-badge {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 20px;
    background: rgba(0,184,148,.12);
    color: #00b894; font-size: .75rem; font-weight: 600;
    white-space: nowrap;
}
.demo-nav-badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #00b894;
    animation: demoNavPulse 2s infinite;
}
@keyframes demoNavPulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ============================================================
   LAYOUT OFFSETS — push production layouts below demo nav
   ============================================================ */

/* Customer UI: sidebar + main-content structure */
body.demo-customer .app-container { padding-top: 56px; }
body.demo-customer .sidebar { top: 56px; height: calc(100vh - 56px); }

/* Admin / Partner UI: fixed header + sidebar */
body.demo-admin .sn-header { top: 56px !important; }
body.demo-admin .sn-sidebar { top: 126px !important; } /* 56 demo-nav + 70 sn-header */
body.demo-admin .sn-main-content { margin-top: 126px !important; }

/* ============================================================
   SUPPLEMENT UTILITIES (not in production CSS)
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1200px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .kpi-grid { grid-template-columns: 1fr; } }

/* Progress bars */
.progress-bar {
    height: 8px; border-radius: 4px;
    background: #f1f5f9; overflow: hidden;
}
.progress-fill {
    height: 100%; border-radius: 4px;
    transition: width .6s ease;
}
.progress-fill.green { background: linear-gradient(90deg, #10b981, #059669); }
.progress-fill.amber { background: linear-gradient(90deg, #f59e0b, #d97706); }
.progress-fill.red { background: linear-gradient(90deg, #ef4444, #dc2626); }
.progress-fill.blue { background: linear-gradient(90deg, #2563eb, #1d4ed8); }

/* Badge extensions beyond production */
.badge-critical { background: #fef2f2; color: #dc2626; }
.badge-high { background: #fff7ed; color: #c2410c; }
.badge-medium { background: #eff6ff; color: #2563eb; }
.badge-low { background: #f0fdf4; color: #16a34a; }
.badge-neutral { background: #f1f5f9; color: #64748b; }

/* KPI cards (base + accent variants) */
.kpi-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid transparent;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    transition: transform .2s, box-shadow .2s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1e293b;
}
.kpi-label {
    font-size: .85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 8px;
}
.kpi-card.success { border-top-color: #10b981; }
.kpi-card.success .kpi-value { color: #10b981; }
.kpi-card.warning { border-top-color: #f59e0b; }
.kpi-card.warning .kpi-value { color: #f59e0b; }
.kpi-card.primary { border-top-color: #2563eb; }
.kpi-card.primary .kpi-value { color: #2563eb; }
.kpi-card.info { border-top-color: #0891b2; }
.kpi-card.info .kpi-value { color: #0891b2; }

/* Data table (alias for production .table where demos use .data-table) */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left; padding: 12px 16px;
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    color: #64748b; border-bottom: 2px solid #e2e8f0;
    background: #f1f5f9;
}
.data-table td {
    padding: 12px 16px; font-size: .875rem;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}
.data-table tr:hover td { background: #f8fafc; }

/* ============================================================
   DEMO CHAT (scripted progressive-reveal chat interface)
   ============================================================ */
.chat-container {
    display: flex; flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}
.demo-chat-header {
    padding: 16px 24px;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: #fff;
}
.demo-chat-header h2 { font-size: 1.1rem; font-weight: 700; }
.demo-chat-header p { font-size: .8rem; opacity: .8; }

.chat-messages {
    flex: 1; overflow-y: auto; padding: 24px;
    display: flex; flex-direction: column; gap: 16px;
}
.chat-msg { display: flex; gap: 12px; max-width: 85%; animation: chatFadeIn .4s ease; }
.chat-msg--ai { align-self: flex-start; }
.chat-msg--user { align-self: flex-end; flex-direction: row-reverse; }
@keyframes chatFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.chat-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.chat-avatar--ai { background: #2563eb; }
.chat-avatar--user { background: #00b894; }

.chat-bubble {
    padding: 14px 18px; border-radius: 12px;
    font-size: .9rem; line-height: 1.6;
}
.chat-bubble--ai {
    background: #f1f5f9; color: #1e293b;
    border-bottom-left-radius: 4px;
}
.chat-bubble--user {
    background: #2563eb; color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-bubble--ai strong { color: #0f172a; }
.chat-bubble--ai code { background: #e2e8f0; padding: 1px 4px; border-radius: 3px; font-size: .85em; }
.chat-bubble--ai table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .8rem; }
.chat-bubble--ai th, .chat-bubble--ai td { padding: 4px 8px; border: 1px solid #d1d5db; text-align: left; }
.chat-bubble--ai th { background: #e5e7eb; font-weight: 700; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .demo-nav-step-label { display: none; }
}
@media (max-width: 640px) {
    .demo-nav-steps { gap: 2px; }
    body.demo-admin .sn-sidebar { display: none; }
    body.demo-admin .sn-main-content { margin-left: 0 !important; }
}
