/* Squeezed Light Visualizer - Page-Specific Styles */
/* Common styles moved to tools-common.css */

/* Controls grid */
.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Range sliders */
input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Checkboxes */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
    cursor: pointer;
}

/* Value inputs */
.value-input {
    min-width: 60px;
    max-width: 80px;
    text-align: center;
}

/* Plots layout */
.plots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.plot-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 2px solid #f1f3f4;
}

.plot-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Canvas sizing */
#phaseSpaceCanvas, #timeSeriesCanvas {
    width: 100% !important;
    height: 400px !important;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    height: auto !important;
    max-height: 400px;
}

/* Numerical display */
.numerical-display {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.numerical-display h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.parameters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.parameter-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.parameter-section h3 {
    text-align: center;
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.matrix-display {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #2c3e50;
}

.vector-label {
    font-weight: normal;
    color: #000000;
    margin-right: 10px;
}

.matrix {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.matrix-row {
    display: flex;
    align-items: center;
    margin: 2px 0;
}

.matrix-row span {
    margin: 0 8px;
    min-width: 60px;
    text-align: center;
}

.matrix-row span:first-child,
.matrix-row span:last-child {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    min-width: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .plots {
        grid-template-columns: 1fr;
    }

    .controls {
        grid-template-columns: 1fr;
    }

    .parameters-grid {
        grid-template-columns: 1fr;
    }
}
