| :root { |
| --bg-base: #0a0a0c; |
| --card-bg: rgba(20, 20, 25, 0.6); |
| --border: rgba(255, 255, 255, 0.08); |
| --text-primary: #ffffff; |
| --text-secondary: #94a3b8; |
|
|
| --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); |
| --positive: #10b981; |
| --positive-glow: rgba(16, 185, 129, 0.2); |
| --negative: #f43f5e; |
| --negative-glow: rgba(244, 63, 94, 0.2); |
|
|
| --glow-1: #6366f1; |
| --glow-2: #ec4899; |
| --glow-3: #8b5cf6; |
|
|
| --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); |
| } |
|
|
| * { |
| margin: 0; |
| padding: 0; |
| box-sizing: border-box; |
| } |
|
|
| body { |
| font-family: |
| "Outfit", |
| -apple-system, |
| sans-serif; |
| background-color: var(--bg-base); |
| color: var(--text-primary); |
| min-height: 100vh; |
| display: flex; |
| justify-content: center; |
| align-items: center; |
| overflow-x: hidden; |
| position: relative; |
| padding: 2rem; |
| } |
|
|
| |
| .background-effects { |
| position: fixed; |
| top: 0; |
| left: 0; |
| width: 100vw; |
| height: 100vh; |
| overflow: hidden; |
| z-index: -1; |
| pointer-events: none; |
| } |
|
|
| .glow { |
| position: absolute; |
| width: 600px; |
| height: 600px; |
| border-radius: 50%; |
| filter: blur(100px); |
| opacity: 0.15; |
| animation: float 20s infinite alternate; |
| } |
|
|
| .glow-1 { |
| top: -100px; |
| left: -100px; |
| background: var(--glow-1); |
| } |
|
|
| .glow-2 { |
| bottom: -200px; |
| right: -100px; |
| background: var(--glow-2); |
| animation-delay: -5s; |
| } |
|
|
| .glow-3 { |
| top: 50%; |
| left: 50%; |
| transform: translate(-50%, -50%); |
| background: var(--glow-3); |
| width: 800px; |
| height: 800px; |
| opacity: 0.1; |
| animation: pulse 10s infinite; |
| } |
|
|
| @keyframes float { |
| 0% { |
| transform: translateY(0) scale(1); |
| } |
| 100% { |
| transform: translateY(-50px) scale(1.1); |
| } |
| } |
|
|
| @keyframes pulse { |
| 0%, |
| 100% { |
| opacity: 0.1; |
| transform: translate(-50%, -50%) scale(1); |
| } |
| 50% { |
| opacity: 0.15; |
| transform: translate(-50%, -50%) scale(1.05); |
| } |
| } |
|
|
| |
| .container { |
| width: 100%; |
| max-width: 800px; |
| z-index: 1; |
| display: flex; |
| flex-direction: column; |
| gap: 3rem; |
| } |
|
|
| |
| .header { |
| text-align: center; |
| } |
|
|
| .title { |
| font-size: 3.5rem; |
| font-weight: 700; |
| letter-spacing: -0.02em; |
| margin-bottom: 0.5rem; |
| } |
|
|
| .title .highlight { |
| background: var(--primary-gradient); |
| background-clip: text; |
| -webkit-background-clip: text; |
| -webkit-text-fill-color: transparent; |
| display: inline-block; |
| } |
|
|
| .subtitle { |
| color: var(--text-secondary); |
| font-size: 1.1rem; |
| font-weight: 300; |
| } |
|
|
| |
| .analysis-card { |
| background: var(--card-bg); |
| backdrop-filter: blur(20px); |
| -webkit-backdrop-filter: blur(20px); |
| border: 1px solid var(--border); |
| border-radius: 24px; |
| padding: 3rem; |
| box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); |
| transition: var(--transition); |
| } |
|
|
| .analysis-card:hover { |
| border-color: rgba(255, 255, 255, 0.15); |
| box-shadow: |
| 0 25px 50px -12px rgba(0, 0, 0, 0.7), |
| 0 0 40px rgba(99, 102, 241, 0.1); |
| } |
|
|
| .input-group { |
| margin-bottom: 1.5rem; |
| } |
|
|
| .sr-only { |
| position: absolute; |
| width: 1px; |
| height: 1px; |
| padding: 0; |
| margin: -1px; |
| overflow: hidden; |
| clip: rect(0, 0, 0, 0); |
| border: 0; |
| } |
|
|
| textarea { |
| width: 100%; |
| padding: 1.5rem; |
| background: rgba(0, 0, 0, 0.2); |
| border: 1px solid var(--border); |
| border-radius: 16px; |
| color: var(--text-primary); |
| font-family: inherit; |
| font-size: 1.05rem; |
| line-height: 1.5; |
| resize: vertical; |
| min-height: 120px; |
| transition: var(--transition); |
| } |
|
|
| textarea:focus { |
| outline: none; |
| border-color: #6366f1; |
| background: rgba(0, 0, 0, 0.4); |
| box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); |
| } |
|
|
| textarea::placeholder { |
| color: rgba(255, 255, 255, 0.3); |
| } |
|
|
| |
| .analyze-button { |
| width: 100%; |
| padding: 1rem 2rem; |
| background: var(--primary-gradient); |
| color: white; |
| border: none; |
| border-radius: 12px; |
| font-family: inherit; |
| font-size: 1.1rem; |
| font-weight: 600; |
| cursor: pointer; |
| position: relative; |
| overflow: hidden; |
| transition: var(--transition); |
| display: flex; |
| justify-content: center; |
| align-items: center; |
| } |
|
|
| .analyze-button::before { |
| content: ""; |
| position: absolute; |
| top: 0; |
| left: 0; |
| width: 100%; |
| height: 100%; |
| background: linear-gradient(rgba(255, 255, 255, 0.2), transparent); |
| opacity: 0; |
| transition: var(--transition); |
| } |
|
|
| .analyze-button:hover { |
| transform: translateY(-2px); |
| box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3); |
| } |
|
|
| .analyze-button:hover::before { |
| opacity: 1; |
| } |
|
|
| .analyze-button:active { |
| transform: translateY(0); |
| } |
|
|
| .analyze-button:disabled { |
| opacity: 0.7; |
| cursor: not-allowed; |
| transform: none; |
| } |
|
|
| .spinner { |
| width: 20px; |
| height: 20px; |
| border: 3px solid rgba(255, 255, 255, 0.3); |
| border-radius: 50%; |
| border-top-color: white; |
| animation: spin 1s ease-in-out infinite; |
| position: absolute; |
| } |
|
|
| .hidden { |
| display: none !important; |
| } |
|
|
| @keyframes spin { |
| to { |
| transform: rotate(360deg); |
| } |
| } |
|
|
| |
| .result-container { |
| margin-top: 2.5rem; |
| padding-top: 2.5rem; |
| border-top: 1px solid var(--border); |
| animation: slideUp 0.5s ease-out forwards; |
| } |
|
|
| @keyframes slideUp { |
| from { |
| opacity: 0; |
| transform: translateY(20px); |
| } |
| to { |
| opacity: 1; |
| transform: translateY(0); |
| } |
| } |
|
|
| .result-header h2 { |
| font-size: 1.5rem; |
| font-weight: 600; |
| margin-bottom: 1.5rem; |
| } |
|
|
| .metrics { |
| display: grid; |
| grid-template-columns: 1fr 1fr; |
| gap: 1.5rem; |
| } |
|
|
| .metric-box { |
| background: rgba(0, 0, 0, 0.2); |
| border: 1px solid var(--border); |
| border-radius: 16px; |
| padding: 1.5rem; |
| display: flex; |
| flex-direction: column; |
| gap: 0.5rem; |
| } |
|
|
| .metric-label { |
| color: var(--text-secondary); |
| font-size: 0.9rem; |
| text-transform: uppercase; |
| letter-spacing: 0.05em; |
| font-weight: 600; |
| } |
|
|
| .metric-value { |
| font-size: 1.8rem; |
| font-weight: 700; |
| } |
|
|
| .metric-value.positive { |
| color: var(--positive); |
| text-shadow: 0 0 20px var(--positive-glow); |
| } |
|
|
| .metric-value.negative { |
| color: var(--negative); |
| text-shadow: 0 0 20px var(--negative-glow); |
| } |
|
|
| |
| .progress-wrap { |
| display: flex; |
| align-items: center; |
| gap: 1rem; |
| margin-top: 0.5rem; |
| } |
|
|
| .progress-bar-bg { |
| flex: 1; |
| height: 8px; |
| background: rgba(255, 255, 255, 0.1); |
| border-radius: 4px; |
| overflow: hidden; |
| } |
|
|
| .progress-bar-fill { |
| height: 100%; |
| width: 0%; |
| background: var(--primary-gradient); |
| border-radius: 4px; |
| transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1); |
| } |
|
|
| .progress-bar-fill.positive { |
| background: var(--positive); |
| } |
|
|
| .progress-bar-fill.negative { |
| background: var(--negative); |
| } |
|
|
| .metric-value.small { |
| font-size: 1.2rem; |
| min-width: 48px; |
| } |
|
|
| |
| .error-message { |
| margin-top: 1rem; |
| padding: 1rem; |
| background: rgba(244, 63, 94, 0.1); |
| border: 1px solid rgba(244, 63, 94, 0.2); |
| border-radius: 8px; |
| color: #fca5a5; |
| text-align: center; |
| font-size: 0.95rem; |
| } |
|
|
| |
| .footer { |
| text-align: center; |
| color: var(--text-secondary); |
| font-size: 0.9rem; |
| opacity: 0.7; |
| } |
|
|
| |
| @media (max-width: 640px) { |
| .title { |
| font-size: 2.5rem; |
| } |
|
|
| .analysis-card { |
| padding: 2rem; |
| } |
|
|
| .metrics { |
| grid-template-columns: 1fr; |
| } |
| } |
|
|