﻿/**
 * Calculator Styles - V2
 * All calculator layout and component styles
 */

/* ===== LAYOUT ===== */
.calculator-header {
    max-width: 1400px;
    margin: 0 auto 20px auto;
    padding: 0 10px;
}

    .calculator-header .page-title {
        margin: 0;
        color: #1e293b;
        font-size: 28px;
        font-weight: 700;
    }

.calculator-grid-3col {
    display: grid;
    grid-template-columns: 350px 1fr 320px;
    gap: 20px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ===== INPUT COLUMN ===== */
.col-input {
    width: 350px;
    position: sticky;
    top: 20px;
    align-self: start;
    height: fit-content;
    margin: 0;
    padding: 0;
}

    .col-input .calculator-card {
        background: white;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border: 1px solid #e5e7eb;
        margin: 0;
    }

    .col-input .input-group {
        margin-bottom: 18px;
    }

    .col-input label {
        font-size: 15px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 8px;
        display: block;
    }

    .col-input input,
    .col-input select {
        width: 100%;
        padding: 12px 14px;
        font-size: 16px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        box-sizing: border-box;
    }

        .col-input input:focus,
        .col-input select:focus {
            border-color: #3b82f6;
            outline: none;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

    .col-input .btn-calc {
        width: 100%;
        padding: 14px;
        margin-top: 10px;
        background: #2563eb;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
    }

        .col-input .btn-calc:hover {
            background: #1d4ed8;
        }

/* ===== RESULT COLUMN ===== */
.col-result {
    min-width: 0;
    align-self: start;
    height: fit-content;
    margin: 0;
    padding: 0;
}

    .col-result > div {
        margin-top: 0;
        margin-bottom: 16px;
    }

        .col-result > div:first-child {
            margin-top: 0;
        }

/* ===== INFO COLUMN ===== */
.col-info {
    width: 320px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    font-size: 14px;
    align-self: start;
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: 0;
}

    .col-info h3 {
        font-size: 15px;
        margin: 18px 0 10px 0;
        color: #1f2937;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 6px;
        font-weight: 600;
    }

        .col-info h3:first-child {
            margin-top: 0;
        }

/* ===== STEPS PANEL ===== */
#stepsPanel {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #86efac;
    display: none;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px solid #e5e7eb;
}

    #stepsPanel h3 {
        color: #059669;
        border-bottom: 1px solid #10b981;
        margin-top: 0;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .calculator-grid-3col {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .col-input,
    .col-info {
        width: 100%;
        position: static;
        height: auto;
    }

    .col-info {
        max-height: none;
    }
}
