/**
 * UZV Calculator Styles
 * Калькулятор УЗВ — светлая тема с акцентом на аквакультуру
 */

.uzv-calculator {
    max-width: 950px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === HERO === */
.uzv-hero {
    background: #fff;
    border: 2px solid #00796b;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.uzv-hero h1 {
    color: #004d40;
    font-size: 28px;
    margin: 0 0 10px 0;
}

.uzv-hero p {
    color: #546e7a;
    margin: 0;
}

.uzv-hero .standard-badge {
    display: inline-block;
    background: #e0f2f1;
    color: #00695c;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 15px;
}

/* === ИНДИКАТОР ШАГОВ === */
.uzv-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.uzv-step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 25px;
    color: #9e9e9e;
    font-size: 14px;
    transition: all 0.3s ease;
}

.uzv-step-indicator .step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #757575;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.uzv-step-indicator.active {
    background: #e0f2f1;
    color: #004d40;
}

.uzv-step-indicator.active .step-number {
    background: #00796b;
    color: white;
}

.uzv-step-indicator.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.uzv-step-indicator.completed .step-number {
    background: #4caf50;
    color: white;
}

/* === ШАГИ === */
.uzv-step {
    display: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.uzv-step.active {
    display: block;
}

.uzv-step h2 {
    color: #37474f;
    font-size: 20px;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* === ВЫБОР РЫБЫ === */
.uzv-fish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.uzv-fish-option {
    position: relative;
}

.uzv-fish-option input {
    position: absolute;
    opacity: 0;
}

.uzv-fish-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.uzv-fish-option input:checked + label {
    border-color: #00796b;
    background: #e0f2f1;
}

.uzv-fish-option .fish-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.uzv-fish-option .fish-name {
    font-weight: 600;
    color: #37474f;
    margin-bottom: 4px;
}

.uzv-fish-option .fish-density {
    font-size: 11px;
    color: #00796b;
}

/* === ИНФОРМАЦИЯ О РЫБЕ === */
#fish_info {
    background: #f5f5f5;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.fish-info-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
}

.fish-info-item:last-child {
    border-bottom: none;
}

.fish-info-item span {
    color: #78909c;
}

.fish-info-item strong {
    color: #00796b;
}

/* === ФОРМЫ === */
.uzv-form-group {
    margin-bottom: 20px;
}

.uzv-form-group label {
    display: block;
    font-weight: 500;
    color: #37474f;
    margin-bottom: 8px;
}

.uzv-form-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    font-size: 16px;
}

.uzv-form-group input:focus {
    outline: none;
    border-color: #00796b;
}

.uzv-form-hint {
    font-size: 12px;
    color: #78909c;
    margin-top: 5px;
}

#biomass_preview {
    background: #e0f2f1;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
}

#biomass_preview div {
    margin: 5px 0;
}

#biomass_preview strong {
    color: #00796b;
}

/* === БИОФИЛЬТРЫ === */
.uzv-biofilter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uzv-biofilter-option {
    position: relative;
}

.uzv-biofilter-option input {
    position: absolute;
    opacity: 0;
}

.uzv-biofilter-option label {
    display: block;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.uzv-biofilter-option input:checked + label {
    border-color: #00796b;
    background: #e0f2f1;
}

.uzv-biofilter-option label strong {
    display: block;
    color: #37474f;
    margin-bottom: 5px;
}

.uzv-biofilter-option .bio-desc {
    display: block;
    color: #78909c;
    font-size: 13px;
}

.uzv-biofilter-option .bio-rate {
    display: block;
    color: #00796b;
    font-size: 12px;
    margin-top: 5px;
}

/* === КНОПКИ === */
.uzv-step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.uzv-step-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.uzv-step-btn[data-direction="prev"] {
    background: #f5f5f5;
    color: #546e7a;
}

.uzv-step-btn[data-direction="next"],
#uzv_calculate_btn {
    background: #00796b;
    color: white;
}

.uzv-step-btn:hover {
    opacity: 0.9;
}

#uzv_calculate_btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

#uzv_calculate_btn:disabled {
    background: #b0bec5;
    cursor: not-allowed;
}

/* === ОШИБКИ === */
#uzv_errors {
    display: none;
    margin-bottom: 20px;
}

.uzv-error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* === ПРЕДУПРЕЖДЕНИЯ === */
.uzv-warning {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    color: #e65100;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.uzv-warning i {
    margin-right: 10px;
}

/* === РЕЗУЛЬТАТЫ === */
#uzv_results {
    display: none;
}

.uzv-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.uzv-result-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.uzv-result-card .card-header {
    background: #f5f5f5;
    padding: 15px 20px;
    font-weight: 600;
    color: #37474f;
    border-bottom: 1px solid #e0e0e0;
}

.uzv-result-card .card-header i {
    color: #00796b;
    margin-right: 10px;
}

.uzv-result-card .card-body {
    padding: 20px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.result-row:last-child {
    border-bottom: none;
}

.result-row span {
    color: #78909c;
}

.result-row strong {
    color: #37474f;
}

.result-row.highlight {
    background: #e0f2f1;
    margin: 0 -20px;
    padding: 12px 20px;
}

.result-row.highlight strong {
    color: #004d40;
    font-size: 16px;
}

/* Варианты бассейнов */
.tank-options {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.tank-options strong {
    display: block;
    font-size: 12px;
    color: #78909c;
    margin-bottom: 8px;
}

.tank-option {
    display: inline-block;
    background: #e0f2f1;
    color: #00796b;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin: 3px 5px 3px 0;
}

/* Варианты оксигенации */
.oxygen-options {
    margin-top: 10px;
}

.uzv-oxygen-option {
    background: #fafafa;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #00796b;
}

.uzv-oxygen-option strong {
    display: block;
    color: #37474f;
    margin-bottom: 3px;
}

.uzv-oxygen-option span {
    display: block;
    font-size: 12px;
    color: #78909c;
}

.uzv-oxygen-option .oxy-eff {
    color: #00796b;
}

/* === ФУТЕР === */
.uzv-results-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.standard-ref {
    color: #78909c;
    font-size: 13px;
}

.standard-ref i {
    margin-right: 5px;
}

.uzv-actions {
    display: flex;
    gap: 10px;
}

.uzv-actions .btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.uzv-actions .btn-accent {
    background: #27ae60;
    color: #fff;
    font-size: 16px;
    padding: 12px 24px;
    font-weight: 600;
}

.uzv-actions .btn-accent:hover {
    background: #219a52;
}

.uzv-actions .btn-primary {
    background: #00796b;
    color: white;
}

.uzv-actions .btn-default {
    background: #f5f5f5;
    color: #37474f;
    border: 1px solid #e0e0e0;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .uzv-hero {
        padding: 20px;
    }

    .uzv-hero h1 {
        font-size: 22px;
    }

    .uzv-step-indicator .step-label {
        display: none;
    }

    .uzv-fish-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .uzv-results-footer {
        flex-direction: column;
        text-align: center;
    }

    .uzv-actions {
        width: 100%;
        flex-direction: column;
    }

    .uzv-actions .btn {
        width: 100%;
    }
}
