/* =========================================
   ISO 286-2 Tolerance Calculator – Styles
========================================= */

.iso-wrapper {
    max-width: 520px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #1d2327;
}

.iso-wrapper h3 {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 700;
    color: #1d2327;
}

/* Inputs */
.iso-wrapper input[type="number"],
.iso-wrapper input[type="text"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    margin-bottom: 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: #1d2327;
    transition: border-color 0.15s;
}

.iso-wrapper input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.18);
}

/* Button */
.iso-wrapper button#iso-calc-btn {
    display: inline-block;
    padding: 9px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.iso-wrapper button#iso-calc-btn:hover {
    background: #135e96;
}

/* =========================================
   Result Box
========================================= */

.iso-result-box {
    margin-top: 22px;
    display: none;
}

.iso-result-title {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 15px;
}

.iso-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 14px;
}

.iso-table th {
    background: #f0f0f1;
    text-align: left;
    padding: 8px;
    border: 1px solid #dcdcde;
    font-weight: 600;
}

.iso-table td {
    padding: 8px;
    border: 1px solid #e0e0e0;
}

.iso-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.iso-limits {
    padding: 10px 12px;
    background: #eef5ff;
    border-left: 4px solid #2271b1;
    font-size: 14px;
}

/* Error */
.iso-error {
    margin-top: 16px;
    padding: 10px 14px;
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    color: #d63638;
    font-size: 14px;
    border-radius: 2px;
}
