/* Калькулятор расхода воды - Стили */

.wfc-calculator-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wfc-calculator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.wfc-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.wfc-header h2 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.wfc-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin: 0;
}

.wfc-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .wfc-main-content {
        grid-template-columns: 1fr;
    }
}

.wfc-inputs-section,
.wfc-visualization {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.wfc-inputs-section h3,
.wfc-visualization h3 {
    margin-top: 0;
    color: #667eea;
    font-size: 1.5em;
}

.wfc-input-group {
    margin-bottom: 25px;
}

.wfc-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

.wfc-input-with-unit {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wfc-input-with-unit input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
}

.wfc-input-with-unit input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wfc-unit-label {
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    color: #667eea;
    min-width: 50px;
    text-align: center;
}

.wfc-input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.wfc-input-group select:focus {
    outline: none;
    border-color: #667eea;
}

.wfc-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.wfc-btn-primary {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.wfc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.wfc-btn-primary:active {
    transform: translateY(0);
}

.wfc-btn-icon {
    font-size: 1.3em;
}

.wfc-pipe-container {
    margin-top: 30px;
}

.wfc-pipe {
    position: relative;
    height: 80px;
    background: linear-gradient(to bottom, #b0b0b0, #d0d0d0, #b0b0b0);
    border-radius: 40px;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.wfc-flow-animation {
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 30%;
    transform: translateY(-50%);
    background: linear-gradient(to right, 
        transparent, 
        rgba(102, 126, 234, 0.3) 25%, 
        rgba(102, 126, 234, 0.6) 50%, 
        rgba(102, 126, 234, 0.3) 75%, 
        transparent);
    animation: flowAnimation 2s linear infinite;
}

@keyframes flowAnimation {
    0% { left: -100%; }
    100% { left: 100%; }
}

.wfc-pipe-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    color: #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wfc-flow-direction {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-weight: 600;
    font-size: 0.95em;
    min-height: 24px;
    transition: color 0.3s ease;
}

.wfc-results {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
}

.wfc-results h3 {
    margin-top: 0;
    color: #667eea;
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 30px;
}

.wfc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wfc-result-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.3s;
}

.wfc-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.wfc-result-icon {
    font-size: 2.5em;
    min-width: 60px;
    text-align: center;
}

.wfc-result-content {
    flex: 1;
}

.wfc-result-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wfc-result-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.wfc-result-units {
    font-size: 0.9em;
    color: #999;
}

.wfc-result-status.optimal .wfc-result-icon,
.wfc-result-status.optimal .wfc-result-value {
    color: #10b981;
}

.wfc-result-status.warning .wfc-result-icon,
.wfc-result-status.warning .wfc-result-value {
    color: #f59e0b;
}

.wfc-result-status.danger .wfc-result-icon,
.wfc-result-status.danger .wfc-result-value {
    color: #ef4444;
}

.wfc-roughness-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.wfc-roughness-info h4 {
    margin-top: 0;
    color: #333;
    margin-bottom: 20px;
}

.wfc-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.wfc-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wfc-info-item strong {
    color: #666;
    font-size: 0.9em;
}

.wfc-info-item span {
    color: #333;
    font-size: 1.1em;
}

.wfc-reference {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-top: 20px;
    overflow: hidden;
}

.wfc-reference-toggle {
    width: 100%;
    padding: 20px 30px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.wfc-reference-toggle:hover {
    background: #f8f9fa;
}

.wfc-toggle-icon {
    font-size: 1.3em;
}

.wfc-toggle-arrow {
    margin-left: auto;
    transition: transform 0.3s;
}

.wfc-reference.active .wfc-toggle-arrow {
    transform: rotate(180deg);
}

.wfc-reference-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 30px;
}

.wfc-reference.active .wfc-reference-content {
    max-height: 2000px;
    padding: 0 30px 30px 30px;
}

.wfc-reference-content h4 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.wfc-formula-box {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
}

.wfc-formula-box strong {
    font-size: 1.3em;
    color: #667eea;
    display: block;
    margin-bottom: 15px;
}

.wfc-formula-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.wfc-formula-box li {
    margin: 8px 0;
}

.wfc-reference-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.wfc-reference-table th,
.wfc-reference-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.wfc-reference-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #667eea;
}

.wfc-reference-table tr:hover {
    background: #f8f9fa;
}

.wfc-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 0.95em;
}

.wfc-note strong {
    color: #856404;
}