:root { --primary-color: #2563eb; --secondary-color: #1e40af; --background-color: #0f172a; --text-color: #e2e8f0; --border-color: #1e293b; --success-color: #10b981; --error-color: #ef4444; --card-bg: #1e293b; --card-hover: #334155; --code-bg: #1e293b; --header-bg: #0f172a; --panel-bg: #ffffff; --docs-bg: #1a1a1a; --docs-text: #e5e7eb; --gradient-start: #60a5fa; --gradient-end: #34d399; --disclaimer-bg: #eef2ff; --disclaimer-border: #c7d2fe; --disclaimer-text: #4f46e5; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 1.6; margin: 0; padding: 0; color: #333; background-color: #f5f5f5; } .app-container { max-width: 1200px; margin: 0 auto; padding: 2rem; } .content-wrapper { background-color: #fff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); padding: 2rem; } /* Header */ .main-header { margin-bottom: 3rem; padding-bottom: 1rem; border-bottom: 1px solid #eee; } .header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .github-link { color: #333; font-size: 1.5rem; transition: all 0.2s ease; background-color: #f8fafc; padding: 0.5rem 1rem; border-radius: 6px; border: 1px solid #e2e8f0; display: flex; align-items: center; gap: 0.5rem; text-decoration: none; } .github-link i { font-size: 1.5rem; } .github-link:hover { color: #2563eb; background-color: #eff6ff; border-color: #2563eb; transform: translateY(-2px); box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1); } .header-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; } .language-selector { display: flex; gap: 0.5rem; } .lang-btn { padding: 0.5rem 1rem; border: 1px solid #e2e8f0; border-radius: 4px; background: white; cursor: pointer; font-size: 0.9rem; transition: all 0.2s ease; } .lang-btn:hover { border-color: #2563eb; color: #2563eb; } .lang-btn.active { background: #2563eb; color: white; border-color: #2563eb; } .main-header h1 { margin: 0; color: #2c3e50; font-size: 2.5rem; } .subtitle { color: #666; margin: 0.5rem 0 0; } /* Disclaimer Section */ .disclaimer-notice { background-color: var(--disclaimer-bg); border: 1px solid var(--disclaimer-border); border-radius: 8px; margin-bottom: 2rem; padding: 1.5rem; } .disclaimer-container { display: flex; align-items: flex-start; gap: 1rem; } .disclaimer-icon { color: var(--disclaimer-text); font-size: 1.5rem; padding: 0.5rem; background-color: rgba(79, 70, 229, 0.1); border-radius: 50%; } .disclaimer-content { flex: 1; } .disclaimer-content h2 { color: var(--disclaimer-text); margin-bottom: 0.5rem; font-size: 1.5rem; } .disclaimer-content p { color: #4b5563; margin-bottom: 0; } .disclaimer-content a { color: var(--disclaimer-text); text-decoration: none; font-weight: 500; } .disclaimer-content a:hover { text-decoration: underline; } /* Content sections */ .content-section { margin-bottom: 3rem; } .content-section h2 { color: #2c3e50; margin-bottom: 1.5rem; font-size: 1.8rem; } /* Code blocks */ .code-block { background: #1e1e1e; border-radius: 6px; overflow: hidden; margin: 1rem 0; } .code-header { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 1rem; background: #2d2d2d; border-bottom: 1px solid #3d3d3d; } .code-language { color: #fff; font-size: 0.9rem; } .copy-button { background: none; border: none; color: #fff; cursor: pointer; padding: 0.25rem 0.5rem; font-size: 0.9rem; } .copy-button:hover { color: #4CAF50; } /* Voice table */ .voice-table { width: 100%; border-collapse: collapse; margin: 1rem 0; } .voice-table th, .voice-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #eee; } .voice-table th { background-color: #f8f9fa; font-weight: 600; color: #2c3e50; } .voice-table tr:hover { background-color: #f8f9fa; } /* API endpoint */ .api-endpoint { margin-bottom: 2rem; } .api-endpoint h3 { color: #2c3e50; margin-bottom: 1rem; } .api-endpoint h4 { color: #666; margin: 1.5rem 0 1rem; } /* Code syntax highlighting overrides */ pre[class*="language-"] { margin: 0; border-radius: 0; } code[class*="language-"] { font-size: 0.9rem; padding: 1rem; } /* Status Section */ .status-section { margin-bottom: 2rem; } .status-container { display: flex; justify-content: center; width: 100%; } .status-card { background-color: #fff; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); padding: 1.5rem; width: 100%; max-width: 600px; } .status-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; } .status-header h3 { margin: 0; color: #2c3e50; font-size: 1.3rem; } .status-indicator { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; background-color: var(--success-color); } .queue-stats { display: flex; justify-content: space-between; margin-bottom: 1rem; } .stat-item { display: flex; flex-direction: column; } .stat-label { font-size: 0.9rem; color: #64748b; margin-bottom: 0.25rem; } .stat-value { font-size: 1.5rem; font-weight: 600; color: #2c3e50; } .queue-progress-container { height: 8px; background-color: #e2e8f0; border-radius: 4px; overflow: hidden; margin-bottom: 0.75rem; } .queue-progress-bar { height: 100%; width: 0%; background: linear-gradient(to right, #10b981, #3b82f6); transition: width 0.5s ease, background-color 0.5s ease; } .queue-load-text { text-align: center; font-size: 0.9rem; font-weight: 500; color: #10b981; /* Default green */ } /* Load status colors */ .low-load { color: #10b981 !important; /* Green */ } .medium-load { color: #f59e0b !important; /* Yellow/Orange */ } .high-load { color: #ef4444 !important; /* Red */ } .indicator-low { background-color: #10b981 !important; } .indicator-medium { background-color: #f59e0b !important; } .indicator-high { background-color: #ef4444 !important; } .progress-low { background: linear-gradient(to right, #10b981, #34d399) !important; } .progress-medium { background: linear-gradient(to right, #f59e0b, #fbbf24) !important; } .progress-high { background: linear-gradient(to right, #ef4444, #f87171) !important; } /* Voice Grid */ .voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; } .voice-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.25rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; } .voice-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent); transform: translateX(-100%); transition: transform 0.6s ease; } .voice-card:hover::after { transform: translateX(100%); } .voice-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); border-color: var(--primary-color); } .voice-name { font-size: 1.1rem; font-weight: 600; color: var(--text-color); margin-bottom: 0.25rem; text-transform: capitalize; position: relative; display: inline-block; } .voice-name::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: linear-gradient(to right, var(--gradient-start), var(--gradient-end)); transition: width 0.3s ease; } .voice-card:hover .voice-name::after { width: 100%; } .voice-description { font-size: 0.8rem; color: #94a3b8; } /* Processing Status */ #processing-status { font-weight: 500; } #processing-status.processing { color: #60a5fa; } #processing-status.idle { color: #34d399; } /* Responsive Design */ @media (max-width: 768px) { .app-container { padding: 1rem; } .main-header { padding: 2rem 1rem; } .main-header h1 { font-size: 2rem; } .queue-status { grid-template-columns: 1fr; } .voice-grid { grid-template-columns: 1fr; } .content-section { margin-bottom: 2rem; } .status-card, .voice-card { padding: 1.25rem; } .status-icon { width: 2.5rem; height: 2.5rem; font-size: 1.25rem; } .status-value { font-size: 1.25rem; } } @media (max-width: 480px) { .main-header h1 { font-size: 1.75rem; } .subtitle { font-size: 1rem; } .content-section h2 { font-size: 1.5rem; } .api-endpoint { padding: 1rem; } pre { padding: 1rem; } } /* Scrollbar Styling */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: var(--background-color); } ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--card-hover); } /* Audio Container */ .audio-container { margin-top: 20px; display: flex; flex-direction: column; gap: 15px; } .audio-wrapper { background: #2a2a2a; border-radius: 8px; padding: 15px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .voice-label { font-size: 14px; color: #888; margin-bottom: 8px; text-transform: capitalize; } .audio-player { width: 100%; height: 40px; background: #1a1a1a; border-radius: 4px; padding: 5px; } .audio-player::-webkit-media-controls-panel { background: #1a1a1a; } .audio-player::-webkit-media-controls-play-button { background-color: #4CAF50; border-radius: 50%; } .audio-player::-webkit-media-controls-timeline { background-color: #4CAF50; border-radius: 2px; } .audio-player::-webkit-media-controls-volume-slider { background-color: #4CAF50; border-radius: 2px; } /* Header Decoration */ .header-decoration { position: absolute; top: 0; right: 0; width: 200px; height: 200px; pointer-events: none; } .decoration-circle { position: absolute; border-radius: 50%; opacity: 0.1; } .decoration-circle:nth-child(1) { width: 100px; height: 100px; background: var(--gradient-start); top: 20px; right: 20px; } .decoration-circle:nth-child(2) { width: 60px; height: 60px; background: var(--gradient-end); top: 60px; right: 60px; } .decoration-circle:nth-child(3) { width: 40px; height: 40px; background: var(--primary-color); top: 100px; right: 100px; } /* Voice Icon */ .voice-icon { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; transition: all 0.3s ease; } .voice-icon i { font-size: 1.25rem; color: var(--text-color); } .voice-card:hover .voice-icon { background: var(--primary-color); transform: scale(1.1); } /* Section Headers */ .content-section h2 { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; } .content-section h2 i { color: var(--primary-color); font-size: 1.5rem; } .api-endpoint h3 { display: flex; align-items: center; gap: 0.75rem; } .api-endpoint h3 i { color: var(--primary-color); font-size: 1.25rem; } /* Loading Animation */ @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } } .status-card.processing { animation: pulse 2s infinite; } .status-card.processing .status-icon { animation: spin 2s linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /* Parameter and Error Tables */ .params-table, .error-table { width: 100%; border-collapse: collapse; margin: 1rem 0; background-color: #fff; border: 1px solid #eee; border-radius: 6px; overflow: hidden; } .params-table th, .params-table td, .error-table th, .error-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #eee; } .params-table th, .error-table th { background-color: #f8f9fa; font-weight: 600; color: #2c3e50; text-transform: uppercase; font-size: 0.85rem; } .params-table td:nth-child(2), .params-table td:nth-child(3) { font-family: 'Fira Code', monospace; font-size: 0.9rem; } .params-table td:nth-child(3) { color: #2563eb; font-weight: 500; } .error-table td:first-child { font-family: 'Fira Code', monospace; font-weight: 500; color: #ef4444; } /* Response Format Section */ .api-endpoint ul { list-style: none; padding-left: 0; margin: 1rem 0; } .api-endpoint ul li { margin: 0.5rem 0; padding-left: 1.5rem; position: relative; } .api-endpoint ul li::before { content: '•'; position: absolute; left: 0.5rem; color: #2563eb; } .api-endpoint ul li code { background-color: #f1f5f9; padding: 0.2rem 0.4rem; border-radius: 4px; font-family: 'Fira Code', monospace; font-size: 0.9rem; color: #2563eb; } /* Queue System Section */ .api-endpoint p { margin: 1rem 0; line-height: 1.6; color: #4a5568; } /* Language Tabs */ .language-tabs { display: flex; gap: 1rem; margin-bottom: 1rem; } .language-tab { padding: 0.5rem 1rem; background-color: #f1f5f9; border-radius: 4px; cursor: pointer; font-weight: 500; color: #4a5568; transition: all 0.2s ease; } .language-tab:hover, .language-tab.active { background-color: #2563eb; color: #fff; } /* Best Used For Column */ .voice-table td:last-child { color: #4a5568; font-style: italic; } /* Mobile Responsiveness for New Elements */ @media (max-width: 768px) { .params-table, .error-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .params-table th, .params-table td, .error-table th, .error-table td { min-width: 120px; } } /* Compatibility Parameters */ .compat-param { color: #94a3b8 !important; font-style: italic; } /* Partially Supported Parameters */ .partial-param { color: #3b82f6 !important; font-style: italic; } .compatibility-notice { margin: 1rem 0; padding: 1rem; background-color: #f8fafc; border-left: 4px solid #94a3b8; border-radius: 0 4px 4px 0; } .compatibility-notice p { margin: 0; color: #64748b; font-size: 0.9rem; } .compatibility-notice strong { color: #475569; } .compat-inline { color: #94a3b8; font-style: italic; padding: 0 2px; } .partial-inline { color: #3b82f6; font-style: italic; padding: 0 2px; } /* Update code examples to reflect actual usage */ .code-block pre code { line-height: 1.5; } /* Parameter Details Section */ .parameter-details { margin: 1.5rem 0; padding: 1rem; background-color: #f0f9ff; border-radius: 6px; border: 1px solid #e0f2fe; } .parameter-details h4 { color: #0369a1; margin-top: 0; margin-bottom: 1rem; } .parameter-details p { margin-bottom: 1rem; color: #334155; } .parameter-details code { background-color: #e0f2fe; padding: 0.2rem 0.4rem; border-radius: 4px; font-family: 'Fira Code', monospace; font-size: 0.9rem; color: #0369a1; } /* Examples List */ .examples-list { list-style: none; padding-left: 0; margin: 1rem 0; } .examples-list li { margin: 0.75rem 0; padding: 0.5rem 0.75rem; background-color: #fff; border-left: 3px solid #3b82f6; border-radius: 0 4px 4px 0; } .examples-list li strong { color: #1e40af; margin-right: 0.25rem; } /* Tip Box */ .tip-box { margin-top: 1.5rem; padding: 0.75rem 1rem; background-color: #fffbeb; border-left: 3px solid #f59e0b; border-radius: 0 4px 4px 0; } .tip-box p { margin: 0; color: #92400e; font-size: 0.9rem; } .tip-box strong { color: #78350f; } /* Warning Box */ .warning-box { margin: 1rem 0; padding: 0.75rem 1rem; background-color: #fef2f2; border-left: 3px solid #ef4444; border-radius: 0 4px 4px 0; } .warning-box p { margin: 0; color: #b91c1c; font-size: 0.9rem; } .warning-box strong { color: #991b1b; } /* Voice List */ .voice-list { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; } .voice-list .voice-name { background-color: #f1f5f9; border-radius: 4px; padding: 0.5rem 1rem; font-family: 'Fira Code', monospace; font-size: 0.9rem; color: #2563eb; border: 1px solid #e2e8f0; transition: all 0.2s ease; cursor: default; } .voice-list .voice-name:hover { background-color: #e0f2fe; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } .version-badge { background-color: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px 16px; margin-left: 12px; display: inline-flex; align-items: center; transition: all 0.2s ease; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); } .version-badge:hover { border-color: var(--primary-color); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .version-badge span { color: #64748b; font-size: 0.9rem; display: flex; align-items: center; gap: 4px; } .version-badge strong { color: var(--primary-color); font-weight: 600; font-family: 'Fira Code', monospace; letter-spacing: 0.5px; } /* Playground Section */ .playground-section { background-color: #fff; border-radius: 8px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .playground-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; } .playground-form { display: flex; flex-direction: column; gap: 1.5rem; } .form-group { display: flex; flex-direction: column; gap: 0.5rem; } .form-group label { font-weight: 500; color: #2c3e50; } .form-group textarea, .form-group select { padding: 0.75rem; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 1rem; font-family: inherit; resize: vertical; transition: border-color 0.2s ease; } .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } .playground-button { background-color: #2563eb; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 6px; font-size: 1rem; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: background-color 0.2s ease; margin-top: 1rem; } .playground-button:hover { background-color: #1d4ed8; } .playground-button:disabled { background-color: #94a3b8; cursor: not-allowed; } .playground-output { display: flex; flex-direction: column; gap: 2rem; } .audio-section { background-color: #f8fafc; border-radius: 8px; padding: 1.5rem; } .audio-section h3 { color: #2c3e50; font-size: 1.1rem; margin-bottom: 1rem; } .audio-player { background-color: white; border-radius: 6px; padding: 1rem; min-height: 60px; display: flex; align-items: center; justify-content: center; border: 1px solid #e2e8f0; } .audio-player audio { width: 100%; } .playground-status { padding: 0.75rem; border-radius: 6px; font-size: 0.9rem; margin-bottom: 1rem; } .playground-status.error { background-color: #fef2f2; color: #b91c1c; border: 1px solid #fee2e2; } .playground-status.success { background-color: #f0fdf4; color: #166534; border: 1px solid #dcfce7; } .voice-select-container { display: flex; gap: 8px; align-items: center; } .voice-select-container select { flex: 1; } .sample-button { background-color: #4a90e2; color: white; border: none; border-radius: 4px; padding: 8px 12px; cursor: pointer; transition: background-color 0.2s; display: flex; align-items: center; justify-content: center; } .sample-button:hover { background-color: #357abd; } .sample-button:active { background-color: #2d6da3; } .sample-button i { font-size: 14px; } @media (max-width: 768px) { .playground-container { grid-template-columns: 1fr; } .playground-output { gap: 1.5rem; } }