Spaces:
Sleeping
Sleeping
| /* ═══════════════════════════════════════════ | |
| AIMS Insight – Admin Dashboard Styles | |
| Primary: #800000 (Bordeaux) | White/Light-Gray backgrounds | |
| Sentiment: Green #28a745 | Gray #6c757d | Red #dc3545 | |
| ═══════════════════════════════════════════ */ | |
| *, *::before, *::after { | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| background: #f3f0ef; | |
| min-height: 100vh; | |
| display: flex; | |
| } | |
| /* ───────────────────────── SIDEBAR (FIX + CLEAN) ───────────────────────── */ | |
| .sidebar { | |
| width: 240px; | |
| min-height: 100vh; | |
| background: #ffffff; | |
| display: flex; | |
| flex-direction: column; | |
| flex-shrink: 0; | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| bottom: 0; | |
| border-right: 1px solid #e8e4e1; | |
| } | |
| .sidebar-logo { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| padding: 28px 24px 20px; | |
| font-size: 17px; | |
| font-weight: 700; | |
| color: #800000; | |
| border-bottom: 1px solid #eee; | |
| } | |
| .sidebar-logo .dot { | |
| width: 14px; | |
| height: 14px; | |
| border-radius: 50%; | |
| background: #800000; | |
| } | |
| .sidebar-nav { | |
| flex: 1; | |
| padding: 20px 0; | |
| } | |
| .nav-section { | |
| padding: 8px 20px 4px; | |
| font-size: 10px; | |
| font-weight: 700; | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| color: #999; | |
| } | |
| .nav-link { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| padding: 11px 24px; | |
| font-size: 14px; | |
| font-weight: 500; | |
| color: #333; | |
| text-decoration: none; | |
| border-left: 3px solid transparent; | |
| transition: all .15s ease; | |
| } | |
| .nav-link:hover { | |
| color: #800000; | |
| background: #f7f3f3; | |
| } | |
| .nav-link.active { | |
| color: #800000; | |
| background: #f3e9e9; | |
| border-left-color: #800000; | |
| font-weight: 600; | |
| } | |
| .nav-link .icon { | |
| font-size: 16px; | |
| width: 20px; | |
| text-align: center; | |
| } | |
| .sidebar-footer { | |
| padding: 20px 24px; | |
| border-top: 1px solid #eee; | |
| } | |
| .logout-link { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| color: #666; | |
| font-size: 14px; | |
| text-decoration: none; | |
| font-weight: 500; | |
| } | |
| .logout-link:hover { | |
| color: #800000; | |
| } | |
| /* ───────────────────────── MAIN ───────────────────────── */ | |
| .main { | |
| margin-left: 240px; | |
| flex: 1; | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .topbar { | |
| background: #fff; | |
| padding: 18px 32px; | |
| border-bottom: 1px solid #e8e4e1; | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| } | |
| .topbar h1 { | |
| font-size: 20px; | |
| font-weight: 700; | |
| color: #171414; | |
| } | |
| .topbar-meta { | |
| font-size: 13px; | |
| color: #888; | |
| } | |
| .user-badge { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .user-avatar { | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 50%; | |
| background: #800000; | |
| color: #fff; | |
| font-size: 14px; | |
| font-weight: 700; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .user-name { | |
| font-size: 14px; | |
| font-weight: 600; | |
| color: #333; | |
| } | |
| /* ───────────────────────── CONTENT ───────────────────────── */ | |
| .content { | |
| padding: 28px 32px; | |
| flex: 1; | |
| } | |
| /* ───────────────────────── KPI ───────────────────────── */ | |
| .kpi-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); | |
| gap: 18px; | |
| margin-bottom: 28px; | |
| } | |
| .kpi-card { | |
| background: #fff; | |
| border-radius: 16px; | |
| padding: 22px 24px; | |
| box-shadow: 0 2px 12px rgba(0,0,0,.06); | |
| } | |
| .kpi-label { | |
| font-size: 12px; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| color: #888; | |
| margin-bottom: 8px; | |
| } | |
| .kpi-value { | |
| font-size: 36px; | |
| font-weight: 800; | |
| color: #171414; | |
| } | |
| .kpi-sub { | |
| font-size: 12px; | |
| color: #aaa; | |
| } | |
| /* ───────────────────────── FILTERS ───────────────────────── */ | |
| .filters-bar { | |
| background: #fff; | |
| border-radius: 16px; | |
| padding: 18px 24px; | |
| box-shadow: 0 2px 12px rgba(0,0,0,.06); | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 14px; | |
| margin-bottom: 24px; | |
| } | |
| .filter-group { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 6px; | |
| } | |
| .filter-group label { | |
| font-size: 12px; | |
| font-weight: 600; | |
| color: #666; | |
| } | |
| .filter-group select, | |
| .filter-group input { | |
| padding: 9px 14px; | |
| border: 1px solid #ddd; | |
| border-radius: 9px; | |
| font-size: 13px; | |
| background: #fafafa; | |
| outline: none; | |
| } | |
| .filter-group select:focus, | |
| .filter-group input:focus { | |
| border-color: #800000; | |
| } | |
| .btn-apply { | |
| padding: 10px 22px; | |
| background: #800000; | |
| color: #fff; | |
| border: none; | |
| border-radius: 9px; | |
| font-weight: 600; | |
| } | |
| .btn-reset { | |
| padding: 10px 16px; | |
| background: #f3f0ef; | |
| border: 1px solid #ddd; | |
| border-radius: 9px; | |
| } | |
| /* ───────────────────────── CHARTS ───────────────────────── */ | |
| .charts-grid { | |
| display: grid; | |
| grid-template-columns: 1fr 2fr; | |
| gap: 20px; | |
| margin-bottom: 24px; | |
| } | |
| .chart-card { | |
| background: #fff; | |
| border-radius: 16px; | |
| padding: 24px; | |
| box-shadow: 0 2px 12px rgba(0,0,0,.06); | |
| } | |
| .chart-container { | |
| height: 240px; | |
| } | |
| /* ───────────────────────── TABLE ───────────────────────── */ | |
| .table-card { | |
| background: #fff; | |
| border-radius: 16px; | |
| padding: 24px; | |
| box-shadow: 0 2px 12px rgba(0,0,0,.06); | |
| overflow-x: auto; | |
| } | |
| table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| font-size: 13px; | |
| } | |
| thead th { | |
| text-align: left; | |
| font-size: 11px; | |
| color: #888; | |
| border-bottom: 2px solid #f0eded; | |
| } | |
| tbody td { | |
| padding: 12px 14px; | |
| color: #333; | |
| } | |
| /* ───────────────────────── BADGES ───────────────────────── */ | |
| .badge { | |
| display: inline-block; | |
| padding: 3px 10px; | |
| border-radius: 20px; | |
| font-size: 11px; | |
| font-weight: 700; | |
| } | |
| .badge-positive { background: #e9f7ef; color: #155724; } | |
| .badge-neutral { background: #e9ecef; color: #495057; } | |
| .badge-negative { background: #fce8e8; color: #721c24; } | |
| /* ───────────────────────── MISC ───────────────────────── */ | |
| .comment-cell { | |
| max-width: 300px; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .search-bar { | |
| width: 100%; | |
| max-width: 400px; | |
| padding: 11px 16px; | |
| border: 1px solid #ddd; | |
| border-radius: 10px; | |
| } | |
| .search-bar:focus { | |
| border-color: #800000; | |
| outline: none; | |
| } | |
| .section-card, | |
| .pred-card { | |
| background: #fff; | |
| border-radius: 16px; | |
| padding: 24px; | |
| box-shadow: 0 2px 12px rgba(0,0,0,.06); | |
| } | |
| .section-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 18px; | |
| margin-bottom: 18px; | |
| } | |
| .section-header h2, | |
| .pred-card h3 { | |
| font-size: 18px; | |
| font-weight: 700; | |
| color: #171414; | |
| } | |
| .table-scroll { | |
| overflow-x: auto; | |
| } | |
| .muted-cell { | |
| color: #aaa; | |
| font-size: 12px; | |
| } | |
| .date-cell { | |
| color: #888; | |
| font-size: 12px; | |
| white-space: nowrap; | |
| } | |
| .topic-pill { | |
| display: inline-block; | |
| background: #f3f0ef; | |
| padding: 3px 9px; | |
| border-radius: 6px; | |
| font-size: 12px; | |
| font-weight: 600; | |
| color: #555; | |
| } | |
| .btn-delete { | |
| padding: 7px 12px; | |
| background: #fce8e8; | |
| color: #8a1f1f; | |
| border: 1px solid #f3c7c7; | |
| border-radius: 8px; | |
| font-size: 12px; | |
| font-weight: 700; | |
| cursor: pointer; | |
| } | |
| .btn-delete:hover { | |
| background: #f8d7d7; | |
| } | |
| .empty-row { | |
| text-align: center; | |
| color: #aaa; | |
| padding: 40px; | |
| } | |
| .prediction-grid { | |
| display: grid; | |
| grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); | |
| gap: 20px; | |
| align-items: start; | |
| } | |
| .pred-card { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 16px; | |
| } | |
| .pred-card p { | |
| font-size: 14px; | |
| line-height: 1.6; | |
| color: #666; | |
| } | |
| .pred-textarea { | |
| min-height: 180px; | |
| resize: vertical; | |
| width: 100%; | |
| padding: 14px 16px; | |
| border: 1px solid #ddd; | |
| border-radius: 10px; | |
| background: #fafafa; | |
| color: #333; | |
| font: inherit; | |
| line-height: 1.5; | |
| outline: none; | |
| } | |
| .pred-textarea:focus { | |
| border-color: #800000; | |
| background: #fff; | |
| } | |
| .pred-action { | |
| width: 100%; | |
| padding: 13px; | |
| cursor: pointer; | |
| } | |
| .result-wrap { | |
| min-height: 92px; | |
| } | |
| .result-box { | |
| min-height: 92px; | |
| border: 1px dashed #ddd; | |
| border-radius: 12px; | |
| padding: 18px; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| gap: 6px; | |
| color: #777; | |
| background: #fafafa; | |
| } | |
| .result-box.positive { | |
| border-color: #b8e2c4; | |
| background: #eefaf2; | |
| color: #155724; | |
| } | |
| .result-box.neutral { | |
| border-color: #d9dde1; | |
| background: #f3f4f5; | |
| color: #495057; | |
| } | |
| .result-box.negative { | |
| border-color: #f0b6b6; | |
| background: #fff0f0; | |
| color: #721c24; | |
| } | |
| .result-sentiment { | |
| font-size: 18px; | |
| font-weight: 800; | |
| } | |
| .result-topic { | |
| font-size: 13px; | |
| font-weight: 700; | |
| opacity: .8; | |
| } | |
| .result-emoji { | |
| font-size: 42px; | |
| line-height: 1; | |
| } | |
| .upload-zone { | |
| border: 2px dashed #d8d0cc; | |
| border-radius: 14px; | |
| padding: 28px; | |
| text-align: center; | |
| background: #fafafa; | |
| cursor: pointer; | |
| transition: border-color .15s ease, background .15s ease; | |
| } | |
| .upload-zone:hover, | |
| .upload-zone.dragging { | |
| border-color: #800000; | |
| background: #fff7f7; | |
| } | |
| .upload-zone h4 { | |
| font-size: 16px; | |
| font-weight: 700; | |
| color: #333; | |
| margin-bottom: 6px; | |
| } | |
| .upload-button { | |
| margin-top: 14px; | |
| padding: 10px 20px; | |
| pointer-events: none; | |
| } | |
| .hidden-file { | |
| display: none; | |
| } | |
| .upload-status { | |
| min-height: 40px; | |
| text-align: center; | |
| color: #666; | |
| font-size: 14px; | |
| font-weight: 600; | |
| } | |
| .upload-status .loader { | |
| border-color: rgba(128,0,0,.2); | |
| border-top-color: #800000; | |
| display: inline-block; | |
| vertical-align: middle; | |
| } | |
| .csv-hint { | |
| background: #f8f8f8; | |
| border: 1px solid #eee; | |
| border-radius: 10px; | |
| padding: 14px; | |
| color: #666; | |
| font-family: monospace; | |
| font-size: 12px; | |
| line-height: 1.8; | |
| } | |
| @media (max-width: 900px) { | |
| .prediction-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| .section-header { | |
| align-items: stretch; | |
| flex-direction: column; | |
| } | |
| .search-bar { | |
| max-width: none; | |
| } | |
| } | |
| @media (max-width: 720px) { | |
| body { | |
| display: block; | |
| } | |
| .sidebar { | |
| position: static; | |
| width: 100%; | |
| min-height: auto; | |
| } | |
| .main { | |
| margin-left: 0; | |
| } | |
| .topbar, | |
| .content { | |
| padding-left: 18px; | |
| padding-right: 18px; | |
| } | |
| } | |
| /* loader */ | |
| .loader { | |
| width: 18px; | |
| height: 18px; | |
| border: 2px solid rgba(255,255,255,.4); | |
| border-top-color: #fff; | |
| border-radius: 50%; | |
| animation: spin .6s linear infinite; | |
| } | |
| @keyframes spin { | |
| to { transform: rotate(360deg); } | |
| } | |
| /* scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: #c8c2be; | |
| border-radius: 3px; | |
| } | |