/* Wavelet Transform Visualizer - Dark Engineering / Medical Lab aesthetic */
/* requirements: max width of simulation area = 800px */

#wavelet-app {
    max-width: 800px;
    box-sizing: border-box;
}

.wv-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    background: radial-gradient(circle, #1a1c22 0%, #0a0b0e 100%);
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.08);
}

.wv-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 4px;
    color: #888;
    font-family: 'Courier New', Courier, monospace;
}

.wv-panel {
    background: #000;
    border: 1px solid #333;
    border-left: 3px solid #00ffcc;
    border-radius: 4px;
    overflow: hidden;
}

.wv-panel canvas {
    display: block;
    width: 100%;
    height: 140px; /* 200 * 0.7 */
    background: #000;
    image-rendering: pixelated;
}

.wv-scalogram-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.wv-scalogram-header .wv-label {
    margin-bottom: 0;
}

.wv-scalogram-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wv-scalogram-btns .wv-speed-label {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
}

.wv-scalogram-btns #wv-scan-speed {
    width: 60px;
}

.wv-scalogram-btns #wv-scan-speed-value {
    font-size: 11px;
    color: #00ffcc;
    min-width: 12px;
}

.wv-scalogram-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-family: 'Courier New', Courier, monospace;
    background: #222;
    color: #00ffcc;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
}

.wv-scalogram-btn:hover {
    background: #333;
    border-color: #00ffcc;
}

.wv-panel.wv-scalogram canvas {
    height: 154px; /* 220 * 0.7 */
}

.wv-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #15171c;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #333;
}

.wv-controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.wv-controls-row.wv-spike-row {
    padding-top: 2px;
}

.wv-controls label {
    font-size: 12px;
    color: #aaa;
    font-family: 'Courier New', Courier, monospace;
}

.wv-controls input[type="range"] {
    accent-color: #00ffcc;
    min-width: 80px;
}

.wv-control-gap {
    width: 12px;
    min-width: 12px;
    display: inline-block;
}

.wv-controls select {
    background: #222;
    color: #00ffcc;
    border: 1px solid #444;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

.wv-detected {
    font-size: 11px;
    color: #0f8;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 4px 8px;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid #0f8;
    border-radius: 4px;
    display: none;
}

.wv-detected.wv-active {
    display: inline-block;
    animation: wv-pulse 0.5s ease-in-out;
}

@keyframes wv-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.wv-fft-side {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 8px;
}

.wv-fft-main {
    min-height: 0;
}

.wv-fft-side canvas {
    height: 140px; /* 200 * 0.7 */
}

.wv-fft-side .wv-panel:last-child canvas {
    height: 140px;
}

.wv-math-info {
    background: #0d0e12;
    border: 1px solid #333;
    border-left: 3px solid #00ffcc;
    border-radius: 4px;
    padding: 10px 14px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #ccc;
    line-height: 1.5;
}

.wv-math-info .wv-math-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 6px;
}

.wv-math-info .wv-math-content {
    color: #00ffcc;
    white-space: pre-wrap;
    word-break: break-all;
}
