/* OPO Squeezing Spectrum Calculator - Page-Specific Styles */

/* Two-column layout */
.calculator-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

@media (min-width: 1024px) {
    .calculator-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .calculator-layout > .input-section {
        flex: 0 0 350px;
        min-width: 0;
    }

    .calculator-layout > .plot-section {
        flex: 1;
        min-width: 0;
    }
}

/* Input section */
.input-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.input-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Plot section */
.plot-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.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 */
#squeezingSpectrumCanvas {
    width: 100% !important;
    height: auto !important;
    max-height: 500px;
}

/* Parameter results below plot */
.parameter-results {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
}

.result-item.hover-box {
    flex-direction: column;
    align-items: stretch;
}

.result-label {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.result-value {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: auto;
}

.result-unit {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

/* Control groups for sliders */
.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.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);
}

/* Value inputs */
.value-input {
    min-width: 70px;
    max-width: 90px;
    text-align: center;
    padding: 8px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.value-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Responsive design */
@media (max-width: 768px) {
    .parameter-results {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .result-value {
        margin-left: 0;
    }
}
