Spaces:
Running
Running
| /* style.css content here */ | |
| /* General Reset and Variables */ | |
| :root { | |
| --color-primary: #1a73e8; /* Google blue for a modern look */ | |
| --color-secondary: #5f6368; | |
| --color-background: #f1f3f4; /* Light gray background */ | |
| --color-surface: #ffffff; | |
| --color-text: #202124; | |
| --color-success: #34a853; /* Google green */ | |
| --color-error: #ea4335; /* Google red */ | |
| --font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| --border-radius: 8px; | |
| --padding-unit: 1.25rem; | |
| } | |
| body { | |
| font-family: var(--font-family); | |
| margin: 0; | |
| padding: 0; | |
| background-color: var(--color-background); | |
| color: var(--color-text); | |
| line-height: 1.6; | |
| } | |
| header { | |
| background-color: var(--color-surface); | |
| border-bottom: 1px solid #dadce0; | |
| padding: var(--padding-unit) 5%; | |
| box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); | |
| } | |
| .header-content { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| } | |
| h1 { | |
| font-size: 1.8rem; | |
| color: var(--color-text); | |
| margin: 0; | |
| font-weight: 500; | |
| } | |
| .anycoder-link { | |
| font-size: 0.85rem; | |
| color: var(--color-primary); | |
| text-decoration: none; | |
| padding: 5px 10px; | |
| border-radius: 4px; | |
| transition: background-color 0.2s; | |
| } | |
| .anycoder-link:hover { | |
| background-color: #e8f0fe; | |
| } | |
| main { | |
| max-width: 1200px; | |
| margin: 2rem auto; | |
| padding: 0 5%; | |
| } | |
| .explanation { | |
| background-color: #e7f2ff; | |
| color: #1a4d95; | |
| padding: 1rem; | |
| border-radius: var(--border-radius); | |
| margin-bottom: 1.5rem; | |
| border: 1px solid #c5e3ff; | |
| font-size: 0.95rem; | |
| } | |
| /* Controls and Interface Grid */ | |
| .controls { | |
| margin-bottom: 1.5rem; | |
| } | |
| .interface-grid { | |
| display: grid; | |
| grid-template-columns: 1fr; | |
| gap: 2rem; | |
| } | |
| .input-panel, .output-panel, .controls { | |
| background-color: var(--color-surface); | |
| padding: var(--padding-unit); | |
| border-radius: var(--border-radius); | |
| box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1); | |
| } | |
| h2 { | |
| color: var(--color-primary); | |
| font-size: 1.2rem; | |
| margin-top: 0; | |
| padding-bottom: 0.5rem; | |
| border-bottom: 1px solid #f0f0f0; | |
| font-weight: 400; | |
| } | |
| /* Input Styles */ | |
| .input-group { | |
| margin-bottom: 1rem; | |
| } | |
| label { | |
| display: block; | |
| margin-bottom: 0.5rem; | |
| font-weight: 500; | |
| color: var(--color-text); | |
| } | |
| textarea { | |
| width: 100%; | |
| padding: 0.75rem; | |
| border: 1px solid #dadce0; | |
| border-radius: var(--border-radius); | |
| box-sizing: border-box; | |
| font-size: 1rem; | |
| resize: vertical; | |
| min-height: 100px; | |
| transition: border-color 0.2s; | |
| } | |
| textarea:focus { | |
| border-color: var(--color-primary); | |
| outline: none; | |
| box-shadow: 0 0 0 1px var(--color-primary); | |
| } | |
| /* File Input Custom Styling */ | |
| .file-label { | |
| background-color: var(--color-secondary); | |
| color: white; | |
| padding: 0.75rem 1.25rem; | |
| border-radius: var(--border-radius); | |
| cursor: pointer; | |
| text-align: center; | |
| transition: background-color 0.2s; | |
| display: inline-block; | |
| font-weight: 500; | |
| } | |
| .file-label:hover { | |
| background-color: #4a4d51; | |
| } | |
| #image-upload { | |
| display: none; | |
| } | |
| /* Button */ | |
| #classify-button { | |
| width: 100%; | |
| padding: 1rem; | |
| background-color: var(--color-primary); | |
| color: white; | |
| border: none; | |
| border-radius: var(--border-radius); | |
| font-size: 1.1rem; | |
| cursor: pointer; | |
| transition: background-color 0.2s, opacity 0.2s; | |
| margin-top: 1rem; | |
| font-weight: 500; | |
| } | |
| #classify-button:hover:not(:disabled) { | |
| background-color: #0c61e0; | |
| } | |
| #classify-button:disabled { | |
| background-color: #ccc; | |
| cursor: not-allowed; | |
| opacity: 0.8; | |
| } | |
| /* Output Area */ | |
| #image-preview-container { | |
| height: 300px; | |
| border: 1px solid #dadce0; | |
| border-radius: var(--border-radius); | |
| margin-bottom: 1.5rem; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| overflow: hidden; | |
| background-color: #fcfcfc; | |
| } | |
| #image-preview { | |
| max-width: 100%; | |
| max-height: 100%; | |
| object-fit: contain; | |
| } | |
| .placeholder-text { | |
| color: var(--color-secondary); | |
| font-style: italic; | |
| } | |
| #status { | |
| font-weight: 400; | |
| margin-bottom: 1rem; | |
| padding: 10px; | |
| background-color: #e6f4ea; /* Light success background */ | |
| border-radius: 4px; | |
| color: #1e8e3e; | |
| } | |
| /* Classification Results Styling */ | |
| #classification-results { | |
| margin-top: 1rem; | |
| } | |
| .result-item { | |
| display: flex; | |
| align-items: center; | |
| padding: 0.75rem 0; | |
| border-bottom: 1px solid #f0f0f0; | |
| } | |
| .result-item:last-child { | |
| border-bottom: none; | |
| } | |
| .label-text { | |
| width: 25%; | |
| font-weight: 400; | |
| } | |
| .score-bar-container { | |
| flex-grow: 1; | |
| height: 15px; | |
| background-color: #e8f0fe; | |
| border-radius: 4px; | |
| overflow: hidden; | |
| margin: 0 1rem; | |
| } | |
| .score-bar { | |
| height: 100%; | |
| background-color: var(--color-primary); | |
| transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); | |
| } | |
| .score-text { | |
| width: 50px; | |
| text-align: right; | |
| font-weight: 600; | |
| font-size: 0.95rem; | |
| color: var(--color-primary); | |
| } | |
| /* Device Toggle */ | |
| .device-toggle-container { | |
| display: flex; | |
| align-items: center; | |
| gap: 15px; | |
| padding-top: 10px; | |
| } | |
| #device-select { | |
| padding: 0.5rem; | |
| border-radius: 4px; | |
| border: 1px solid #dadce0; | |
| } | |
| /* Responsive Adjustments */ | |
| @media (min-width: 768px) { | |
| .interface-grid { | |
| grid-template-columns: 1fr 1.5fr; | |
| } | |
| } | |
| @media (max-width: 767px) { | |
| h1 { | |
| font-size: 1.5rem; | |
| } | |
| .header-content { | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .anycoder-link { | |
| margin-bottom: 0.5rem; | |
| } | |
| main { | |
| padding: 0 1rem; | |
| } | |
| .label-text { | |
| width: auto; | |
| min-width: 30%; | |
| margin-right: 0.5rem; | |
| } | |
| .score-bar-container { | |
| margin: 0 0.5rem; | |
| } | |
| } |