| body { | |
| font-family: sans-serif; | |
| margin: 20px; | |
| background-color: #f4f4f4; | |
| line-height: 1.6; | |
| } | |
| h1 { | |
| text-align: center; | |
| color: #333; | |
| } | |
| .container { | |
| background: #fff; | |
| padding: 20px; | |
| margin-bottom: 20px; | |
| border-radius: 8px; | |
| box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | |
| } | |
| h2 { | |
| color: #555; | |
| border-bottom: 1px solid #eee; | |
| padding-bottom: 10px; | |
| margin-top: 0; | |
| } | |
| .input-group { | |
| margin-bottom: 15px; | |
| } | |
| label { | |
| display: block; | |
| margin-bottom: 5px; | |
| font-weight: bold; | |
| color: #333; | |
| } | |
| select, | |
| textarea, | |
| input[type="file"] { | |
| width: 100%; | |
| padding: 10px; | |
| border: 1px solid #ccc; | |
| border-radius: 4px; | |
| box-sizing: border-box; /* Prevents padding from adding to width */ | |
| } | |
| textarea { | |
| min-height: 100px; | |
| resize: vertical; | |
| } | |
| button { | |
| background-color: #5cb85c; | |
| color: white; | |
| padding: 10px 15px; | |
| border: none; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| font-size: 1em; | |
| transition: background-color 0.3s ease; | |
| } | |
| button:hover { | |
| background-color: #4cae4c; | |
| } | |
| .result-box { | |
| margin-top: 20px; | |
| padding: 15px; | |
| background-color: #e9e9e9; | |
| border: 1px solid #ddd; | |
| border-radius: 4px; | |
| min-height: 50px; | |
| } | |
| .result-box h3 { | |
| margin-top: 0; | |
| color: #333; | |
| } | |
| pre { | |
| white-space: pre-wrap; /* Allows text to wrap */ | |
| word-wrap: break-word; /* Breaks long words */ | |
| background: #f9f9f9; | |
| padding: 10px; | |
| border-radius: 4px; | |
| } | |
| code { | |
| font-family: monospace; | |
| font-size: 0.95em; | |
| } | |
| .error-box { | |
| margin-top: 20px; | |
| padding: 15px; | |
| background-color: #f2dede; | |
| border: 1px solid #ebccd1; | |
| color: #a94442; | |
| border-radius: 4px; | |
| } | |
| /* RTL support for results */ | |
| [dir="rtl"] { | |
| text-align: right; | |
| } | |
| /* Basic responsiveness */ | |
| @media (max-width: 600px) { | |
| body { | |
| margin: 10px; | |
| } | |
| .container { | |
| padding: 15px; | |
| } | |
| } | |