Spaces:
Sleeping
Sleeping
| /* Global Reset & Fonts */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | |
| background-color: #0b0f19; | |
| color: #e0e0e0; | |
| padding: 40px 20px; | |
| min-height: 100vh; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| /* Main Container */ | |
| .container { | |
| background: #1c1c2e; | |
| padding: 30px; | |
| border-radius: 20px; | |
| box-shadow: 0px 0px 5px #706227; | |
| border: 1px solid #706227; | |
| max-width: 1000px; | |
| width: 100%; | |
| } | |
| header { | |
| text-align: center; | |
| margin-bottom: 30px; | |
| padding-bottom: 20px; | |
| border-bottom: 1px solid #2e2e42; | |
| } | |
| header h1 { color: #ffffff; font-weight: 700; margin-bottom: 5px; } | |
| header p { color: #9ca3af; } | |
| /* Layout Grid */ | |
| .main-content { | |
| display: grid; | |
| grid-template-columns: 1.5fr 1fr; | |
| gap: 40px; | |
| } | |
| .form-grid { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 20px; | |
| } | |
| /* Input Components */ | |
| .input-group { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| } | |
| .input-label { | |
| font-size: 14px; | |
| font-weight: 600; | |
| color: #f0f1f3; | |
| letter-spacing: 0.5px; | |
| } | |
| /* External Link for BMI */ | |
| .external-link { | |
| color: #FFD21E; | |
| text-decoration: underline; | |
| transition: color 0.2s; | |
| } | |
| .external-link:hover { | |
| color: #ffffff; | |
| } | |
| .number-input-container { | |
| position: relative; | |
| display: flex; | |
| align-items: center; | |
| background: #0b0f19; | |
| border: 1px solid #36364c; | |
| border-radius: 10px; | |
| padding: 0; | |
| transition: all 0.2s ease; | |
| overflow: hidden; | |
| height: 42px; | |
| } | |
| .number-input-container:focus-within { | |
| border-color: #FFD21E; | |
| box-shadow: 0 0 0 1px rgba(255, 210, 30, 0.2); | |
| } | |
| .number-input { | |
| flex: 1; | |
| border: none; | |
| background: transparent; | |
| padding: 0 16px; | |
| font-size: 16px; | |
| font-weight: 600; | |
| color: #ffffff; | |
| outline: none; | |
| width: 0; | |
| min-width: 0; | |
| } | |
| /* Hide native spinners */ | |
| .number-input::-webkit-outer-spin-button, | |
| .number-input::-webkit-inner-spin-button { | |
| -webkit-appearance: none; | |
| margin: 0; | |
| } | |
| .number-input[type=number] { -moz-appearance: textfield; } | |
| /* Controls */ | |
| .controls { | |
| display: flex; | |
| align-items: center; | |
| background: transparent; | |
| margin-right: 4px; | |
| height: 100%; | |
| } | |
| .control-btn { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 28px; | |
| height: 28px; | |
| border: none; | |
| background: transparent; | |
| cursor: pointer; | |
| transition: all 0.15s ease; | |
| color: #9ca3af; | |
| } | |
| .control-btn:hover { | |
| background: rgba(255, 255, 255, 0.1); | |
| color: #FFD21E; | |
| border-radius: 4px; | |
| } | |
| .control-btn:active { transform: scale(0.95); color: #fff; } | |
| .decrease-btn { border-radius: 10px; } | |
| .increase-btn { border-radius: 10px; } | |
| .separator { | |
| width: 1px; | |
| height: 18px; | |
| background: #36364c; | |
| margin: 0 2px; | |
| } | |
| /* Submit Button */ | |
| .submit-btn { | |
| width: 100%; | |
| margin-top: 25px; | |
| padding: 14px; | |
| background: linear-gradient(135deg, #FFD21E 0%, #facc15 100%); | |
| color: #000; | |
| font-weight: 700; | |
| border: none; | |
| border-radius: 10px; | |
| font-size: 1rem; | |
| cursor: pointer; | |
| transition: transform 0.1s, box-shadow 0.2s; | |
| } | |
| .submit-btn:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 15px rgba(255, 210, 30, 0.3); | |
| } | |
| /* Result Section */ | |
| .result-section { | |
| background: #131320; | |
| border-radius: 20px; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| text-align: center; | |
| padding: 20px; | |
| border: 1px solid #2e2e42; | |
| min-height: 200px; | |
| } | |
| .placeholder-text h3 { color: #ffffff; margin-bottom: 8px; } | |
| .placeholder-text p { color: #6b7280; font-size: 0.9rem; } | |
| /* Dynamic Result Styles */ | |
| .result-box { animation: fadeIn 0.5s ease; width: 100%; } | |
| .risk-level { font-size: 2rem; font-weight: 800; margin: 15px 0; } | |
| .safe-color { color: #34d399; } | |
| .danger-color { color: #f87171; } | |
| .confidence-bar-bg { | |
| width: 100%; | |
| height: 8px; | |
| background-color: #2e2e42; | |
| border-radius: 4px; | |
| margin-top: 15px; | |
| overflow: hidden; | |
| } | |
| .confidence-bar-fill { | |
| height: 100%; | |
| border-radius: 4px; | |
| transition: width 1s ease; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; transform: translateY(10px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| /* Mobile Responsive */ | |
| @media (max-width: 768px) { | |
| .main-content { grid-template-columns: 1fr; } | |
| .form-grid { grid-template-columns: 1fr; } | |
| } |