Spaces:
Running
Running
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| min-height: 100vh; | |
| padding: 20px; | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| background: white; | |
| border-radius: 20px; | |
| box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); | |
| overflow: hidden; | |
| } | |
| header { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| padding: 40px; | |
| text-align: center; | |
| } | |
| header h1 { | |
| font-size: 2.5em; | |
| margin-bottom: 10px; | |
| font-weight: 700; | |
| } | |
| header p { | |
| font-size: 1.2em; | |
| opacity: 0.9; | |
| } | |
| .tabs { | |
| display: flex; | |
| background: #f8f9fa; | |
| border-bottom: 1px solid #dee2e6; | |
| } | |
| .tab-button { | |
| flex: 1; | |
| padding: 20px; | |
| background: none; | |
| border: none; | |
| cursor: pointer; | |
| font-size: 1.1em; | |
| font-weight: 600; | |
| color: #6c757d; | |
| transition: all 0.3s ease; | |
| } | |
| .tab-button:hover { | |
| background: #e9ecef; | |
| color: #495057; | |
| } | |
| .tab-button.active { | |
| background: white; | |
| color: #667eea; | |
| border-bottom: 3px solid #667eea; | |
| } | |
| .tab-content { | |
| display: none; | |
| padding: 40px; | |
| } | |
| .tab-content.active { | |
| display: block; | |
| } | |
| .tab-content h2 { | |
| color: #333; | |
| margin-bottom: 30px; | |
| font-size: 1.8em; | |
| } | |
| .upload-area { | |
| border: 3px dashed #dee2e6; | |
| border-radius: 15px; | |
| padding: 60px 20px; | |
| text-align: center; | |
| margin-bottom: 30px; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| background: #f8f9fa; | |
| } | |
| .upload-area:hover { | |
| border-color: #667eea; | |
| background: #f0f4ff; | |
| } | |
| .upload-area.dragover { | |
| border-color: #667eea; | |
| background: #e3f2fd; | |
| } | |
| .upload-icon { | |
| font-size: 4em; | |
| margin-bottom: 20px; | |
| display: block; | |
| } | |
| .upload-placeholder p { | |
| font-size: 1.2em; | |
| color: #6c757d; | |
| margin-bottom: 10px; | |
| } | |
| .file-types { | |
| font-size: 0.9em ; | |
| color: #adb5bd ; | |
| } | |
| .predict-btn { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| border: none; | |
| padding: 15px 40px; | |
| font-size: 1.1em; | |
| font-weight: 600; | |
| border-radius: 50px; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| margin-bottom: 30px; | |
| } | |
| .predict-btn:hover:not(:disabled) { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3); | |
| } | |
| .predict-btn:disabled { | |
| background: #dee2e6; | |
| color: #6c757d; | |
| cursor: not-allowed; | |
| transform: none; | |
| box-shadow: none; | |
| } | |
| .result { | |
| padding: 20px; | |
| border-radius: 10px; | |
| font-size: 1.1em; | |
| font-weight: 600; | |
| text-align: center; | |
| margin-bottom: 30px; | |
| min-height: 60px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .result.success { | |
| background: #d4edda; | |
| color: #155724; | |
| border: 1px solid #c3e6cb; | |
| } | |
| .result.error { | |
| background: #f8d7da; | |
| color: #721c24; | |
| border: 1px solid #f5c6cb; | |
| } | |
| .examples { | |
| border-top: 1px solid #dee2e6; | |
| padding-top: 30px; | |
| } | |
| .examples h3 { | |
| margin-bottom: 20px; | |
| color: #495057; | |
| } | |
| .example-btn { | |
| background: #f8f9fa; | |
| border: 1px solid #dee2e6; | |
| padding: 12px 24px; | |
| margin-right: 15px; | |
| margin-bottom: 10px; | |
| border-radius: 25px; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| font-weight: 500; | |
| } | |
| .example-btn:hover { | |
| background: #e9ecef; | |
| border-color: #adb5bd; | |
| } | |
| .loading { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0, 0, 0, 0.8); | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| z-index: 9999; | |
| } | |
| .spinner { | |
| width: 50px; | |
| height: 50px; | |
| border: 5px solid #f3f3f3; | |
| border-top: 5px solid #667eea; | |
| border-radius: 50%; | |
| animation: spin 1s linear infinite; | |
| margin-bottom: 20px; | |
| } | |
| .loading p { | |
| color: white; | |
| font-size: 1.2em; | |
| font-weight: 600; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| .file-preview { | |
| margin-top: 20px; | |
| text-align: center; | |
| } | |
| .file-preview img { | |
| max-width: 300px; | |
| max-height: 200px; | |
| border-radius: 10px; | |
| box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); | |
| } | |
| .file-preview video { | |
| max-width: 400px; | |
| max-height: 300px; | |
| border-radius: 10px; | |
| box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); | |
| } | |
| @media (max-width: 768px) { | |
| .container { | |
| margin: 10px; | |
| border-radius: 15px; | |
| } | |
| .tabs { | |
| flex-direction: column; | |
| } | |
| .tab-content { | |
| padding: 20px; | |
| } | |
| header { | |
| padding: 30px 20px; | |
| } | |
| header h1 { | |
| font-size: 2em; | |
| } | |
| } |