/* ============================================================================
   EYE DIAGRAM SIMULATOR - STYLES
   Interactive signal integrity visualization
   ============================================================================ */

/* === CSS Variables === */
:root {
    --eye-bg-primary: #0d1117;
    --eye-bg-secondary: #161b22;
    --eye-bg-tertiary: #21262d;
    --eye-border: #30363d;
    --eye-text-primary: #e6edf3;
    --eye-text-secondary: #8b949e;
    --eye-accent-cyan: #00d4ff;
    --eye-accent-blue: #0084ff;
    --eye-accent-red: #ff6b6b;
    --eye-accent-orange: #ff9500;
    --eye-accent-green: #00ff00;
    --eye-accent-yellow: #ffd93d;
}

/* === Main Container === */
.eye-container {
    background: #000000;
    border-radius: 16px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    font-family: 'Courier New', monospace;
    color: var(--eye-text-primary);
    max-width: 800px;
}

/* === Main Layout === */
.eye-main-section {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

/* === Canvas Container === */
.eye-canvas-container {
    flex: 1;
    min-width: 470px;
    background: var(--eye-bg-secondary);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--eye-border);
}

.eye-canvas-label {
    font-size: 12px;
    color: var(--eye-text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

#eye-canvas-wrapper {
    width: 100%;
    height: 500px;
    background: #000;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* Canvas styling */
#eye-canvas-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    border: none;
    box-shadow: none;
    border-radius: 4px;
    cursor: crosshair;
    z-index: 1;
}

/* === Control Panel === */
.eye-control-panel {
    width: 250px;
    flex-shrink: 0;
    background: var(--eye-bg-secondary);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid var(--eye-border);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* === Section Title === */
.eye-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--eye-accent-cyan);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--eye-border);
}

/* === Input Group === */
.eye-input-group {
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}

.eye-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    box-sizing: border-box;
    width: 100%;
}

.eye-input-label {
    font-size: 10px;
    color: var(--eye-text-secondary);
    min-width: 65px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* === Input Fields === */
.eye-input {
    flex: 1;
    background: var(--eye-bg-tertiary);
    border: 1px solid var(--eye-border);
    border-radius: 4px;
    padding: 5px 6px;
    color: var(--eye-text-primary);
    font-family: 'Courier New', monospace;
    font-size: 10px;
    outline: none;
    transition: border-color 0.2s;
}

.eye-input:focus {
    border-color: var(--eye-accent-cyan);
}

.eye-input-unit {
    font-size: 9px;
    color: var(--eye-text-secondary);
    min-width: 25px;
    flex-shrink: 0;
}

/* === Slider === */
.eye-slider {
    flex: 0;
    height: 6px;
    width: 80px;
    border-radius: 3px;
    background: var(--eye-bg-tertiary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    border: 1px solid var(--eye-border);
}

.eye-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--eye-accent-cyan);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
    border: 2px solid var(--eye-bg-secondary);
    transition: all 0.2s;
}

.eye-slider::-webkit-slider-thumb:hover {
    background: var(--eye-accent-blue);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
}

.eye-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--eye-accent-cyan);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
    border: 2px solid var(--eye-bg-secondary);
    transition: all 0.2s;
}

.eye-slider::-moz-range-thumb:hover {
    background: var(--eye-accent-blue);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
}

.eye-slider-value {
    font-size: 10px;
    color: var(--eye-accent-cyan);
    font-family: 'Courier New', monospace;
    min-width: 40px;
    text-align: right;
    flex-shrink: 0;
}

/* === Select Dropdown === */
.eye-select {
    flex: 1;
    background: var(--eye-bg-tertiary);
    border: 1px solid var(--eye-border);
    border-radius: 4px;
    padding: 5px 6px;
    color: var(--eye-text-primary);
    font-family: 'Courier New', monospace;
    font-size: 10px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.eye-select:focus {
    border-color: var(--eye-accent-cyan);
}

/* === Divider === */
.eye-divider {
    height: 1px;
    background: var(--eye-border);
    margin: 10px 0;
}

/* === Control Button === */
.eye-control-btn {
    background: var(--eye-bg-tertiary);
    border: 1px solid var(--eye-border);
    border-radius: 4px;
    padding: 6px 10px;
    color: var(--eye-text-primary);
    font-family: 'Courier New', monospace;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.eye-control-btn:hover {
    background: var(--eye-bg-secondary);
    border-color: var(--eye-accent-cyan);
    color: var(--eye-accent-cyan);
}

.eye-control-btn:active {
    transform: scale(0.98);
}

/* === Status Box === */
.eye-status-box {
    margin-top: auto;
    background: var(--eye-bg-tertiary);
    border: 1px solid var(--eye-border);
    border-radius: 8px;
    padding: 10px;
    margin-top: 12px;
}

.eye-status-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--eye-accent-green);
    margin-bottom: 6px;
    display: block;
}

.eye-status-text {
    font-size: 10px;
    color: var(--eye-text-primary);
    line-height: 1.5;
}

.eye-status-text div {
    margin: 4px 0;
}

.eye-status-text b {
    color: var(--eye-accent-green);
    font-weight: 700;
}
