/* ============================================================================
   DEMO BOX 2 - BLOOMBERG DARK MODE
   Network Topology - Visual Redesign
   ============================================================================ */

/* Import Shared Terminal Styles */
@import '../terminal.css';

/* Override body for flex layout */
body {
    display: flex;
    flex-direction: row; /* Side-by-side layout */
    overflow: hidden;
}

.demo-box-content {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Graph Container */
#cy {
    flex-grow: 1;
    height: 100%;
    background: var(--term-bg);
    position: relative;
}

/* Side Panel (Was Bottom Panel) */
#info-panel {
    width: 280px;
    background: var(--term-panel);
    border-left: 1px solid var(--term-border);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--term-text-dim);
    line-height: 1.5;
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Panel Typography */
.detail-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--term-text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--term-border);
    text-transform: uppercase;
}

.detail-type {
    color: var(--term-orange);
    margin-bottom: 8px;
    font-weight: 600;
}

.connection-item {
    padding: 12px 0;
    border-bottom: 1px solid #222;
    margin-bottom: 0;
}

.connection-label {
    color: var(--term-text);
    font-family: var(--font-sans);
    font-weight: 400;
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    text-transform: none;
    line-height: 1.4;
}

.connection-target {
    color: var(--term-blue);
    font-weight: 700;
    display: block;
    font-size: 15px;
    font-family: var(--font-mono);
}

/* Placeholder State */
.info-placeholder {
    color: var(--term-text-dim);
    text-align: center;
    margin-top: 50%;
    font-style: italic;
}

/* ============================================================================
   MOBILE ADAPTIVE
   ============================================================================ */

@media (max-width: 768px) {
    .demo-box-content {
        flex-direction: column;
    }

    #cy {
        width: 100%;
        height: 60%;
        flex-grow: 0;
        border-bottom: 1px solid var(--term-border);
    }

    #info-panel {
        width: 100%;
        height: 40%;
        border-left: none;
        flex-shrink: 0;
    }
}