/**
 * Pool Calculator Styles
 * Калькулятор бассейнов — светлая тема
 */

/* === КОНТЕЙНЕР === */
.pool-calculator {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.pool-hero h1 {
    color: #01579b;
    font-size: 28px;
    margin: 0 0 10px 0;
}

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

.pool-hero .standard-badge {
    display: inline-block;
    background: #e1f5fe;
    color: #0277bd;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 15px;
}

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

.pool-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;
}

.pool-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;
}

.pool-step-indicator.active {
    background: #e1f5fe;
    color: #01579b;
}

.pool-step-indicator.active .step-number {
    background: #0288d1;
    color: white;
}

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

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

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

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

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

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

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

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

.pool-form-group select:focus,
.pool-form-group input:focus {
    outline: none;
    border-color: #0288d1;
}

/* === ВЫБОР ФОРМЫ === */
.pool-shapes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.pool-shape-option {
    position: relative;
}

.pool-shape-option input {
    position: absolute;
    opacity: 0;
}

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

.pool-shape-option input:checked + label {
    border-color: #0288d1;
    background: #e1f5fe;
}

.pool-shape-option .shape-icon {
    width: 60px;
    height: 40px;
    margin-bottom: 10px;
    background: #cfd8dc;
    border-radius: 4px;
}

.pool-shape-option .shape-icon-rectangular {
    border-radius: 4px;
}

.pool-shape-option .shape-icon-oval {
    border-radius: 50%;
}

.pool-shape-option .shape-icon-round {
    border-radius: 50%;
    width: 40px;
}

.pool-shape-option .shape-name {
    font-weight: 500;
    color: #37474f;
}

/* === РАЗМЕРЫ === */
.pool-dimensions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pool-dimensions .pool-form-group {
    flex: 1;
    min-width: 150px;
}

.pool-dimension-unit {
    color: #78909c;
    font-size: 12px;
    margin-top: 5px;
}

#volume_preview {
    background: #e1f5fe;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #01579b;
    text-align: center;
    margin-top: 20px;
}

/* === ВЫБОР ФИЛЬТРА === */
.pool-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pool-filter-option {
    position: relative;
}

.pool-filter-option input {
    position: absolute;
    opacity: 0;
}

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

.pool-filter-option input:checked + label {
    border-color: #0288d1;
    background: #e1f5fe;
}

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

.pool-filter-option .filter-desc {
    display: block;
    color: #78909c;
    font-size: 13px;
}

.pool-filter-option .filter-degree {
    display: block;
    color: #0288d1;
    font-size: 12px;
    margin-top: 5px;
}

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

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

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

.pool-step-btn[data-direction="next"],
#pool_calculate_btn {
    background: #0288d1;
    color: white;
}

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

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

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

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

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

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

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

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

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

.pool-result-card .card-header i {
    color: #0288d1;
    margin-right: 10px;
}

.pool-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: #e1f5fe;
    margin: 0 -20px;
    padding: 12px 20px;
}

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

.result-row.small {
    font-size: 12px;
}

/* === НАГРЕВАТЕЛИ === */
.heaters-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.heaters-title {
    font-weight: 500;
    color: #37474f;
    margin-bottom: 10px;
}

.pool-heater-option {
    background: #fafafa;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.pool-heater-option strong {
    display: block;
    color: #37474f;
    margin-bottom: 5px;
}

.pool-heater-option span {
    display: block;
    color: #78909c;
    font-size: 13px;
}

.pool-heater-option .heater-desc {
    color: #0288d1;
    font-size: 12px;
    margin-top: 5px;
}

/* === ПРЕДУПРЕЖДЕНИЯ === */
.pool-warnings {
    margin-bottom: 20px;
}

.pool-warning {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    color: #e65100;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

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

/* === ФУТЕР РЕЗУЛЬТАТОВ === */
.pool-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;
}

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

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

.pool-actions .btn-primary {
    background: #0288d1;
    color: white;
}

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

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

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

    .pool-steps-indicator {
        flex-wrap: wrap;
    }

    .pool-step-indicator {
        padding: 8px 15px;
        font-size: 12px;
    }

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

    .pool-step {
        padding: 20px;
    }

    .pool-dimensions {
        flex-direction: column;
    }

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

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

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