/* Shared tool result styling. Loaded only on tool/widget pages.
   Replaces the per-tool inline <style> chrome that used to be duplicated in every calc.php. */
.tool-response { font-family: Arial, sans-serif; color: #333; line-height: 1.6; max-width: 800px; margin: 0 auto; }
.tool-response h1 { color: #333; font-size: 24px; margin-bottom: 20px; text-align: center; }
.tool-response h2 { color: #444; font-size: 20px; margin-top: 25px; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.tool-response h3 { color: #555; font-size: 18px; margin-top: 15px; margin-bottom: 10px; }

.result-box { background-color: #f8f9fa; border: 1px solid #ddd; border-radius: 5px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

.price-breakdown { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.original-price, .discount-amount, .final-price { display: flex; justify-content: space-between; padding: 10px 15px; border-radius: 4px; }
.original-price { background-color: #f0f0f0; }
.discount-amount { background-color: #ffeeee; }
.final-price { background-color: #e6f7ff; font-weight: bold; }
.price-label { font-weight: 500; }
.price-value { font-size: 18px; }
.discount-color { color: #e53935; }
.final-price-color { color: #0277bd; }

.visual-discount { margin-top: 20px; }
.discount-bar { height: 30px; background-color: #e6f7ff; border-radius: 15px; overflow: hidden; position: relative; }
.discount-portion { height: 100%; background-color: #ffeeee; position: absolute; left: 0; top: 0; }
.discount-labels { display: flex; justify-content: space-between; margin-top: 5px; font-size: 14px; color: #666; }

.calculation-section { margin-top: 30px; }
.calculation-steps { display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 15px; }
.step-number { width: 30px; height: 30px; background-color: #0277bd; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }
.step-content { flex-grow: 1; }
.step-title { font-weight: bold; margin-bottom: 5px; }
.step-formula { background-color: #f5f5f5; padding: 8px 12px; border-radius: 4px; margin-bottom: 5px; font-family: monospace; }
.step-calculation, .step-result { padding-left: 12px; font-family: monospace; }
.step-result { font-weight: bold; color: #0277bd; }

.info-section { margin-top: 30px; }
.info-content { background-color: #fff; border: 1px solid #ddd; border-radius: 5px; padding: 15px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.info-item { background-color: #f8f9fa; border: 1px solid #eee; border-radius: 5px; padding: 10px 15px; }
.info-label { font-weight: bold; margin-bottom: 5px; color: #555; }
.info-value { font-size: 18px; }

.tips-section { margin-top: 30px; }
.tips-list { margin-left: 20px; }
.tips-list li { margin-bottom: 10px; }

.text-center { text-align: center; }
code { background-color: #f1f3f5; padding: 2px 4px; border-radius: 3px; font-family: monospace; font-size: 14px; }

/* form helpers (were duplicated inline in tool form.php files) */
.form-intro { margin-bottom: 20px; color: #666; }
.form-hint { font-size: 12px; color: #777; margin-top: 5px; }
.required { color: #e53935; }

/* copy-to-clipboard button (handler lives in app.js) */
.copy-button { background: none; border: none; cursor: pointer; color: #6c757d; padding: 5px; border-radius: 3px; transition: background-color .2s; }
.copy-button:hover { background-color: #f1f3f5; color: #495057; }
.copy-button.copied { background-color: #d4edda; color: #155724; }

@media (max-width: 600px) {
    .step { flex-direction: column; gap: 10px; }
    .step-number { margin-bottom: 5px; }
    .calc-form-button { flex-direction: column; gap: 10px; }
    .calc-form-button button { width: 100%; }
}
