Spaces:
Running
Running
| /* style.css content here */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| min-height: 100vh; | |
| color: #333; | |
| } | |
| .container { | |
| max-width: 800px; | |
| margin: 0 auto; | |
| padding: 20px; | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| header { | |
| text-align: center; | |
| margin-bottom: 40px; | |
| color: white; | |
| } | |
| .header-content h1 { | |
| font-size: 2.5rem; | |
| margin-bottom: 10px; | |
| font-weight: 700; | |
| } | |
| .header-content p { | |
| font-size: 1.2rem; | |
| opacity: 0.9; | |
| margin-bottom: 20px; | |
| } | |
| .anycoder-badge { | |
| display: inline-block; | |
| background: rgba(255,255,255,0.2); | |
| color: white; | |
| padding: 8px 16px; | |
| border-radius: 25px; | |
| text-decoration: none; | |
| font-size: 0.9rem; | |
| transition: all 0.3s ease; | |
| backdrop-filter: blur(10px); | |
| } | |
| .anycoder-badge:hover { | |
| background: rgba(255,255,255,0.3); | |
| transform: translateY(-2px); | |
| } | |
| .main-content { | |
| background: rgba(255, 255, 255, 0.95); | |
| backdrop-filter: blur(20px); | |
| border-radius: 24px; | |
| padding: 40px; | |
| box-shadow: 0 25px 50px rgba(0,0,0,0.15); | |
| flex: 1; | |
| } | |
| .controls { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 24px; | |
| margin-bottom: 32px; | |
| } | |
| .input-section { | |
| position: relative; | |
| } | |
| #textInput { | |
| width: 100%; | |
| min-height: 120px; | |
| padding: 20px; | |
| border: 2px solid #e1e5e9; | |
| border-radius: 16px; | |
| font-size: 16px; | |
| font-family: inherit; | |
| resize: vertical; | |
| transition: all 0.3s ease; | |
| background: white; | |
| } | |
| #textInput:focus { | |
| outline: none; | |
| border-color: #667eea; | |
| box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1); | |
| } | |
| .input-info { | |
| margin-top: 8px; | |
| text-align: right; | |
| } | |
| #charCount { | |
| font-size: 0.85rem; | |
| color: #6b7280; | |
| } | |
| #charCount.warning { | |
| color: #f59e0b; | |
| } | |
| .voice-section, .device-section { | |
| display: flex; | |
| align-items: center; | |
| gap: 16px; | |
| } | |
| .voice-label { | |
| font-weight: 600; | |
| color: #374151; | |
| min-width: 60px; | |
| } | |
| #voiceSelect { | |
| flex: 1; | |
| padding: 12px 16px; | |
| border: 2px solid #e1e5e9; | |
| border-radius: 12px; | |
| background: white; | |
| font-size: 16px; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| } | |
| #voiceSelect:focus { | |
| outline: none; | |
| border-color: #667eea; | |
| box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); | |
| } | |
| .device-toggle-label { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| cursor: pointer; | |
| user-select: none; | |
| } | |
| .toggle-switch { | |
| position: relative; | |
| width: 52px; | |
| height: 28px; | |
| background: #e1e5e9; | |
| border-radius: 14px; | |
| transition: all 0.3s ease; | |
| cursor: pointer; | |
| } | |
| .toggle-switch:hover { | |
| background: #d1d5db; | |
| } | |
| #deviceToggle:checked + .toggle-switch { | |
| background: #10b981; | |
| } | |
| .toggle-knob { | |
| position: absolute; | |
| top: 3px; | |
| left: 3px; | |
| width: 22px; | |
| height: 22px; | |
| background: white; | |
| border-radius: 50%; | |
| transition: transform 0.3s ease; | |
| box-shadow: 0 2px 4px rgba(0,0,0,0.2); | |
| } | |
| #deviceToggle:checked + .toggle-switch .toggle-knob { | |
| transform: translateX(24px); | |
| } | |
| .toggle-text { | |
| font-weight: 500; | |
| color: #374151; | |
| font-size: 0.95rem; | |
| } | |
| .generate-btn { | |
| width: 100%; | |
| padding: 20px; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| border: none; | |
| border-radius: 16px; | |
| font-size: 18px; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .generate-btn:hover:not(:disabled) { | |
| transform: translateY(-2px); | |
| box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4); | |
| } | |
| .generate-btn:disabled { | |
| opacity: 0.6; | |
| cursor: not-allowed; | |
| transform: none; | |
| } | |
| .btn-content { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 12px; | |
| } | |
| .spinner { | |
| width: 20px; | |
| height: 20px; | |
| border: 2px solid rgba(255,255,255,0.3); | |
| border-top: 2px solid white; | |
| border-radius: 50%; | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| .status { | |
| padding: 16px 24px; | |
| border-radius: 12px; | |
| font-weight: 500; | |
| text-align: center; | |
| transition: all 0.3s ease; | |
| } | |
| .status.hidden { | |
| display: none; | |
| } | |
| .status.loading { | |
| background: #fef3c7; | |
| color: #92400e; | |
| border: 1px solid #f59e0b; | |
| } | |
| .status.success { | |
| background: #d1fae5; | |
| color: #065f46; | |
| border: 1px solid #10b981; | |
| } | |
| .status.error { | |
| background: #fee2e2; | |
| color: #991b1b; | |
| border: 1px solid #ef4444; | |
| } | |
| .audio-section { | |
| background: #f8fafc; | |
| border: 2px solid #e2e8f0; | |
| border-radius: 16px; | |
| padding: 24px; | |
| margin-top: 24px; | |
| } | |
| .audio-controls { | |
| display: flex; | |
| gap: 12px; | |
| justify-content: center; | |
| margin-bottom: 16px; | |
| } | |
| .play-btn, .download-btn { | |
| width: 56px; | |
| height: 56px; | |
| border: none; | |
| border-radius: 50%; | |
| background: white; | |
| color: #374151; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: all 0.3s ease; | |
| box-shadow: 0 4px 12px rgba(0,0,0,0.1); | |
| } | |
| .play-btn:hover, .download-btn:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 20px rgba(0,0,0,0.15); | |
| background: #f1f5f9; | |
| } | |
| .play-btn svg, .download-btn svg { | |
| width: 24px; | |
| height: 24px; | |
| } | |
| .sr-only { | |
| position: absolute; | |
| width: 1px; | |
| height: 1px; | |
| padding: 0; | |
| margin: -1px; | |
| overflow: hidden; | |
| clip: rect(0, 0, 0, 0); | |
| white-space: nowrap; | |
| border: 0; | |
| } | |
| /* Responsive Design */ | |
| @media (max-width: 768px) { | |
| .container { | |
| padding: 16px; | |
| } | |
| .header-content h1 { | |
| font-size: 2rem; | |
| } | |
| .main-content { | |
| padding: 24px 20px; | |
| margin: 0 8px; | |
| border-radius: 20px; | |
| } | |
| .voice-section, .device-section { | |
| flex-direction: column; | |
| align-items: stretch; | |
| } | |
| .device-toggle-label { | |
| justify-content: space-between; | |
| } | |
| .audio-controls { | |
| flex-direction: column; | |
| align-items: center; | |
| } | |
| .play-btn, .download-btn { | |
| width: 64px; | |
| height: 64px; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| .header-content h1 { | |
| font-size: 1.8rem; | |
| } | |
| #textInput { | |
| min-height: 100px; | |
| padding: 16px; | |
| } | |
| } | |
| ``` |