/* Micro Class Flight Scoring Calculator Styles */

.calculator-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    margin-top: 20px;
}

.controls-panel {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.parameter-section {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.parameter-section label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    cursor: pointer;
}

.parameter-section label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.parameter-controls {
    margin-left: 25px;
}

.parameter-controls input[type="number"] {
    width: 100px;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.range-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    flex-direction: column;
}

.range-help-text {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
    font-style: italic;
}

.input-with-help {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.input-with-help input {
    flex: 1;
    min-width: 80px;
}

.help-tooltip {
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #dee2e6;
    cursor: help;
    white-space: nowrap;
    min-width: 50px;
    text-align: center;
}

.help-tooltip:hover {
    background: #e9ecef;
    color: #495057;
}

.analysis-controls {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.calculate-button, .optimal-button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculate-button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.calculate-button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
}

.optimal-button {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.optimal-button:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    transform: translateY(-2px);
}

.results-panel {
    margin-top: 20px;
}

.result-display {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
}

.result-display h3 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 16px;
}

.result-value {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.result-breakdown {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #6c757d;
}

.optimal-params {
    font-size: 14px;
    color: #495057;
    margin-top: 10px;
}

.chart-panel {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
    min-height: 600px;
}

.chart-area {
    width: 100%;
    height: 500px;
}

.formula-info {
    margin-top: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.formula-info h3 {
    color: #495057;
    margin-bottom: 15px;
}

.formula-section p {
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.formula-section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.formula-section li {
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.description {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .controls-panel {
        order: 2;
    }

    .chart-panel {
        order: 1;
    }
}

@media (max-width: 768px) {
    .input-with-help {
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    .input-with-help input {
        min-width: 100%;
    }

    .help-tooltip {
        text-align: left;
        min-width: auto;
    }

    .result-breakdown {
        flex-direction: column;
        gap: 5px;
    }
}

/* Animation for variable selection */
.parameter-section.variable-selected {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.parameter-section.variable-selected label {
    color: #007bff;
}

/* Loading state */
.calculating {
    opacity: 0.7;
    pointer-events: none;
}

.calculating::after {
    content: "Obliczanie...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}
