/* Zadoff-Chu Sequence Visualizer — scoped to #zcContainer */

#zcContainer {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    border-radius: 8px;
    border: 1px solid #333;
    box-sizing: border-box;
}

#zcContainer *, #zcContainer *::before, #zcContainer *::after { box-sizing: border-box; }

/* === Canvas layout === */
#zcContainer .canvas-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#zcContainer .canvas-cell {
    flex: 1;
    min-width: 0;
}

#zcContainer .canvas-wrap {
    position: relative;
    width: 100%;
    background: #111;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
}

#zcContainer .canvas-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
}

#zcContainer .canvas-label {
    font-size: 11px;
    font-weight: bold;
    color: #888;
    text-align: center;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Control panel === */
#zcContainer .control-panel {
    background: #1a1a1a;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #333;
}

#zcContainer .control-panel-title {
    font-size: 11px;
    font-weight: bold;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

#zcContainer .control-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

#zcContainer .control-row:last-child { margin-bottom: 0; }

#zcContainer .control-row label {
    min-width: 120px;
    font-size: 12px;
    color: #b0b0b0;
    white-space: nowrap;
}

#zcContainer .control-row input[type="range"] {
    flex: 1;
    min-width: 80px;
    height: 6px;
    background: #2a2a2a;
    border-radius: 3px;
    accent-color: #00e5ff;
}

#zcContainer .control-row .value-display {
    min-width: 36px;
    text-align: right;
    font-size: 12px;
    color: #00e5ff;
}

#zcContainer .control-row select {
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

/* === Buttons === */
#zcContainer .btn-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

#zcContainer .btn-action {
    padding: 7px 14px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    background: #374151;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

#zcContainer .btn-action:hover { background: #4b5563; }

#zcContainer .btn-primary {
    padding: 7px 14px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    background: #0e7490;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

#zcContainer .btn-primary:hover { box-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }

/* === Summary === */
#zcContainer .summary-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

#zcContainer .stat-card {
    background: #111;
    border-left: 4px solid #00e5ff;
    padding: 8px 10px;
    border-radius: 4px;
}

#zcContainer .stat-card .stat-label {
    font-size: 10px;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

#zcContainer .stat-card .stat-value {
    font-size: 15px;
    font-weight: bold;
    color: #00e5ff;
    margin-top: 2px;
}

/* === Insight box === */
#zcContainer .insight-box {
    margin-top: 10px;
    padding: 10px 12px;
    background: #0f172a;
    border-radius: 6px;
    border: 1px solid #1e3a5f;
    font-size: 12px;
    line-height: 1.5;
    color: #c0c0c0;
}

#zcContainer .insight-box strong { color: #00e5ff; }

/* === Equation panel === */
#zcContainer .eq-panel {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.6;
    color: #ccc;
}

#zcContainer .eq-panel .val { color: #fbbf24; }

/* === Mode indicator === */
#zcContainer .mode-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

#zcContainer .mode-tag.auto-corr { background: #065f46; color: #6ee7b7; }
#zcContainer .mode-tag.cross-corr { background: #7c2d12; color: #fdba74; }

/* === Custom scrollbars === */
#zcContainer ::-webkit-scrollbar { width: 6px; height: 6px; }
#zcContainer ::-webkit-scrollbar-track { background: transparent; }
#zcContainer ::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
#zcContainer ::-webkit-scrollbar-thumb:hover { background: #555; }
#zcContainer * { scrollbar-width: thin; scrollbar-color: #333 transparent; }
