* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; padding: 20px; } .container { max-width: 800px; margin: 0 auto; background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); overflow: hidden; } header { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: white; padding: 30px; text-align: center; } header h1 { font-size: 2.5em; margin-bottom: 10px; } header p { font-size: 1.1em; opacity: 0.9; } main { padding: 30px; } .test-section { margin-bottom: 40px; } .test-section h2 { color: #374151; margin-bottom: 20px; font-size: 1.5em; } .input-group { margin-bottom: 20px; } .input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #374151; } textarea { width: 100%; padding: 12px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 16px; font-family: inherit; resize: vertical; transition: border-color 0.3s; } textarea:focus { outline: none; border-color: #4f46e5; } .button-group { display: flex; gap: 12px; margin-bottom: 20px; } button { padding: 12px 24px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; } #analyzeBtn { background: #4f46e5; color: white; flex: 1; } #analyzeBtn:hover { background: #4338ca; transform: translateY(-2px); } #clearBtn { background: #6b7280; color: white; flex: 0 0 auto; } #clearBtn:hover { background: #4b5563; } .loading { text-align: center; padding: 20px; } .spinner { width: 40px; height: 40px; border: 4px solid #e5e7eb; border-top: 4px solid #4f46e5; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 10px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .results { background: #f0fdf4; border: 2px solid #16a34a; border-radius: 8px; padding: 20px; margin: 20px 0; } .error { background: #fef2f2; border: 2px solid #ef4444; border-radius: 8px; padding: 20px; margin: 20px 0; } .hidden { display: none; } .sentiment-positive { color: #16a34a; font-weight: bold; } .sentiment-negative { color: #ef4444; font-weight: bold; } .confidence-bar { width: 100%; height: 20px; background: #e5e7eb; border-radius: 10px; overflow: hidden; margin: 10px 0; } .confidence-fill { height: 100%; transition: width 0.5s ease; } .confidence-positive { background: linear-gradient(90deg, #16a34a, #22c55e); } .confidence-negative { background: linear-gradient(90deg, #ef4444, #f87171); } .examples-section, .api-info { margin: 40px 0; padding: 20px; background: #f9fafb; border-radius: 8px; } .examples-section h2, .api-info h2 { color: #374151; margin-bottom: 15px; } .examples { display: flex; flex-direction: column; gap: 10px; } .example { padding: 12px; background: white; border: 2px solid #e5e7eb; border-radius: 6px; cursor: pointer; transition: all 0.3s; } .example:hover { border-color: #4f46e5; transform: translateX(5px); } .info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; } .info-item { padding: 12px; background: white; border-radius: 6px; border: 1px solid #e5e7eb; } .info-item a { color: #4f46e5; text-decoration: none; } .info-item a:hover { text-decoration: underline; } @media (max-width: 768px) { .container { margin: 10px; border-radius: 8px; } header { padding: 20px; } header h1 { font-size: 2em; } main { padding: 20px; } .button-group { flex-direction: column; } .info-grid { grid-template-columns: 1fr; } }