/**
 * Interactive Demo Frame Styles
 * Scoped styles for the landing-page click-through demo.
 */

/* ── Demo Container ─────────────────────────────────────────── */
.demo-frame {
    height: 480px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .demo-frame {
        height: 540px;
    }
}

/* ── Sidebar ────────────────────────────────────────────────── */
.demo-sidebar {
    width: 180px;
    min-width: 180px;
    background: #18181b;
    /* zinc-900 */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
}

.demo-sidebar::-webkit-scrollbar {
    width: 0;
}

.demo-sidebar-logo {
    padding: 12px 12px 8px;
    border-bottom: 1px solid #27272a;
    /* zinc-800 */
}

.demo-sidebar-nav {
    padding: 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.demo-sidebar-section-label {
    font-size: 9px;
    font-weight: 600;
    color: #71717a;
    /* zinc-500 */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 8px 4px;
}

.demo-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #a1a1aa;
    /* zinc-400 */
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.demo-nav-item:hover {
    background: #27272a;
    /* zinc-800 */
    color: #fafafa;
    /* zinc-50 */
}

.demo-nav-item.active {
    background: #27272a;
    /* zinc-800 */
    color: #ffffff;
    border-right: 2px solid #3b82f6;
    /* blue-500 */
}

.demo-nav-item.active svg {
    color: #ffffff;
}

.demo-nav-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #71717a;
    /* zinc-500 */
    transition: color 0.15s ease;
}

.demo-nav-item:hover svg {
    color: #fafafa;
}

.demo-nav-badge {
    margin-left: auto;
    background: #2563eb;
    /* blue-600 */
    color: #dbeafe;
    /* blue-100 */
    font-size: 8px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1.4;
}

/* ── Company Selector ───────────────────────────────────────── */
.demo-company-selector {
    margin: 8px 8px 0;
    padding: 6px 8px;
    background: #27272a;
    /* zinc-800 */
    border: 1px solid #3f3f46;
    /* zinc-700 */
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #d4d4d8;
    /* zinc-300 */
    font-weight: 500;
}

.demo-company-selector svg {
    width: 12px;
    height: 12px;
    color: #a1a1aa;
    /* zinc-400 */
    flex-shrink: 0;
}

/* ── Main Column (Top Bar + Content) ─────────────────────────── */
.demo-main-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

/* ── Top Bar ────────────────────────────────────────────────── */
.demo-topbar {
    height: 36px;
    min-height: 36px;
    background: #ffffff;
    border-bottom: 1px solid #e4e4e7;
    /* zinc-200 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.demo-topbar-left {
    flex: 1;
}

.demo-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-topbar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    color: #71717a;
    /* zinc-500 */
    cursor: default;
    transition: background 0.15s ease;
}

.demo-topbar-icon:hover {
    background: #f4f4f5;
    /* zinc-100 */
}

.demo-topbar-user {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
}

.demo-topbar-user-text {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.demo-topbar-user-name {
    font-size: 10px;
    font-weight: 600;
    color: #18181b;
    /* zinc-900 */
    line-height: 1.3;
}

.demo-topbar-user-email {
    font-size: 8px;
    color: #71717a;
    /* zinc-500 */
    line-height: 1.3;
}

/* ── Sidebar Footer (Complete Setup) ────────────────────────── */
.demo-sidebar-footer {
    margin-top: auto;
    border-top: 1px solid #27272a;
    /* zinc-800 */
}

.demo-sidebar-footer-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    cursor: default;
    transition: background 0.15s ease;
}

.demo-sidebar-footer-inner:hover {
    background: #27272a;
    /* zinc-800 */
}

/* ── Main Content Area ──────────────────────────────────────── */
.demo-content {
    flex: 1;
    overflow-y: auto;
    background: #fafafa;
    /* zinc-50 for subtle contrast */
    min-width: 0;
}

.demo-content::-webkit-scrollbar {
    width: 4px;
}

.demo-content::-webkit-scrollbar-track {
    background: transparent;
}

.demo-content::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    /* zinc-300 */
    border-radius: 4px;
}

.demo-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
    /* zinc-400 */
}

/* ── Responsive: Hide sidebar labels on small frames ────────── */
@media (max-width: 640px) {
    .demo-sidebar {
        width: 44px;
        min-width: 44px;
    }

    .demo-sidebar .demo-nav-item span,
    .demo-sidebar .demo-sidebar-logo span,
    .demo-sidebar .demo-sidebar-section-label,
    .demo-sidebar .demo-nav-badge,
    .demo-sidebar .demo-company-selector span,
    .demo-sidebar .demo-sidebar-footer-inner>div {
        display: none;
    }

    .demo-sidebar .demo-company-selector {
        justify-content: center;
        padding: 6px;
    }

    .demo-nav-item {
        justify-content: center;
        padding: 8px 6px;
    }

    .demo-nav-item svg {
        margin: 0;
    }

    .demo-topbar-user-text {
        display: none;
    }
}

/* ── Animation: float effect for decorative elements ────────── */
@keyframes demo-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.demo-float {
    animation: demo-float 3s ease-in-out infinite;
}

/* ── Tooltip for demo buttons (visual only) ─────────────────── */
.demo-content button {
    cursor: default;
}