/* Specific Styles for Polarization Lab overriding style.css */

#main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    background: var(--bg-primary);
}

#canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a101f 0%, #04060a 100%);
}

#sim-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: default;
}

/* Floating Bottom Controls matched to style.css themes */
.floating-panel {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 25px;
    box-shadow: var(--shadow-lg), inset 0 0 20px rgba(0, 229, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 300px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.slider-group label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value-highlight {
    color: var(--accent-cyan);
}

/* UI Overrides matching sci-theme */
input[type=range].sci-slider {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range].sci-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
    border: 2px solid #fff;
}

input[type=range].sci-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: var(--border-color);
    border-radius: 2px;
}

.sci-select {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    outline: none;
    cursor: pointer;
}

.sci-select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.preset-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Right Sidebar / Properties */
.sim-sidebar {
    width: 320px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 20;
    overflow-y: auto;
    padding: 20px;
}

.palette-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.glow-box {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 6px;
    padding: 12px;
    font-family: var(--font-mono);
    text-align: center;
    color: #e8eaed;
    font-size: 0.95rem;
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.05);
    margin-bottom: 10px;
}

.glow-panel {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

/* Intensity Chain */
.intensity-chain {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chain-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.progress-bar-bg {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
    transition: width 0.1s linear;
}

/* Polarisation View */
.lissajous-container {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 255, 0.3);
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
}

.neon-text {
    text-align: center;
    font-family: var(--font-display);
    color: var(--accent-yellow);
    margin-top: 15px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 64, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Brewster View */
.prop-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.prop-label { color: var(--text-secondary); }
.prop-val { color: var(--accent-cyan); font-weight: bold; }

.ui-bar {
    display: flex;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-align: center;
    line-height: 24px;
    color: #fff;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.s-pol { background: rgba(0, 229, 255, 0.8); text-shadow: 1px 1px 2px rgba(0,0,0,0.8); }
.p-pol { background: rgba(255, 145, 0, 0.8); text-shadow: 1px 1px 2px rgba(0,0,0,0.8); }

