Spaces:
Sleeping
Sleeping
| :root { | |
| --bg-primary: #0a0a0f; | |
| --bg-secondary: #12121a; | |
| --bg-card: #1a1a2e; | |
| --bg-card-hover: #1f1f35; | |
| --text-primary: #e8e8f0; | |
| --text-secondary: #a0a0b8; | |
| --text-muted: #6b6b80; | |
| --accent: #6c63ff; | |
| --accent-hover: #7b73ff; | |
| --accent-glow: rgba(108, 99, 255, 0.3); | |
| --positive: #22c55e; | |
| --negative: #ef4444; | |
| --neutral: #f59e0b; | |
| --per-color: #ff6b6b; | |
| --org-color: #4ecdc4; | |
| --loc-color: #ffd93d; | |
| --misc-color: #a78bfa; | |
| --border: #2a2a3e; | |
| --border-focus: #6c63ff; | |
| --radius: 12px; | |
| --radius-sm: 8px; | |
| --shadow: 0 4px 24px rgba(0, 0, 0, 0.3); | |
| --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5); | |
| --transition: all 0.2s ease; | |
| } | |
| * { | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| body { | |
| font-family: 'Inter', -apple-system, sans-serif; | |
| background: var(--bg-primary); | |
| color: var(--text-primary); | |
| line-height: 1.6; | |
| } | |
| /* Layout */ | |
| .app-container { | |
| min-height: 100vh; | |
| } | |
| .navbar { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 1rem 2rem; | |
| background: var(--bg-secondary); | |
| border-bottom: 1px solid var(--border); | |
| position: sticky; | |
| top: 0; | |
| z-index: 100; | |
| backdrop-filter: blur(20px); | |
| } | |
| .navbar-brand { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| text-decoration: none; | |
| } | |
| .navbar-brand h1 { | |
| font-size: 1.25rem; | |
| font-weight: 700; | |
| background: linear-gradient(135deg, var(--accent), #a78bfa); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| .navbar-brand span { | |
| font-size: 0.75rem; | |
| color: var(--text-muted); | |
| padding: 2px 8px; | |
| background: var(--bg-card); | |
| border-radius: 4px; | |
| } | |
| .navbar-links { | |
| display: flex; | |
| gap: 0.5rem; | |
| } | |
| .nav-link { | |
| padding: 0.5rem 1.25rem; | |
| border-radius: var(--radius-sm); | |
| text-decoration: none; | |
| color: var(--text-secondary); | |
| font-size: 0.875rem; | |
| font-weight: 500; | |
| transition: var(--transition); | |
| border: 1px solid transparent; | |
| } | |
| .nav-link:hover { | |
| color: var(--text-primary); | |
| background: var(--bg-card); | |
| } | |
| .nav-link.active { | |
| color: var(--accent); | |
| background: rgba(108, 99, 255, 0.1); | |
| border-color: var(--accent); | |
| } | |
| /* Main Content */ | |
| .main-content { | |
| padding: 2rem; | |
| max-width: 1400px; | |
| margin: 0 auto; | |
| } | |
| /* Cards */ | |
| .card { | |
| background: var(--bg-card); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| padding: 1.5rem; | |
| transition: var(--transition); | |
| } | |
| .card:hover { | |
| border-color: var(--border-focus); | |
| box-shadow: var(--shadow); | |
| } | |
| .card-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| margin-bottom: 1rem; | |
| } | |
| .card-title { | |
| font-size: 1rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| .card-subtitle { | |
| font-size: 0.75rem; | |
| color: var(--text-muted); | |
| } | |
| /* Stats Grid */ | |
| .stats-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 1rem; | |
| margin-bottom: 2rem; | |
| } | |
| .stat-card { | |
| background: var(--bg-card); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| padding: 1.25rem; | |
| text-align: center; | |
| transition: var(--transition); | |
| } | |
| .stat-card:hover { | |
| transform: translateY(-2px); | |
| box-shadow: var(--shadow); | |
| } | |
| .stat-value { | |
| font-size: 2rem; | |
| font-weight: 700; | |
| margin-bottom: 0.25rem; | |
| } | |
| .stat-label { | |
| font-size: 0.8rem; | |
| color: var(--text-muted); | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| } | |
| /* Upload Area */ | |
| .upload-area { | |
| border: 2px dashed var(--border); | |
| border-radius: var(--radius); | |
| padding: 3rem 2rem; | |
| text-align: center; | |
| cursor: pointer; | |
| transition: var(--transition); | |
| background: var(--bg-secondary); | |
| } | |
| .upload-area:hover { | |
| border-color: var(--accent); | |
| background: rgba(108, 99, 255, 0.05); | |
| } | |
| .upload-area.dragging { | |
| border-color: var(--accent); | |
| background: rgba(108, 99, 255, 0.1); | |
| } | |
| .upload-icon { | |
| font-size: 3rem; | |
| margin-bottom: 1rem; | |
| } | |
| .upload-text { | |
| color: var(--text-secondary); | |
| font-size: 0.95rem; | |
| } | |
| .upload-text strong { | |
| color: var(--accent); | |
| } | |
| /* Buttons */ | |
| .btn { | |
| padding: 0.625rem 1.25rem; | |
| border-radius: var(--radius-sm); | |
| font-size: 0.875rem; | |
| font-weight: 500; | |
| cursor: pointer; | |
| transition: var(--transition); | |
| border: 1px solid transparent; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .btn-primary { | |
| background: var(--accent); | |
| color: white; | |
| border-color: var(--accent); | |
| } | |
| .btn-primary:hover { | |
| background: var(--accent-hover); | |
| box-shadow: 0 0 20px var(--accent-glow); | |
| } | |
| .btn-secondary { | |
| background: transparent; | |
| color: var(--text-secondary); | |
| border-color: var(--border); | |
| } | |
| .btn-secondary:hover { | |
| background: var(--bg-card); | |
| color: var(--text-primary); | |
| } | |
| .btn-danger { | |
| background: transparent; | |
| color: var(--negative); | |
| border-color: var(--negative); | |
| } | |
| .btn-danger:hover { | |
| background: rgba(239, 68, 68, 0.1); | |
| } | |
| .btn-sm { | |
| padding: 0.375rem 0.75rem; | |
| font-size: 0.8rem; | |
| } | |
| /* Charts/Visualization area */ | |
| .chart-grid { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 1.5rem; | |
| margin-bottom: 2rem; | |
| } | |
| .chart-full { | |
| grid-column: 1 / -1; | |
| } | |
| /* Network Graph */ | |
| .network-container { | |
| background: var(--bg-secondary); | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border); | |
| min-height: 500px; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .network-container canvas { | |
| border-radius: var(--radius); | |
| } | |
| /* Sentiment Chart */ | |
| .sentiment-bars { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.75rem; | |
| } | |
| .sentiment-row { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| } | |
| .sentiment-label { | |
| width: 80px; | |
| font-size: 0.8rem; | |
| color: var(--text-secondary); | |
| text-transform: capitalize; | |
| } | |
| .sentiment-bar-bg { | |
| flex: 1; | |
| height: 24px; | |
| background: var(--bg-secondary); | |
| border-radius: 12px; | |
| overflow: hidden; | |
| } | |
| .sentiment-bar { | |
| height: 100%; | |
| border-radius: 12px; | |
| transition: width 0.5s ease; | |
| } | |
| .sentiment-bar.positive { background: var(--positive); } | |
| .sentiment-bar.negative { background: var(--negative); } | |
| .sentiment-bar.neutral { background: var(--neutral); } | |
| .sentiment-count { | |
| width: 50px; | |
| text-align: right; | |
| font-size: 0.85rem; | |
| font-weight: 600; | |
| font-variant-numeric: tabular-nums; | |
| } | |
| /* Entity Tags */ | |
| .entity-list { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 0.5rem; | |
| } | |
| .entity-tag { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.35rem; | |
| padding: 0.35rem 0.75rem; | |
| border-radius: 20px; | |
| font-size: 0.8rem; | |
| font-weight: 500; | |
| border: 1px solid; | |
| } | |
| .entity-tag.PER { color: var(--per-color); border-color: var(--per-color); background: rgba(255, 107, 107, 0.1); } | |
| .entity-tag.ORG { color: var(--org-color); border-color: var(--org-color); background: rgba(78, 205, 196, 0.1); } | |
| .entity-tag.LOC { color: var(--loc-color); border-color: var(--loc-color); background: rgba(255, 217, 61, 0.1); } | |
| .entity-tag.MISC { color: var(--misc-color); border-color: var(--misc-color); background: rgba(167, 139, 250, 0.1); } | |
| .entity-count { | |
| background: rgba(255, 255, 255, 0.15); | |
| padding: 0 6px; | |
| border-radius: 10px; | |
| font-size: 0.7rem; | |
| } | |
| /* Data Table */ | |
| .data-table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| } | |
| .data-table th { | |
| text-align: left; | |
| padding: 0.75rem 1rem; | |
| font-size: 0.75rem; | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| color: var(--text-muted); | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .data-table td { | |
| padding: 0.75rem 1rem; | |
| border-bottom: 1px solid var(--border); | |
| font-size: 0.85rem; | |
| color: var(--text-secondary); | |
| } | |
| .data-table tr:hover td { | |
| background: var(--bg-card-hover); | |
| } | |
| /* Insights */ | |
| .insights-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | |
| gap: 1rem; | |
| } | |
| .insight-card { | |
| background: var(--bg-card); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| padding: 1.25rem; | |
| border-left: 3px solid; | |
| } | |
| .insight-card.complaint { border-left-color: var(--negative); } | |
| .insight-card.compliment { border-left-color: var(--positive); } | |
| .insight-card.hot_issue { border-left-color: var(--neutral); } | |
| .insight-card.important { border-left-color: var(--accent); } | |
| .insight-title { | |
| font-weight: 600; | |
| font-size: 0.95rem; | |
| margin-bottom: 0.35rem; | |
| } | |
| .insight-description { | |
| font-size: 0.85rem; | |
| color: var(--text-secondary); | |
| } | |
| /* Admin */ | |
| .admin-grid { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 1.5rem; | |
| } | |
| .form-group { | |
| margin-bottom: 1rem; | |
| } | |
| .form-label { | |
| display: block; | |
| font-size: 0.8rem; | |
| color: var(--text-muted); | |
| margin-bottom: 0.35rem; | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| } | |
| .form-input { | |
| width: 100%; | |
| padding: 0.625rem 0.875rem; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius-sm); | |
| color: var(--text-primary); | |
| font-size: 0.875rem; | |
| transition: var(--transition); | |
| } | |
| .form-input:focus { | |
| outline: none; | |
| border-color: var(--accent); | |
| box-shadow: 0 0 0 3px var(--accent-glow); | |
| } | |
| /* Loading */ | |
| .loading { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 0.75rem; | |
| padding: 2rem; | |
| color: var(--text-muted); | |
| } | |
| .spinner { | |
| width: 20px; | |
| height: 20px; | |
| border: 2px solid var(--border); | |
| border-top: 2px solid var(--accent); | |
| border-radius: 50%; | |
| animation: spin 0.8s linear infinite; | |
| } | |
| @keyframes spin { | |
| to { transform: rotate(360deg); } | |
| } | |
| /* Responsive */ | |
| @media (max-width: 768px) { | |
| .chart-grid { grid-template-columns: 1fr; } | |
| .admin-grid { grid-template-columns: 1fr; } | |
| .main-content { padding: 1rem; } | |
| .navbar { padding: 0.75rem 1rem; } | |
| } | |
| /* Text input area */ | |
| .text-input-area { | |
| width: 100%; | |
| min-height: 120px; | |
| padding: 1rem; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius-sm); | |
| color: var(--text-primary); | |
| font-size: 0.875rem; | |
| font-family: inherit; | |
| resize: vertical; | |
| transition: var(--transition); | |
| } | |
| .text-input-area:focus { | |
| outline: none; | |
| border-color: var(--accent); | |
| box-shadow: 0 0 0 3px var(--accent-glow); | |
| } | |
| /* Badge */ | |
| .badge { | |
| display: inline-flex; | |
| align-items: center; | |
| padding: 0.2rem 0.6rem; | |
| border-radius: 12px; | |
| font-size: 0.7rem; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| } | |
| .badge-positive { background: rgba(34, 197, 94, 0.15); color: var(--positive); } | |
| .badge-negative { background: rgba(239, 68, 68, 0.15); color: var(--negative); } | |
| .badge-neutral { background: rgba(245, 158, 11, 0.15); color: var(--neutral); } | |
| /* Tab navigation */ | |
| .tabs { | |
| display: flex; | |
| gap: 0; | |
| margin-bottom: 1.5rem; | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .tab { | |
| padding: 0.75rem 1.5rem; | |
| font-size: 0.875rem; | |
| color: var(--text-muted); | |
| cursor: pointer; | |
| border-bottom: 2px solid transparent; | |
| transition: var(--transition); | |
| background: none; | |
| border-top: none; | |
| border-left: none; | |
| border-right: none; | |
| font-weight: 500; | |
| } | |
| .tab:hover { color: var(--text-primary); } | |
| .tab.active { | |
| color: var(--accent); | |
| border-bottom-color: var(--accent); | |
| } | |