| |
| |
| |
| |
|
|
| |
| :root { |
| --bg-primary: #0f1a24; |
| --bg-secondary: #152232; |
| --bg-tertiary: #1a2b3c; |
| --bg-elevated: #1e3347; |
| --bg-hover: #243d52; |
| --text-primary: #ffffff; |
| --text-secondary: #a0b4c4; |
| --text-tertiary: #6b8599; |
| --border: #2a3f52; |
| --accent: #3eb489; |
| --accent-hover: #35a07a; |
| --accent-secondary: #d97bb3; |
| --user-bubble: #3d4f5f; |
| --user-avatar: #d97bb3; |
| --ai-avatar: #3eb489; |
| --success: #3eb489; |
| --error: #ef4444; |
| --warning: #f59e0b; |
| --sidebar-width: 320px; |
| --chats-width: 280px; |
| --header-height: 56px; |
| --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1); |
| } |
|
|
| |
| *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } |
|
|
| html { scroll-behavior: smooth; } |
|
|
| body { |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; |
| background: var(--bg-primary); |
| color: var(--text-primary); |
| overflow: hidden; |
| -webkit-font-smoothing: antialiased; |
| line-height: 1.5; |
| } |
|
|
| |
| ::-webkit-scrollbar { width: 6px; height: 6px; } |
| ::-webkit-scrollbar-track { background: transparent; } |
| ::-webkit-scrollbar-thumb { background: var(--text-tertiary); border-radius: 3px; } |
| ::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); } |
|
|
| |
| .login-overlay { |
| position: fixed; |
| inset: 0; |
| background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, #1a1a2e 100%); |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| z-index: 1000; |
| } |
|
|
| .login-overlay::before { |
| content: ''; |
| position: absolute; |
| inset: 0; |
| background: |
| radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%), |
| radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.15) 0%, transparent 50%), |
| radial-gradient(circle at 50% 50%, rgba(62, 180, 137, 0.08) 0%, transparent 70%); |
| pointer-events: none; |
| } |
|
|
| .login-box { |
| background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%); |
| border: 1px solid var(--border); |
| border-radius: 20px; |
| padding: 48px 40px; |
| width: 100%; |
| max-width: 400px; |
| text-align: center; |
| box-shadow: |
| 0 25px 80px rgba(0, 0, 0, 0.5), |
| 0 0 0 1px rgba(255, 255, 255, 0.05) inset; |
| position: relative; |
| overflow: hidden; |
| } |
|
|
| .login-box::before { |
| content: ''; |
| position: absolute; |
| top: 0; |
| left: 0; |
| right: 0; |
| height: 4px; |
| background: linear-gradient(90deg, var(--accent), #667eea, #764ba2, var(--accent)); |
| background-size: 300% 100%; |
| animation: gradientShift 3s ease infinite; |
| } |
|
|
| @keyframes gradientShift { |
| 0%, 100% { background-position: 0% 50%; } |
| 50% { background-position: 100% 50%; } |
| } |
|
|
| .login-logo { margin-bottom: 28px; } |
| .login-logo svg { |
| filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.5)); |
| animation: logoFloat 3s ease-in-out infinite; |
| } |
|
|
| @keyframes logoFloat { |
| 0%, 100% { transform: translateY(0); } |
| 50% { transform: translateY(-8px); } |
| } |
|
|
| .login-box h2 { |
| font-size: 26px; |
| font-weight: 700; |
| margin-bottom: 8px; |
| background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%); |
| -webkit-background-clip: text; |
| -webkit-text-fill-color: transparent; |
| background-clip: text; |
| } |
|
|
| .login-box p { |
| font-size: 14px; |
| color: var(--text-secondary); |
| margin-bottom: 28px; |
| } |
|
|
| .input-group { margin-bottom: 20px; } |
|
|
| .input-group input { |
| width: 100%; |
| padding: 16px 18px; |
| background: var(--bg-secondary); |
| border: 2px solid var(--border); |
| border-radius: 12px; |
| color: var(--text-primary); |
| font-size: 15px; |
| transition: all 0.3s ease; |
| } |
|
|
| .input-group input:focus { |
| outline: none; |
| border-color: var(--accent); |
| box-shadow: 0 0 0 4px rgba(62, 180, 137, 0.15), 0 4px 20px rgba(62, 180, 137, 0.1); |
| background: var(--bg-tertiary); |
| } |
|
|
| .input-group input::placeholder { color: var(--text-tertiary); } |
|
|
| .login-error { |
| color: var(--error); |
| font-size: 13px; |
| margin-top: 14px; |
| min-height: 20px; |
| font-weight: 500; |
| } |
|
|
| .login-attempts { |
| color: var(--text-tertiary); |
| font-size: 11px; |
| margin-top: 8px; |
| } |
|
|
| |
| .btn { |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| gap: 6px; |
| padding: 10px 16px; |
| border: none; |
| border-radius: 6px; |
| font-size: 13px; |
| font-weight: 500; |
| cursor: pointer; |
| transition: all 0.2s ease; |
| position: relative; |
| overflow: hidden; |
| } |
|
|
| .btn-progress { |
| position: absolute; |
| bottom: 0; |
| left: 0; |
| height: 2px; |
| background: currentColor; |
| opacity: 0.3; |
| width: 0%; |
| transition: width 0.3s ease; |
| } |
|
|
| .btn.loading .btn-progress { |
| animation: btnProgress 2s ease-in-out infinite; |
| } |
|
|
| @keyframes btnProgress { |
| 0% { width: 0%; } |
| 50% { width: 70%; } |
| 100% { width: 100%; } |
| } |
|
|
| .btn-primary { |
| background: linear-gradient(135deg, var(--accent) 0%, #35a07a 100%); |
| color: white; |
| width: 100%; |
| padding: 16px; |
| font-size: 15px; |
| font-weight: 600; |
| border-radius: 12px; |
| box-shadow: 0 4px 15px rgba(62, 180, 137, 0.3); |
| transition: all 0.3s ease; |
| } |
|
|
| .btn-primary:hover { |
| background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%); |
| transform: translateY(-2px); |
| box-shadow: 0 6px 20px rgba(62, 180, 137, 0.4); |
| } |
|
|
| .btn-primary:active { |
| transform: translateY(0); |
| } |
|
|
| .btn-primary:disabled { |
| opacity: 0.6; |
| cursor: not-allowed; |
| transform: none; |
| box-shadow: none; |
| } |
|
|
| .btn-secondary { |
| background: var(--bg-elevated); |
| color: var(--text-secondary); |
| border: 1px solid var(--border); |
| } |
|
|
| .btn-secondary:hover { |
| background: var(--bg-hover); |
| color: var(--text-primary); |
| } |
|
|
| .btn-danger { |
| background: rgba(239, 68, 68, 0.15); |
| color: var(--error); |
| border: 1px solid rgba(239, 68, 68, 0.3); |
| } |
|
|
| .btn-danger:hover { background: rgba(239, 68, 68, 0.25); } |
|
|
| .btn-sm { padding: 6px 10px; font-size: 12px; } |
| .btn-sm span { margin-left: 4px; } |
|
|
| |
| .dropdown { |
| position: relative; |
| display: inline-block; |
| } |
|
|
| .dropdown-toggle { |
| display: flex; |
| align-items: center; |
| gap: 6px; |
| } |
|
|
| .dropdown-arrow { |
| transition: transform 0.2s ease; |
| } |
|
|
| .dropdown.open .dropdown-arrow { |
| transform: rotate(180deg); |
| } |
|
|
| .dropdown-menu { |
| position: absolute; |
| top: 100%; |
| right: 0; |
| margin-top: 4px; |
| min-width: 180px; |
| background: var(--bg-elevated); |
| border: 1px solid var(--border); |
| border-radius: 8px; |
| box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); |
| opacity: 0; |
| visibility: hidden; |
| transform: translateY(-8px); |
| transition: all 0.2s ease; |
| z-index: 1000; |
| } |
|
|
| .dropdown.open .dropdown-menu { |
| opacity: 1; |
| visibility: visible; |
| transform: translateY(0); |
| } |
|
|
| .dropdown-item { |
| display: flex; |
| align-items: center; |
| gap: 10px; |
| width: 100%; |
| padding: 10px 14px; |
| background: transparent; |
| border: none; |
| color: var(--text-primary); |
| font-size: 13px; |
| cursor: pointer; |
| transition: background 0.15s ease; |
| text-align: left; |
| } |
|
|
| .dropdown-item:first-child { border-radius: 7px 7px 0 0; } |
| .dropdown-item:last-child { border-radius: 0 0 7px 7px; } |
|
|
| .dropdown-item:hover { |
| background: var(--bg-tertiary); |
| } |
|
|
| .dropdown-item svg { |
| color: var(--text-secondary); |
| } |
|
|
| .btn .spinner { |
| animation: spin 1s linear infinite; |
| } |
|
|
| .btn.spinning svg { |
| animation: spin 0.8s linear infinite; |
| } |
|
|
| @keyframes spin { |
| from { transform: rotate(0deg); } |
| to { transform: rotate(360deg); } |
| } |
|
|
| |
| .app { |
| display: flex; |
| height: 100vh; |
| width: 100vw; |
| overflow: hidden; |
| } |
|
|
| |
| .sidebar { |
| width: var(--sidebar-width); |
| background: var(--bg-secondary); |
| border-right: 1px solid var(--border); |
| display: flex; |
| flex-direction: column; |
| flex-shrink: 0; |
| transition: transform 0.3s var(--ease-out-expo); |
| overflow: hidden; |
| max-height: 100vh; |
| } |
|
|
| .sidebar-header { |
| padding: 16px; |
| border-bottom: 1px solid var(--border); |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| flex-shrink: 0; |
| } |
|
|
| .logo-section { |
| display: flex; |
| align-items: center; |
| gap: 10px; |
| } |
|
|
| .logo-section h1 { |
| font-size: 16px; |
| font-weight: 600; |
| background: linear-gradient(135deg, #667eea, #764ba2); |
| -webkit-background-clip: text; |
| background-clip: text; |
| -webkit-text-fill-color: transparent; |
| } |
|
|
| .btn-logout { |
| background: transparent; |
| border: none; |
| color: var(--text-tertiary); |
| cursor: pointer; |
| padding: 8px; |
| border-radius: 6px; |
| transition: all 0.2s; |
| } |
|
|
| .btn-logout:hover { |
| background: var(--bg-hover); |
| color: var(--error); |
| } |
|
|
| |
| .stats-row { |
| display: flex; |
| gap: 8px; |
| padding: 12px 16px; |
| border-bottom: 1px solid var(--border); |
| flex-shrink: 0; |
| } |
|
|
| .stat-box { |
| flex: 1; |
| background: var(--bg-tertiary); |
| border-radius: 10px; |
| padding: 12px; |
| text-align: center; |
| transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); |
| cursor: help; |
| position: relative; |
| overflow: hidden; |
| border: 1px solid transparent; |
| } |
|
|
| .stat-box::before { |
| content: ''; |
| position: absolute; |
| top: 0; |
| left: 0; |
| right: 0; |
| height: 3px; |
| background: linear-gradient(90deg, var(--accent), #764ba2); |
| opacity: 0; |
| transition: opacity 0.2s ease; |
| } |
|
|
| .stat-box:hover { |
| transform: translateY(-3px); |
| box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2); |
| background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-elevated) 100%); |
| border-color: rgba(102, 126, 234, 0.3); |
| } |
|
|
| .stat-box:hover::before { |
| opacity: 1; |
| } |
|
|
| .stat-val { |
| font-size: 22px; |
| font-weight: 700; |
| background: linear-gradient(135deg, var(--accent) 0%, #667eea 100%); |
| -webkit-background-clip: text; |
| -webkit-text-fill-color: transparent; |
| background-clip: text; |
| } |
|
|
| .stat-lbl { |
| font-size: 10px; |
| color: var(--text-tertiary); |
| text-transform: uppercase; |
| letter-spacing: 0.5px; |
| margin-top: 2px; |
| } |
|
|
| .stat-trend { |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| gap: 4px; |
| margin-top: 4px; |
| font-size: 9px; |
| font-weight: 600; |
| } |
|
|
| .stat-trend.up { |
| color: var(--success); |
| } |
|
|
| .stat-trend.down { |
| color: var(--error); |
| } |
|
|
| .stat-trend.neutral { |
| color: var(--text-tertiary); |
| } |
|
|
| .trend-arrow { |
| width: 0; |
| height: 0; |
| } |
|
|
| .trend-arrow.up { |
| border-left: 3px solid transparent; |
| border-right: 3px solid transparent; |
| border-bottom: 4px solid var(--success); |
| } |
|
|
| .trend-arrow.down { |
| border-left: 3px solid transparent; |
| border-right: 3px solid transparent; |
| border-top: 4px solid var(--error); |
| } |
|
|
| .trend-arrow.neutral { |
| width: 6px; |
| height: 2px; |
| background: var(--text-tertiary); |
| } |
|
|
| |
| .sidebar-tabs { |
| display: flex; |
| padding: 8px 16px; |
| gap: 4px; |
| border-bottom: 1px solid var(--border); |
| flex-shrink: 0; |
| } |
|
|
| .tab-btn { |
| flex: 1; |
| padding: 8px; |
| background: transparent; |
| border: none; |
| color: var(--text-tertiary); |
| font-size: 12px; |
| font-weight: 500; |
| cursor: pointer; |
| border-radius: 6px; |
| transition: all 0.2s; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| gap: 6px; |
| } |
|
|
| .tab-btn:hover { background: var(--bg-tertiary); color: var(--text-secondary); } |
| .tab-btn.active { background: var(--bg-tertiary); color: var(--accent); } |
|
|
| .tab-shortcut { |
| background: rgba(255, 255, 255, 0.1); |
| color: inherit; |
| padding: 2px 4px; |
| border-radius: 3px; |
| font-size: 9px; |
| font-weight: 600; |
| opacity: 0.7; |
| transition: opacity 0.2s ease; |
| } |
|
|
| .tab-btn:hover .tab-shortcut, |
| .tab-btn.active .tab-shortcut { |
| opacity: 1; |
| } |
|
|
| .tab-content { |
| flex: 1; |
| overflow-y: auto; |
| overflow-x: hidden; |
| display: flex; |
| flex-direction: column; |
| transition: opacity 0.15s ease, transform 0.15s ease; |
| min-height: 0; |
| } |
|
|
| |
| .search-box { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| padding: 8px 16px; |
| margin: 8px 12px; |
| background: var(--bg-tertiary); |
| border-radius: 8px; |
| border: 1px solid var(--border); |
| position: relative; |
| flex-shrink: 0; |
| } |
|
|
| .search-box svg { color: var(--text-tertiary); flex-shrink: 0; } |
|
|
| .search-box input { |
| flex: 1; |
| background: transparent; |
| border: none; |
| color: var(--text-primary); |
| font-size: 13px; |
| outline: none; |
| } |
|
|
| .search-box input::placeholder { color: var(--text-tertiary); } |
|
|
| .search-results-count { |
| position: absolute; |
| right: 12px; |
| top: 50%; |
| transform: translateY(-50%); |
| background: var(--accent); |
| color: white; |
| padding: 2px 6px; |
| border-radius: 10px; |
| font-size: 10px; |
| font-weight: 600; |
| animation: countPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); |
| } |
|
|
| @keyframes countPop { |
| 0% { transform: translateY(-50%) scale(0); } |
| 50% { transform: translateY(-50%) scale(1.2); } |
| 100% { transform: translateY(-50%) scale(1); } |
| } |
|
|
| |
| .users-section { |
| flex: 1; |
| overflow: hidden; |
| display: flex; |
| flex-direction: column; |
| min-height: 0; |
| } |
|
|
| .section-title { |
| padding: 8px 16px; |
| font-size: 11px; |
| font-weight: 600; |
| color: var(--text-tertiary); |
| text-transform: uppercase; |
| letter-spacing: 0.5px; |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| flex-shrink: 0; |
| } |
|
|
| .section-title svg { |
| color: var(--accent); |
| flex-shrink: 0; |
| } |
|
|
| .section-actions { |
| display: flex; |
| gap: 4px; |
| margin-left: auto; |
| } |
|
|
| .btn-icon { |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| width: 24px; |
| height: 24px; |
| background: transparent; |
| border: none; |
| border-radius: 4px; |
| color: var(--text-tertiary); |
| cursor: pointer; |
| transition: all 0.2s ease; |
| } |
|
|
| .btn-icon:hover { |
| background: var(--bg-hover); |
| color: var(--text-secondary); |
| transform: scale(1.1); |
| } |
|
|
| .btn-icon:active { |
| transform: scale(0.95); |
| } |
|
|
| .user-list { |
| flex: 1; |
| overflow-y: auto; |
| overflow-x: hidden; |
| padding: 0 8px 8px; |
| min-height: 0; |
| } |
|
|
| |
| .user-card { |
| padding: 12px; |
| background: var(--bg-tertiary); |
| border-radius: 8px; |
| margin-bottom: 6px; |
| cursor: pointer; |
| transition: all 0.2s; |
| border: 1px solid transparent; |
| } |
|
|
| .user-card:hover { background: var(--bg-elevated); } |
| .user-card.active { border-color: var(--accent); background: var(--bg-elevated); } |
|
|
| .user-card-header { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| margin-bottom: 6px; |
| } |
|
|
| .user-status { |
| width: 8px; |
| height: 8px; |
| border-radius: 50%; |
| background: var(--text-tertiary); |
| } |
|
|
| .user-status.online { background: var(--success); } |
|
|
| .user-ip { |
| font-size: 13px; |
| font-weight: 500; |
| color: var(--text-primary); |
| flex: 1; |
| } |
|
|
| .user-time { |
| font-size: 10px; |
| color: var(--text-tertiary); |
| } |
|
|
| .user-meta { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| font-size: 11px; |
| color: var(--text-tertiary); |
| } |
|
|
| .user-badge { |
| background: var(--bg-hover); |
| padding: 2px 6px; |
| border-radius: 4px; |
| font-size: 10px; |
| } |
|
|
| .user-badge.messages { |
| background: rgba(62, 180, 137, 0.15); |
| color: var(--accent); |
| } |
|
|
| .user-badge.browser { |
| background: rgba(102, 126, 234, 0.15); |
| color: #667eea; |
| } |
|
|
| .user-badge.os { |
| background: rgba(118, 75, 162, 0.15); |
| color: #764ba2; |
| } |
|
|
| |
| .user-engagement { |
| margin-top: 8px; |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| } |
|
|
| .engagement-bar { |
| flex: 1; |
| height: 4px; |
| background: var(--bg-hover); |
| border-radius: 2px; |
| overflow: hidden; |
| } |
|
|
| .engagement-fill { |
| height: 100%; |
| border-radius: 2px; |
| transition: width 0.6s ease; |
| } |
|
|
| .engagement-fill.high { |
| background: linear-gradient(90deg, #10b981, #3eb489); |
| } |
|
|
| .engagement-fill.medium { |
| background: linear-gradient(90deg, #f59e0b, #fbbf24); |
| } |
|
|
| .engagement-fill.low { |
| background: linear-gradient(90deg, #ef4444, #f87171); |
| } |
|
|
| .engagement-label { |
| font-size: 9px; |
| color: var(--text-tertiary); |
| white-space: nowrap; |
| } |
|
|
| |
| .user-device-info { |
| display: flex; |
| flex-wrap: wrap; |
| gap: 4px; |
| margin-top: 6px; |
| } |
|
|
| .user-badge.device { |
| background: rgba(6, 182, 212, 0.15); |
| color: #06b6d4; |
| } |
|
|
| .user-badge.visits { |
| background: rgba(139, 92, 246, 0.15); |
| color: #8b5cf6; |
| } |
|
|
| |
| .user-referer { |
| display: flex; |
| align-items: center; |
| gap: 6px; |
| margin-top: 6px; |
| padding: 4px 8px; |
| background: var(--bg-secondary); |
| border-radius: 4px; |
| font-size: 10px; |
| } |
|
|
| .referer-label { |
| color: var(--text-tertiary); |
| } |
|
|
| .referer-value { |
| color: var(--accent); |
| font-weight: 500; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| white-space: nowrap; |
| } |
|
|
| |
| .user-details { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| margin-top: 6px; |
| font-size: 10px; |
| color: var(--text-tertiary); |
| flex-wrap: wrap; |
| } |
|
|
| .user-detail-item { |
| display: inline-flex; |
| align-items: center; |
| gap: 3px; |
| } |
|
|
| .user-detail-item.online-status { |
| color: var(--success); |
| } |
|
|
| .user-detail-item.offline-status { |
| color: var(--text-tertiary); |
| } |
|
|
| .user-chat-count { |
| font-weight: 500; |
| color: var(--accent); |
| } |
|
|
| |
| .stats-detail { |
| padding: 12px; |
| display: grid; |
| grid-template-columns: repeat(2, 1fr); |
| gap: 10px; |
| overflow-y: auto; |
| flex-shrink: 0; |
| } |
|
|
| .stat-card { |
| background: var(--bg-tertiary); |
| border-radius: 10px; |
| padding: 14px; |
| transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); |
| position: relative; |
| overflow: hidden; |
| border: 1px solid transparent; |
| } |
|
|
| .stat-card::after { |
| content: ''; |
| position: absolute; |
| bottom: 0; |
| left: 0; |
| right: 0; |
| height: 2px; |
| background: linear-gradient(90deg, var(--accent), transparent); |
| opacity: 0; |
| transition: opacity 0.2s ease; |
| } |
|
|
| .stat-card:hover { |
| transform: translateY(-2px); |
| box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); |
| border-color: rgba(62, 180, 137, 0.3); |
| } |
|
|
| .stat-card:hover::after { |
| opacity: 1; |
| } |
|
|
| .stat-card-title { |
| font-size: 11px; |
| color: var(--text-tertiary); |
| margin-bottom: 6px; |
| text-transform: uppercase; |
| letter-spacing: 0.5px; |
| } |
|
|
| .stat-card-value { |
| font-size: 22px; |
| font-weight: 700; |
| background: linear-gradient(135deg, var(--accent) 0%, #667eea 100%); |
| -webkit-background-clip: text; |
| -webkit-text-fill-color: transparent; |
| background-clip: text; |
| } |
|
|
| |
| .stat-sparkline { |
| height: 20px; |
| margin-top: 8px; |
| position: relative; |
| overflow: hidden; |
| } |
|
|
| .sparkline-bar { |
| display: inline-block; |
| width: 3px; |
| margin-right: 1px; |
| background: linear-gradient(to top, var(--accent), rgba(102, 126, 234, 0.3)); |
| border-radius: 1px; |
| animation: sparklineGrow 0.6s ease-out; |
| } |
|
|
| @keyframes sparklineGrow { |
| from { height: 0; } |
| to { height: var(--height); } |
| } |
|
|
| |
| .activity-indicator { |
| display: flex; |
| gap: 2px; |
| margin-top: 8px; |
| height: 20px; |
| align-items: flex-end; |
| } |
|
|
| .activity-dot { |
| width: 4px; |
| height: 4px; |
| background: var(--text-tertiary); |
| border-radius: 50%; |
| opacity: 0.3; |
| transition: all 0.3s ease; |
| } |
|
|
| .activity-dot.active { |
| background: var(--success); |
| animation: activityPulse 2s ease-in-out infinite; |
| opacity: 1; |
| } |
|
|
| .activity-dot:nth-child(2) { animation-delay: 0.2s; } |
| .activity-dot:nth-child(3) { animation-delay: 0.4s; } |
| .activity-dot:nth-child(4) { animation-delay: 0.6s; } |
| .activity-dot:nth-child(5) { animation-delay: 0.8s; } |
|
|
| @keyframes activityPulse { |
| 0%, 100% { |
| transform: scaleY(1); |
| opacity: 0.3; |
| } |
| 50% { |
| transform: scaleY(3); |
| opacity: 1; |
| } |
| } |
|
|
| .model-usage { padding: 0 12px 12px; flex-shrink: 0; } |
|
|
| .system-health { padding: 0 12px 12px; flex-shrink: 0; } |
|
|
| .server-info { padding: 0 12px 16px; flex-shrink: 0; } |
|
|
| .server-info-chart { |
| background: var(--bg-tertiary); |
| border-radius: 8px; |
| padding: 12px; |
| } |
|
|
| .server-info-item { |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| padding: 8px 0; |
| border-bottom: 1px solid var(--border); |
| } |
|
|
| .server-info-item:last-child { |
| border-bottom: none; |
| } |
|
|
| .server-info-label { |
| font-size: 12px; |
| color: var(--text-secondary); |
| } |
|
|
| .server-info-value { |
| font-size: 12px; |
| color: var(--text-primary); |
| font-weight: 500; |
| } |
|
|
| .stat-card-subtitle { |
| font-size: 10px; |
| color: var(--text-tertiary); |
| margin-top: 4px; |
| } |
|
|
| |
| .stats-summary { |
| padding: 12px; |
| background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%); |
| border-bottom: 1px solid var(--border); |
| flex-shrink: 0; |
| } |
|
|
| .summary-title { |
| font-size: 12px; |
| font-weight: 600; |
| color: var(--text-primary); |
| margin-bottom: 10px; |
| } |
|
|
| .summary-grid { |
| display: grid; |
| grid-template-columns: repeat(3, 1fr); |
| gap: 8px; |
| } |
|
|
| .summary-item { |
| text-align: center; |
| padding: 8px; |
| background: var(--bg-tertiary); |
| border-radius: 8px; |
| } |
|
|
| .summary-value { |
| display: block; |
| font-size: 18px; |
| font-weight: 700; |
| color: var(--accent); |
| } |
|
|
| .summary-label { |
| display: block; |
| font-size: 9px; |
| color: var(--text-tertiary); |
| text-transform: uppercase; |
| letter-spacing: 0.5px; |
| margin-top: 2px; |
| } |
|
|
| |
| .analytics-section { |
| padding: 12px; |
| border-bottom: 1px solid var(--border); |
| flex-shrink: 0; |
| } |
|
|
| .analytics-grid { |
| display: grid; |
| grid-template-columns: repeat(2, 1fr); |
| gap: 8px; |
| } |
|
|
| .analytics-card { |
| display: flex; |
| align-items: center; |
| gap: 10px; |
| padding: 12px; |
| background: var(--bg-tertiary); |
| border-radius: 10px; |
| border: 1px solid var(--border); |
| transition: all 0.2s ease; |
| } |
|
|
| .analytics-card:hover { |
| transform: translateY(-2px); |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); |
| border-color: var(--accent); |
| } |
|
|
| .analytics-card.highlight { |
| background: linear-gradient(135deg, rgba(62, 180, 137, 0.15) 0%, rgba(102, 126, 234, 0.15) 100%); |
| border-color: var(--accent); |
| } |
|
|
| .analytics-icon { |
| width: 36px; |
| height: 36px; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| background: var(--bg-elevated); |
| border-radius: 8px; |
| color: var(--accent); |
| } |
|
|
| .analytics-icon svg { |
| color: var(--accent); |
| } |
|
|
| .analytics-content { |
| flex: 1; |
| } |
|
|
| .analytics-value { |
| font-size: 18px; |
| font-weight: 700; |
| color: var(--text-primary); |
| } |
|
|
| .analytics-label { |
| font-size: 10px; |
| color: var(--text-tertiary); |
| text-transform: uppercase; |
| letter-spacing: 0.5px; |
| } |
|
|
| |
| .daily-activity { |
| padding: 12px; |
| border-bottom: 1px solid var(--border); |
| flex-shrink: 0; |
| } |
|
|
| .daily-chart { |
| background: var(--bg-tertiary); |
| border-radius: 10px; |
| padding: 16px; |
| } |
|
|
| .daily-bars { |
| display: flex; |
| align-items: flex-end; |
| justify-content: space-between; |
| height: 80px; |
| gap: 8px; |
| margin-bottom: 8px; |
| } |
|
|
| .daily-bar-wrapper { |
| flex: 1; |
| display: flex; |
| flex-direction: column; |
| align-items: center; |
| gap: 4px; |
| } |
|
|
| .daily-bar { |
| width: 100%; |
| min-height: 4px; |
| background: linear-gradient(to top, var(--accent), rgba(102, 126, 234, 0.6)); |
| border-radius: 4px 4px 0 0; |
| transition: all 0.3s ease; |
| position: relative; |
| } |
|
|
| .daily-bar:hover { |
| background: linear-gradient(to top, var(--accent-hover), var(--accent)); |
| transform: scaleY(1.05); |
| } |
|
|
| .daily-bar-value { |
| position: absolute; |
| top: -20px; |
| left: 50%; |
| transform: translateX(-50%); |
| font-size: 10px; |
| font-weight: 600; |
| color: var(--accent); |
| opacity: 0; |
| transition: opacity 0.2s ease; |
| } |
|
|
| .daily-bar:hover .daily-bar-value { |
| opacity: 1; |
| } |
|
|
| .daily-bar-label { |
| font-size: 9px; |
| color: var(--text-tertiary); |
| text-align: center; |
| white-space: nowrap; |
| } |
|
|
| |
| .distribution-section { |
| padding: 12px; |
| border-bottom: 1px solid var(--border); |
| flex-shrink: 0; |
| } |
|
|
| .distribution-grid { |
| display: flex; |
| flex-direction: column; |
| gap: 10px; |
| } |
|
|
| .distribution-card { |
| background: var(--bg-tertiary); |
| border-radius: 10px; |
| padding: 14px; |
| width: 100%; |
| } |
|
|
| .distribution-title { |
| font-size: 11px; |
| font-weight: 600; |
| color: var(--text-secondary); |
| margin-bottom: 12px; |
| text-transform: uppercase; |
| letter-spacing: 0.5px; |
| display: flex; |
| align-items: center; |
| gap: 6px; |
| } |
|
|
| .distribution-title svg { |
| color: var(--accent); |
| flex-shrink: 0; |
| } |
|
|
| .distribution-chart { |
| display: flex; |
| flex-direction: column; |
| gap: 8px; |
| max-height: 200px; |
| overflow-y: auto; |
| overflow-x: hidden; |
| padding-right: 6px; |
| scroll-behavior: smooth; |
| } |
|
|
| .distribution-chart::-webkit-scrollbar { |
| width: 6px; |
| } |
|
|
| .distribution-chart::-webkit-scrollbar-track { |
| background: var(--bg-secondary); |
| border-radius: 3px; |
| } |
|
|
| .distribution-chart::-webkit-scrollbar-thumb { |
| background: var(--accent); |
| border-radius: 3px; |
| transition: background 0.2s ease; |
| } |
|
|
| .distribution-chart::-webkit-scrollbar-thumb:hover { |
| background: var(--accent-hover); |
| } |
|
|
| .distribution-item { |
| display: flex; |
| align-items: center; |
| gap: 10px; |
| padding: 6px 8px; |
| background: var(--bg-secondary); |
| border-radius: 6px; |
| transition: all 0.2s ease; |
| } |
|
|
| .distribution-item:hover { |
| background: var(--bg-elevated); |
| transform: translateX(2px); |
| } |
|
|
| .distribution-icon { |
| width: 24px; |
| height: 24px; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| font-size: 14px; |
| background: var(--bg-elevated); |
| border-radius: 6px; |
| flex-shrink: 0; |
| } |
|
|
| .distribution-name { |
| flex: 1; |
| font-size: 12px; |
| color: var(--text-primary); |
| font-weight: 500; |
| min-width: 0; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| white-space: nowrap; |
| } |
|
|
| .distribution-bar { |
| width: 80px; |
| height: 8px; |
| background: var(--bg-hover); |
| border-radius: 4px; |
| overflow: hidden; |
| flex-shrink: 0; |
| } |
|
|
| .distribution-fill { |
| height: 100%; |
| border-radius: 4px; |
| transition: width 0.6s ease; |
| } |
|
|
| .distribution-count { |
| font-size: 11px; |
| color: var(--text-secondary); |
| width: 30px; |
| text-align: right; |
| flex-shrink: 0; |
| } |
|
|
| .distribution-percent { |
| font-size: 11px; |
| font-weight: 600; |
| color: var(--accent); |
| width: 40px; |
| text-align: right; |
| flex-shrink: 0; |
| } |
|
|
| |
| .hourly-usage { |
| padding: 0 12px 12px; |
| flex-shrink: 0; |
| } |
|
|
| .hourly-chart { |
| background: var(--bg-tertiary); |
| border-radius: 8px; |
| padding: 12px; |
| overflow-x: auto; |
| } |
|
|
| .hourly-bars { |
| display: flex; |
| align-items: flex-end; |
| gap: 2px; |
| height: 60px; |
| min-width: 100%; |
| } |
|
|
| .hourly-bar { |
| flex: 1; |
| min-width: 8px; |
| background: linear-gradient(to top, var(--accent), rgba(102, 126, 234, 0.5)); |
| border-radius: 2px 2px 0 0; |
| transition: all 0.3s ease; |
| position: relative; |
| cursor: pointer; |
| } |
|
|
| .hourly-bar:hover { |
| background: linear-gradient(to top, var(--accent-hover), var(--accent)); |
| transform: scaleY(1.05); |
| } |
|
|
| .hourly-bar.peak { |
| background: linear-gradient(to top, #f59e0b, #fbbf24); |
| } |
|
|
| .hourly-labels { |
| display: flex; |
| justify-content: space-between; |
| margin-top: 6px; |
| font-size: 9px; |
| color: var(--text-tertiary); |
| } |
|
|
| .hourly-label { |
| text-align: center; |
| } |
|
|
| .usage-chart, .health-chart { |
| background: var(--bg-tertiary); |
| border-radius: 8px; |
| padding: 12px; |
| } |
|
|
| .health-metrics { |
| display: flex; |
| flex-direction: column; |
| gap: 12px; |
| } |
|
|
| .health-metric { |
| display: flex; |
| flex-direction: column; |
| gap: 4px; |
| } |
|
|
| .health-metric-label { |
| font-size: 11px; |
| color: var(--text-tertiary); |
| font-weight: 500; |
| } |
|
|
| .health-metric-value { |
| font-size: 13px; |
| color: var(--text-primary); |
| font-weight: 600; |
| } |
|
|
| .health-progress { |
| height: 6px; |
| background: var(--bg-hover); |
| border-radius: 3px; |
| overflow: hidden; |
| } |
|
|
| .health-progress-fill { |
| height: 100%; |
| border-radius: 3px; |
| transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); |
| } |
|
|
| .health-metric-percent { |
| font-size: 10px; |
| color: var(--text-tertiary); |
| text-align: right; |
| } |
|
|
| |
| .performance-indicators { |
| margin-top: 12px; |
| display: flex; |
| flex-wrap: wrap; |
| gap: 8px; |
| } |
|
|
| .perf-indicator { |
| display: flex; |
| align-items: center; |
| gap: 6px; |
| padding: 4px 8px; |
| background: var(--bg-hover); |
| border-radius: 12px; |
| font-size: 10px; |
| color: var(--text-secondary); |
| } |
|
|
| .perf-dot { |
| width: 6px; |
| height: 6px; |
| border-radius: 50%; |
| flex-shrink: 0; |
| } |
|
|
| .perf-dot.excellent { background: #10b981; } |
| .perf-dot.good { background: #3b82f6; } |
| .perf-dot.fair { background: #f59e0b; } |
| .perf-dot.poor { background: #ef4444; } |
| .perf-dot.loading { |
| background: var(--text-tertiary); |
| animation: pulse-gentle 1.5s ease-in-out infinite; |
| } |
|
|
| .usage-bar { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| margin-bottom: 8px; |
| } |
|
|
| .usage-bar-label { |
| font-size: 11px; |
| color: var(--text-secondary); |
| width: 100px; |
| flex-shrink: 0; |
| } |
|
|
| .usage-bar-track { |
| flex: 1; |
| height: 6px; |
| background: var(--bg-hover); |
| border-radius: 3px; |
| overflow: hidden; |
| } |
|
|
| .usage-bar-fill { |
| height: 100%; |
| background: var(--accent); |
| border-radius: 3px; |
| transition: width 0.3s ease; |
| } |
|
|
| .usage-bar-value { |
| font-size: 11px; |
| color: var(--text-tertiary); |
| width: 40px; |
| text-align: right; |
| } |
|
|
| |
| .main { |
| flex: 1; |
| display: flex; |
| flex-direction: column; |
| overflow: hidden; |
| background: var(--bg-primary); |
| } |
|
|
| .main-header { |
| height: var(--header-height); |
| padding: 0 16px; |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| border-bottom: 1px solid var(--border); |
| background: var(--bg-secondary); |
| flex-shrink: 0; |
| } |
|
|
| .header-left { |
| display: flex; |
| align-items: center; |
| gap: 12px; |
| } |
|
|
| .menu-btn { |
| display: none; |
| background: transparent; |
| border: none; |
| color: var(--text-secondary); |
| cursor: pointer; |
| padding: 8px; |
| border-radius: 6px; |
| } |
|
|
| .menu-btn:hover { background: var(--bg-tertiary); } |
|
|
| .main-header h2 { |
| font-size: 16px; |
| font-weight: 600; |
| color: var(--text-primary); |
| } |
|
|
| |
| .breadcrumb { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| font-size: 14px; |
| } |
|
|
| .breadcrumb-item { |
| color: var(--text-tertiary); |
| text-decoration: none; |
| padding: 4px 8px; |
| border-radius: 4px; |
| transition: all 0.2s ease; |
| cursor: pointer; |
| } |
|
|
| .breadcrumb-item:hover { |
| color: var(--text-secondary); |
| background: var(--bg-tertiary); |
| } |
|
|
| .breadcrumb-item.active { |
| color: var(--text-primary); |
| font-weight: 600; |
| background: var(--bg-tertiary); |
| } |
|
|
| .breadcrumb-separator { |
| color: var(--text-tertiary); |
| font-size: 12px; |
| margin: 0 4px; |
| } |
|
|
| .breadcrumb-separator::before { |
| content: '›'; |
| } |
|
|
| .connection-status { |
| display: flex; |
| align-items: center; |
| gap: 6px; |
| padding: 4px 8px; |
| background: var(--bg-tertiary); |
| border-radius: 12px; |
| font-size: 11px; |
| color: var(--text-secondary); |
| border: 1px solid var(--border); |
| } |
|
|
| .connection-dot { |
| width: 6px; |
| height: 6px; |
| border-radius: 50%; |
| background: var(--success); |
| animation: pulse-gentle 2s ease-in-out infinite; |
| } |
|
|
| .connection-status.disconnected .connection-dot { |
| background: var(--error); |
| animation: none; |
| } |
|
|
| .connection-status.reconnecting .connection-dot { |
| background: var(--warning); |
| animation: pulse-fast 1s ease-in-out infinite; |
| } |
|
|
| @keyframes pulse-fast { |
| 0%, 100% { opacity: 1; } |
| 50% { opacity: 0.3; } |
| } |
|
|
| .last-updated { |
| font-size: 11px; |
| color: var(--text-muted); |
| margin-left: 8px; |
| padding: 2px 8px; |
| background: var(--bg-tertiary); |
| border-radius: 4px; |
| transition: color 0.3s ease; |
| } |
|
|
| .header-actions { |
| display: flex; |
| gap: 8px; |
| } |
|
|
| |
| .content-area { |
| flex: 1; |
| display: flex; |
| overflow: hidden; |
| } |
|
|
| |
| .chats-panel { |
| width: var(--chats-width); |
| background: var(--bg-secondary); |
| border-right: 1px solid var(--border); |
| display: flex; |
| flex-direction: column; |
| flex-shrink: 0; |
| position: relative; |
| } |
|
|
| |
| .chats-panel-overlay { |
| display: none; |
| position: fixed; |
| inset: 0; |
| background: rgba(0, 0, 0, 0.6); |
| z-index: 997; |
| backdrop-filter: blur(4px); |
| -webkit-backdrop-filter: blur(4px); |
| } |
|
|
| .chats-panel-overlay.active { |
| display: block; |
| } |
|
|
| .chats-header { |
| padding: 16px; |
| border-bottom: 1px solid var(--border); |
| font-size: 13px; |
| color: var(--text-secondary); |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| } |
|
|
| .chats-header span:last-child { |
| color: var(--accent); |
| font-weight: 500; |
| } |
|
|
| .chat-count-badge { |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| min-width: 20px; |
| height: 20px; |
| background: var(--accent); |
| color: white; |
| border-radius: 10px; |
| font-size: 11px; |
| font-weight: 600; |
| padding: 0 6px; |
| animation: badgePop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); |
| } |
|
|
| @keyframes badgePop { |
| 0% { transform: scale(0); } |
| 50% { transform: scale(1.2); } |
| 100% { transform: scale(1); } |
| } |
|
|
| .chats-list { |
| flex: 1; |
| overflow-y: auto; |
| padding: 8px; |
| } |
|
|
| |
| .chat-card { |
| padding: 12px; |
| background: var(--bg-tertiary); |
| border-radius: 8px; |
| margin-bottom: 6px; |
| cursor: pointer; |
| transition: all 0.2s; |
| border: 1px solid transparent; |
| } |
|
|
| .chat-card:hover { background: var(--bg-elevated); } |
| .chat-card.active { border-color: var(--accent); background: var(--bg-elevated); } |
|
|
| .chat-card-title { |
| font-size: 13px; |
| font-weight: 500; |
| color: var(--text-primary); |
| margin-bottom: 4px; |
| white-space: nowrap; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| } |
|
|
| .chat-card-meta { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| font-size: 11px; |
| color: var(--text-tertiary); |
| } |
|
|
| .chat-card-status { |
| width: 6px; |
| height: 6px; |
| border-radius: 50%; |
| background: var(--text-tertiary); |
| } |
|
|
| .chat-card-status.active { background: var(--success); } |
|
|
| |
| .chat-view { |
| flex: 1; |
| display: flex; |
| flex-direction: column; |
| overflow: hidden; |
| } |
|
|
| .chat-view-header { |
| padding: 12px 16px; |
| border-bottom: 1px solid var(--border); |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| background: var(--bg-secondary); |
| } |
|
|
| .chat-info h3 { |
| font-size: 14px; |
| font-weight: 600; |
| color: var(--text-primary); |
| margin-bottom: 2px; |
| } |
|
|
| .chat-info p { |
| font-size: 11px; |
| color: var(--text-tertiary); |
| } |
|
|
| .chat-actions { |
| display: flex; |
| gap: 8px; |
| align-items: center; |
| } |
|
|
| .chat-actions .btn { |
| display: inline-flex; |
| align-items: center; |
| gap: 6px; |
| padding: 8px 14px; |
| font-size: 12px; |
| font-weight: 500; |
| border-radius: 6px; |
| } |
|
|
| .chat-actions .btn span { |
| margin: 0; |
| } |
|
|
| .messages-area { |
| flex: 1; |
| overflow-y: auto; |
| padding: 16px; |
| } |
|
|
| |
| .message { |
| display: flex; |
| gap: 12px; |
| margin-bottom: 20px; |
| max-width: 100%; |
| } |
|
|
| .message.user { flex-direction: row-reverse; } |
|
|
| .message-avatar { |
| width: 32px; |
| height: 32px; |
| border-radius: 50%; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| flex-shrink: 0; |
| font-size: 14px; |
| font-weight: 600; |
| } |
|
|
| .message.user .message-avatar { |
| background: var(--user-avatar); |
| color: white; |
| } |
|
|
| .message.assistant .message-avatar { |
| background: var(--ai-avatar); |
| color: white; |
| } |
|
|
| .message-wrapper { |
| max-width: 85%; |
| min-width: 0; |
| } |
|
|
| .message.user .message-wrapper { text-align: right; } |
|
|
| .message-header { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| margin-bottom: 6px; |
| font-size: 12px; |
| } |
|
|
| .message.user .message-header { justify-content: flex-end; } |
|
|
| .message-role { |
| font-weight: 600; |
| color: var(--text-primary); |
| } |
|
|
| .model-badge { |
| background: var(--bg-elevated); |
| color: var(--accent); |
| padding: 2px 6px; |
| border-radius: 4px; |
| font-size: 10px; |
| font-weight: 500; |
| } |
|
|
| .internet-badge { |
| background: rgba(62, 180, 137, 0.15); |
| color: var(--accent); |
| padding: 2px 6px; |
| border-radius: 4px; |
| font-size: 9px; |
| } |
|
|
| .message-time { |
| color: var(--text-tertiary); |
| font-size: 10px; |
| } |
|
|
| |
| .message-content { |
| padding: 12px 16px; |
| border-radius: 18px; |
| line-height: 1.6; |
| word-wrap: break-word; |
| overflow-wrap: break-word; |
| } |
|
|
| .message.user .message-content { |
| background: var(--user-bubble); |
| color: white; |
| border-radius: 18px 18px 4px 18px; |
| display: inline-block; |
| } |
|
|
| .message.assistant .message-content { |
| background: transparent; |
| color: var(--text-primary); |
| padding: 0; |
| } |
|
|
| |
| .message-content p { margin: 0 0 12px; } |
| .message-content p:last-child { margin-bottom: 0; } |
|
|
| .message-content h1, .message-content h2, .message-content h3, |
| .message-content h4, .message-content h5, .message-content h6 { |
| margin: 20px 0 10px; |
| font-weight: 600; |
| color: var(--text-primary); |
| line-height: 1.3; |
| } |
|
|
| .message-content h1 { |
| font-size: 1.6em; |
| padding-bottom: 8px; |
| border-bottom: 2px solid var(--accent); |
| } |
| .message-content h2 { |
| font-size: 1.4em; |
| padding-bottom: 6px; |
| border-bottom: 1px solid var(--border); |
| } |
| .message-content h3 { |
| font-size: 1.2em; |
| color: var(--accent); |
| } |
| .message-content h4 { font-size: 1.1em; } |
| .message-content h5, .message-content h6 { font-size: 1em; color: var(--text-secondary); } |
|
|
| .message-content ul, .message-content ol { |
| margin: 12px 0; |
| padding-left: 28px; |
| } |
|
|
| .message-content li { |
| margin: 6px 0; |
| line-height: 1.6; |
| } |
|
|
| .message-content li::marker { |
| color: var(--accent); |
| } |
|
|
| .message-content blockquote { |
| border-left: 4px solid var(--accent); |
| padding: 12px 16px; |
| margin: 16px 0; |
| background: rgba(102, 126, 234, 0.08); |
| border-radius: 0 8px 8px 0; |
| color: var(--text-secondary); |
| font-style: italic; |
| } |
|
|
| .message-content blockquote p { |
| margin: 0; |
| } |
|
|
| .message-content a { |
| color: var(--accent); |
| text-decoration: none; |
| border-bottom: 1px solid transparent; |
| transition: border-color 0.2s; |
| } |
|
|
| .message-content a:hover { |
| border-bottom-color: var(--accent); |
| } |
|
|
| .message-content strong { |
| font-weight: 600; |
| color: var(--text-primary); |
| } |
|
|
| .message-content em { |
| font-style: italic; |
| color: var(--text-secondary); |
| } |
|
|
| .message-content hr { |
| border: none; |
| height: 2px; |
| background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 100%); |
| margin: 20px 0; |
| border-radius: 1px; |
| } |
|
|
| |
| .message-content code:not(.code-content code) { |
| background: var(--bg-tertiary); |
| color: var(--accent-secondary); |
| padding: 2px 6px; |
| border-radius: 4px; |
| font-family: 'Fira Code', 'SF Mono', Monaco, Consolas, monospace; |
| font-size: 0.9em; |
| } |
|
|
| |
| .code-block { |
| background: #1e293b; |
| border-radius: 12px; |
| overflow: hidden; |
| margin: 16px 0; |
| box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); |
| border: 1px solid rgba(255, 255, 255, 0.05); |
| } |
|
|
| .code-header { |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| padding: 10px 16px; |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| } |
|
|
| .code-language { |
| font-size: 12px; |
| color: rgba(255, 255, 255, 0.9); |
| font-weight: 600; |
| text-transform: uppercase; |
| letter-spacing: 0.5px; |
| } |
|
|
| .code-copy-btn { |
| background: rgba(255, 255, 255, 0.15); |
| border: 1px solid rgba(255, 255, 255, 0.2); |
| color: rgba(255, 255, 255, 0.9); |
| padding: 5px 10px; |
| border-radius: 6px; |
| cursor: pointer; |
| font-size: 11px; |
| font-weight: 500; |
| display: flex; |
| align-items: center; |
| gap: 5px; |
| transition: all 0.2s; |
| } |
|
|
| .code-copy-btn:hover { |
| background: rgba(255, 255, 255, 0.25); |
| color: #fff; |
| } |
|
|
| .code-copy-btn.copied { |
| background: var(--success); |
| border-color: var(--success); |
| color: white; |
| } |
|
|
| .code-content { |
| padding: 20px; |
| overflow-x: auto; |
| background: #0f172a; |
| } |
|
|
| .code-content code { |
| font-family: 'Fira Code', 'SF Mono', Monaco, Consolas, monospace; |
| font-size: 13px; |
| line-height: 1.7; |
| color: #e2e8f0; |
| white-space: pre; |
| display: block; |
| } |
|
|
| |
| .math-block { |
| background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%); |
| padding: 20px 24px; |
| border-radius: 12px; |
| margin: 16px 0; |
| overflow-x: auto; |
| text-align: center; |
| border-left: 4px solid var(--accent); |
| font-size: 1.1em; |
| } |
|
|
| .math-block.math-fallback { |
| font-family: 'Times New Roman', Georgia, serif; |
| font-style: italic; |
| font-size: 1.2em; |
| color: var(--text-primary); |
| } |
|
|
| .math-inline { |
| display: inline; |
| padding: 2px 6px; |
| background: rgba(102, 126, 234, 0.1); |
| border-radius: 4px; |
| } |
|
|
| .math-inline.math-fallback { |
| font-family: 'Times New Roman', Georgia, serif; |
| font-style: italic; |
| } |
|
|
| |
| .katex { font-size: 1.1em; } |
| .katex-display { margin: 0; overflow-x: auto; overflow-y: hidden; } |
| .math-block .katex-display { margin: 0; } |
| .math-block .katex-display > .katex { white-space: normal; } |
|
|
| |
| .math-symbol { |
| font-family: 'Times New Roman', Georgia, 'Cambria Math', serif; |
| font-size: 1.05em; |
| color: var(--accent); |
| } |
|
|
| |
| .table-wrapper { |
| overflow-x: auto; |
| margin: 12px 0; |
| border-radius: 8px; |
| border: 1px solid var(--border); |
| } |
|
|
| .message-content table { |
| width: 100%; |
| border-collapse: collapse; |
| font-size: 13px; |
| } |
|
|
| .message-content th, .message-content td { |
| padding: 10px 12px; |
| text-align: left; |
| border-bottom: 1px solid var(--border); |
| } |
|
|
| .message-content th { |
| background: var(--bg-tertiary); |
| font-weight: 600; |
| color: var(--text-primary); |
| } |
|
|
| .message-content tr:last-child td { border-bottom: none; } |
| .message-content tr:hover td { background: var(--bg-tertiary); } |
|
|
| |
| .message-attachments { |
| display: flex; |
| flex-wrap: wrap; |
| gap: 8px; |
| margin-bottom: 8px; |
| } |
|
|
| .attachment-chip { |
| display: flex; |
| align-items: center; |
| gap: 6px; |
| padding: 6px 10px; |
| background: var(--bg-tertiary); |
| border-radius: 6px; |
| font-size: 12px; |
| color: var(--text-secondary); |
| } |
|
|
| .attachment-chip svg { color: var(--accent); } |
|
|
| |
| .empty-state { |
| display: flex; |
| flex-direction: column; |
| align-items: center; |
| justify-content: center; |
| height: 100%; |
| color: var(--text-tertiary); |
| text-align: center; |
| padding: 40px; |
| animation: fadeIn 0.5s ease; |
| } |
|
|
| .enhanced-empty-state { |
| padding: 60px 40px; |
| } |
|
|
| .enhanced-empty-state h3 { |
| font-size: 18px; |
| font-weight: 600; |
| color: var(--text-primary); |
| margin: 16px 0 8px; |
| } |
|
|
| .enhanced-empty-state p { |
| font-size: 14px; |
| color: var(--text-secondary); |
| margin-bottom: 20px; |
| max-width: 280px; |
| line-height: 1.5; |
| } |
|
|
| .enhanced-empty-state .btn { |
| margin-top: 8px; |
| } |
|
|
| .empty-state svg { |
| margin-bottom: 16px; |
| opacity: 0.5; |
| animation: float 3s ease-in-out infinite; |
| } |
|
|
| .empty-state p { |
| font-size: 14px; |
| max-width: 240px; |
| } |
|
|
| |
| .no-data { |
| text-align: center; |
| padding: 40px 20px; |
| color: var(--text-tertiary); |
| font-size: 13px; |
| } |
|
|
| |
| .loading-skeleton { padding: 8px; } |
|
|
| .skeleton-item { |
| height: 60px; |
| background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%); |
| background-size: 200% 100%; |
| animation: shimmer 1.5s infinite; |
| border-radius: 8px; |
| margin-bottom: 8px; |
| } |
|
|
| @keyframes shimmer { |
| 0% { background-position: 200% 0; } |
| 100% { background-position: -200% 0; } |
| } |
|
|
| |
| .toast-container { |
| position: fixed; |
| bottom: 20px; |
| right: 20px; |
| z-index: 2000; |
| display: flex; |
| flex-direction: column; |
| gap: 8px; |
| } |
|
|
| .toast { |
| position: relative; |
| display: flex; |
| align-items: center; |
| gap: 10px; |
| padding: 12px 16px; |
| background: var(--bg-tertiary); |
| border: 1px solid var(--border); |
| border-radius: 8px; |
| box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); |
| max-width: 320px; |
| overflow: hidden; |
| } |
|
|
| .toast.success { border-color: var(--success); } |
| .toast.error { border-color: var(--error); } |
| .toast.warning { border-color: var(--warning); } |
|
|
| .toast-icon { |
| width: 20px; |
| height: 20px; |
| flex-shrink: 0; |
| } |
|
|
| .toast.success .toast-icon { color: var(--success); } |
| .toast.error .toast-icon { color: var(--error); } |
| .toast.warning .toast-icon { color: var(--warning); } |
|
|
| .toast-message { |
| flex: 1; |
| font-size: 13px; |
| color: var(--text-primary); |
| } |
|
|
| .toast-close { |
| background: transparent; |
| border: none; |
| color: var(--text-tertiary); |
| cursor: pointer; |
| padding: 4px; |
| border-radius: 4px; |
| transition: all 0.2s ease; |
| } |
|
|
| .toast-close:hover { |
| background: var(--bg-hover); |
| color: var(--text-primary); |
| } |
|
|
| @keyframes toast-progress { |
| from { width: 100%; } |
| to { width: 0%; } |
| } |
|
|
| |
| .dialog-overlay { |
| position: fixed; |
| inset: 0; |
| background: rgba(0, 0, 0, 0.6); |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| z-index: 3000; |
| backdrop-filter: blur(4px); |
| } |
|
|
| .dialog-box { |
| background: var(--bg-tertiary); |
| border: 1px solid var(--border); |
| border-radius: 12px; |
| padding: 24px; |
| max-width: 400px; |
| width: 90%; |
| text-align: center; |
| animation: scaleIn 0.2s ease; |
| } |
|
|
| @keyframes scaleIn { |
| from { transform: scale(0.9); opacity: 0; } |
| to { transform: scale(1); opacity: 1; } |
| } |
|
|
| .dialog-icon { |
| width: 48px; |
| height: 48px; |
| margin: 0 auto 16px; |
| border-radius: 50%; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| } |
|
|
| .dialog-icon.warning { |
| background: rgba(245, 158, 11, 0.15); |
| color: var(--warning); |
| } |
|
|
| .dialog-icon.danger { |
| background: rgba(239, 68, 68, 0.15); |
| color: var(--error); |
| } |
|
|
| .dialog-icon.help { |
| background: rgba(102, 126, 234, 0.15); |
| color: var(--accent); |
| } |
|
|
| .help-dialog { |
| max-width: 500px; |
| width: 95%; |
| } |
|
|
| .shortcuts-grid { |
| display: grid; |
| grid-template-columns: 1fr; |
| gap: 12px; |
| margin: 20px 0; |
| text-align: left; |
| } |
|
|
| .shortcut-item { |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| padding: 8px 12px; |
| background: var(--bg-secondary); |
| border-radius: 6px; |
| border: 1px solid var(--border); |
| } |
|
|
| .shortcut-item kbd { |
| background: var(--bg-elevated); |
| color: var(--text-primary); |
| padding: 4px 8px; |
| border-radius: 4px; |
| font-family: 'Fira Code', monospace; |
| font-size: 11px; |
| font-weight: 600; |
| border: 1px solid var(--border); |
| box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); |
| } |
|
|
| .shortcut-item span { |
| color: var(--text-secondary); |
| font-size: 13px; |
| } |
|
|
| .dialog-box h3 { |
| font-size: 18px; |
| margin-bottom: 8px; |
| color: var(--text-primary); |
| } |
|
|
| .dialog-box p { |
| font-size: 14px; |
| color: var(--text-secondary); |
| margin-bottom: 20px; |
| } |
|
|
| .dialog-actions { |
| display: flex; |
| gap: 12px; |
| justify-content: center; |
| } |
|
|
| .dialog-actions .btn { min-width: 100px; } |
|
|
| |
| .sidebar-overlay { |
| display: none; |
| position: fixed; |
| inset: 0; |
| background: rgba(0, 0, 0, 0.5); |
| z-index: 99; |
| } |
|
|
| .sidebar-overlay.active { display: block; } |
|
|
| |
| @media (max-width: 1024px) { |
| .chats-panel { width: 240px; } |
| } |
|
|
| @media (max-width: 768px) { |
| .sidebar { |
| position: fixed; |
| left: 0; |
| top: 0; |
| bottom: 0; |
| z-index: 100; |
| transform: translateX(-100%); |
| } |
| |
| .sidebar.open { transform: translateX(0); } |
| |
| .menu-btn { display: block; } |
| |
| .chats-panel { |
| position: fixed; |
| left: 0; |
| top: 0; |
| bottom: 0; |
| z-index: 98; |
| width: 280px; |
| transform: translateX(-100%); |
| transition: transform 0.3s var(--ease-out-expo); |
| } |
| |
| .chats-panel.open { transform: translateX(0); } |
| |
| .header-actions .btn span { display: none; } |
| .header-actions .btn { padding: 8px; } |
| |
| .content-area { flex-direction: column; } |
| |
| .chat-view { width: 100%; } |
| } |
|
|
| @media (max-width: 480px) { |
| .login-box { padding: 24px; margin: 16px; } |
| |
| .stats-row { flex-wrap: wrap; } |
| .stat-box { min-width: calc(50% - 4px); } |
| |
| .message-wrapper { max-width: 95%; } |
| } |
|
|
| |
| ::selection { |
| background: rgba(62, 180, 137, 0.3); |
| color: inherit; |
| } |
|
|
| |
| button:focus-visible, input:focus-visible { |
| outline: 2px solid var(--accent); |
| outline-offset: 2px; |
| } |
|
|
| |
| .fade-in { |
| animation: fadeIn 0.3s ease; |
| } |
|
|
| @keyframes fadeIn { |
| from { opacity: 0; } |
| to { opacity: 1; } |
| } |
|
|
| .slide-up { |
| animation: slideUp 0.3s ease; |
| } |
|
|
| @keyframes slideUp { |
| from { transform: translateY(10px); opacity: 0; } |
| to { transform: translateY(0); opacity: 1; } |
| } |
|
|
| |
| .user-list, .chats-list, .messages-area { |
| contain: layout style paint; |
| will-change: scroll-position; |
| } |
|
|
| .message { |
| contain: layout style; |
| } |
|
|
| |
| .auto-refresh-indicator { |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| width: 20px; |
| height: 20px; |
| border-radius: 50%; |
| background: rgba(62, 180, 137, 0.15); |
| color: var(--success); |
| margin-left: 8px; |
| animation: pulse-gentle 3s ease-in-out infinite; |
| } |
|
|
| .auto-refresh-indicator svg { |
| animation: rotate-slow 8s linear infinite; |
| } |
|
|
| @keyframes pulse-gentle { |
| 0%, 100% { opacity: 0.7; transform: scale(1); } |
| 50% { opacity: 1; transform: scale(1.05); } |
| } |
|
|
| @keyframes rotate-slow { |
| from { transform: rotate(0deg); } |
| to { transform: rotate(360deg); } |
| } |
|
|
| |
| .btn { |
| position: relative; |
| overflow: hidden; |
| } |
|
|
| .btn::before { |
| content: ''; |
| position: absolute; |
| top: 50%; |
| left: 50%; |
| width: 0; |
| height: 0; |
| border-radius: 50%; |
| background: rgba(255, 255, 255, 0.2); |
| transform: translate(-50%, -50%); |
| transition: width 0.3s ease, height 0.3s ease; |
| } |
|
|
| .btn:active::before { |
| width: 300px; |
| height: 300px; |
| } |
|
|
| |
| .user-card, .chat-card { |
| transform-origin: center; |
| transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); |
| } |
|
|
| .user-card:hover, .chat-card:hover { |
| transform: translateY(-1px); |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); |
| } |
|
|
| .user-card:active, .chat-card:active { |
| transform: translateY(0px) scale(0.98); |
| } |
|
|
| |
| .loading-skeleton { |
| position: relative; |
| overflow: hidden; |
| } |
|
|
| .skeleton-item::before { |
| content: ''; |
| position: absolute; |
| top: 0; |
| left: -100%; |
| width: 100%; |
| height: 100%; |
| background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); |
| animation: skeleton-loading 1.5s infinite; |
| } |
|
|
| @keyframes skeleton-loading { |
| 0% { left: -100%; } |
| 100% { left: 100%; } |
| } |
|
|
| |
| .user-status, .chat-card-status { |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); |
| } |
|
|
| .user-status.online { |
| box-shadow: 0 0 8px rgba(62, 180, 137, 0.6); |
| } |
|
|
| |
| .user-card:focus-visible, .chat-card:focus-visible { |
| transform: translateY(-1px); |
| box-shadow: 0 0 0 2px var(--accent), 0 4px 12px rgba(0, 0, 0, 0.15); |
| } |
|
|
| |
| .user-list, .chats-list, .messages-area { |
| scroll-behavior: smooth; |
| } |
|
|
| .user-list::-webkit-scrollbar-thumb, |
| .chats-list::-webkit-scrollbar-thumb, |
| .messages-area::-webkit-scrollbar-thumb { |
| transition: background 0.2s ease; |
| } |
|
|
| |
| .toast { |
| transform: translateX(100%); |
| animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; |
| } |
|
|
| .toast.removing { |
| animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; |
| } |
|
|
| @keyframes slideInRight { |
| to { transform: translateX(0); } |
| } |
|
|
| @keyframes slideOutRight { |
| to { transform: translateX(100%); opacity: 0; } |
| } |
|
|
| |
| .loading-pulse { |
| animation: pulse 1.5s ease-in-out infinite; |
| } |
|
|
| @keyframes pulse { |
| 0%, 100% { opacity: 1; } |
| 50% { opacity: 0.5; } |
| } |
|
|
| |
| .status-indicator { |
| position: relative; |
| display: inline-block; |
| } |
|
|
| .status-indicator::after { |
| content: ''; |
| position: absolute; |
| top: -2px; |
| right: -2px; |
| width: 8px; |
| height: 8px; |
| border-radius: 50%; |
| background: var(--success); |
| border: 2px solid var(--bg-secondary); |
| animation: pulse-dot 2s infinite; |
| } |
|
|
| @keyframes pulse-dot { |
| 0% { transform: scale(1); opacity: 1; } |
| 50% { transform: scale(1.2); opacity: 0.7; } |
| 100% { transform: scale(1); opacity: 1; } |
| } |
|
|
| |
| @media (prefers-reduced-motion: reduce) { |
| *, *::before, *::after { |
| animation-duration: 0.01ms !important; |
| animation-iteration-count: 1 !important; |
| transition-duration: 0.01ms !important; |
| scroll-behavior: auto !important; |
| } |
| |
| .auto-refresh-indicator svg, |
| .btn.spinning svg, |
| .sparkline-bar, |
| .activity-dot, |
| .perf-dot.loading { |
| animation: none !important; |
| } |
| } |
|
|
| |
| .user-card:focus-visible, .chat-card:focus-visible { |
| outline: 2px solid var(--accent); |
| outline-offset: 2px; |
| border-radius: 8px; |
| } |
|
|
| |
| .user-list::-webkit-scrollbar, .chats-list::-webkit-scrollbar, .messages-area::-webkit-scrollbar { |
| width: 8px; |
| } |
|
|
| .user-list::-webkit-scrollbar-track, .chats-list::-webkit-scrollbar-track, .messages-area::-webkit-scrollbar-track { |
| background: var(--bg-tertiary); |
| border-radius: 4px; |
| } |
|
|
| .user-list::-webkit-scrollbar-thumb, .chats-list::-webkit-scrollbar-thumb, .messages-area::-webkit-scrollbar-thumb { |
| background: var(--text-tertiary); |
| border-radius: 4px; |
| border: 2px solid var(--bg-tertiary); |
| } |
|
|
| .user-list::-webkit-scrollbar-thumb:hover, .chats-list::-webkit-scrollbar-thumb:hover, .messages-area::-webkit-scrollbar-thumb:hover { |
| background: var(--text-secondary); |
| } |
|
|
| |
| mark { |
| background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%); |
| color: var(--text-primary); |
| padding: 1px 2px; |
| border-radius: 2px; |
| font-weight: 500; |
| } |
|
|
| |
| .usage-bar { |
| position: relative; |
| overflow: hidden; |
| } |
|
|
| .usage-bar-fill { |
| transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); |
| position: relative; |
| } |
|
|
| .usage-bar-fill::after { |
| content: ''; |
| position: absolute; |
| top: 0; |
| left: -100%; |
| width: 100%; |
| height: 100%; |
| background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); |
| animation: shimmer 2s infinite; |
| } |
|
|
| @keyframes shimmer { |
| 0% { left: -100%; } |
| 100% { left: 100%; } |
| } |
|
|
| |
| .user-status.online::after { |
| content: ''; |
| position: absolute; |
| top: 50%; |
| left: 50%; |
| width: 16px; |
| height: 16px; |
| background: var(--success); |
| border-radius: 50%; |
| transform: translate(-50%, -50%); |
| animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite; |
| } |
|
|
| @keyframes ping { |
| 75%, 100% { |
| transform: translate(-50%, -50%) scale(2); |
| opacity: 0; |
| } |
| } |
|
|
| |
| [title] { |
| position: relative; |
| cursor: help; |
| } |
|
|
| [title]:hover::after { |
| content: attr(title); |
| position: absolute; |
| bottom: 100%; |
| left: 50%; |
| transform: translateX(-50%); |
| background: var(--bg-elevated); |
| color: var(--text-primary); |
| padding: 8px 12px; |
| border-radius: 8px; |
| font-size: 12px; |
| white-space: nowrap; |
| z-index: 1000; |
| border: 1px solid var(--border); |
| box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); |
| animation: tooltipFadeIn 0.2s ease; |
| max-width: 250px; |
| white-space: normal; |
| text-align: center; |
| line-height: 1.4; |
| } |
|
|
| [title]:hover::before { |
| content: ''; |
| position: absolute; |
| bottom: 94%; |
| left: 50%; |
| transform: translateX(-50%); |
| border: 6px solid transparent; |
| border-top-color: var(--border); |
| z-index: 1000; |
| } |
|
|
| @keyframes tooltipFadeIn { |
| from { opacity: 0; transform: translateX(-50%) translateY(4px); } |
| to { opacity: 1; transform: translateX(-50%) translateY(0); } |
| } |
|
|
| |
| .stat-box { |
| transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); |
| cursor: help; |
| } |
|
|
| .stat-box:hover { |
| transform: translateY(-2px); |
| box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15); |
| background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-elevated) 100%); |
| } |
|
|
| |
| .empty-state { |
| animation: fadeIn 0.5s ease; |
| } |
|
|
| .empty-state svg { |
| animation: float 3s ease-in-out infinite; |
| } |
|
|
| @keyframes float { |
| 0%, 100% { transform: translateY(0px); } |
| 50% { transform: translateY(-10px); } |
| } |
|
|
| |
| .btn:disabled { |
| opacity: 0.6; |
| cursor: not-allowed; |
| transform: none !important; |
| } |
|
|
| .btn.spinning svg { |
| animation: spin 1s linear infinite; |
| } |
|
|
| |
| .user-card, .chat-card { |
| transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); |
| position: relative; |
| } |
|
|
| .user-card::before, .chat-card::before { |
| content: ''; |
| position: absolute; |
| inset: 0; |
| border-radius: 8px; |
| padding: 1px; |
| background: linear-gradient(135deg, transparent, rgba(102, 126, 234, 0.3), transparent); |
| mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); |
| mask-composite: exclude; |
| opacity: 0; |
| transition: opacity 0.2s ease; |
| } |
|
|
| .user-card:hover::before, .chat-card:hover::before { |
| opacity: 1; |
| } |
|
|
| |
| .user-list, .chats-list, .messages-area { |
| scrollbar-width: thin; |
| scrollbar-color: var(--text-tertiary) var(--bg-tertiary); |
| } |
|
|
| |
| .message-content { |
| contain: layout style; |
| } |
|
|
| .code-block { |
| contain: layout style paint; |
| } |
|
|
| |
| @media (prefers-color-scheme: dark) { |
| :root { |
| --shadow-color: rgba(0, 0, 0, 0.5); |
| } |
| } |
|
|
| |
| @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { |
| .user-status, .chat-card-status { |
| border: 0.5px solid rgba(255, 255, 255, 0.1); |
| } |
| } |
|
|
| |
| .katex { font-size: 1.1em; } |
| .katex-display { margin: 16px 0; overflow-x: auto; } |
|
|
| |
| @media print { |
| .sidebar, .chats-panel, .main-header { display: none !important; } |
| .chat-view { width: 100% !important; } |
| .messages-area { overflow: visible !important; } |
| } |
|
|
| |
| @media (prefers-contrast: high) { |
| :root { |
| --border: #4a5568; |
| --text-secondary: #cbd5e0; |
| } |
| } |
|
|
|
|
| |
| .realtime-section { |
| padding: 12px; |
| border-bottom: 1px solid var(--border); |
| } |
|
|
| .realtime-grid { |
| display: grid; |
| grid-template-columns: 1fr 1fr; |
| gap: 8px; |
| } |
|
|
| .realtime-card { |
| background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-elevated) 100%); |
| border-radius: 10px; |
| padding: 12px; |
| display: flex; |
| align-items: center; |
| gap: 10px; |
| border: 1px solid var(--border); |
| transition: all 0.2s ease; |
| } |
|
|
| .realtime-card:hover { |
| transform: translateY(-2px); |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); |
| border-color: var(--accent); |
| } |
|
|
| .realtime-icon { |
| font-size: 24px; |
| width: 36px; |
| height: 36px; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| background: var(--bg-secondary); |
| border-radius: 8px; |
| flex-shrink: 0; |
| color: var(--accent); |
| } |
|
|
| .realtime-icon svg { |
| color: inherit; |
| } |
|
|
| .realtime-icon.pulse { |
| animation: pulse 2s ease-in-out infinite; |
| } |
|
|
| @keyframes pulse { |
| 0%, 100% { opacity: 1; transform: scale(1); } |
| 50% { opacity: 0.7; transform: scale(1.1); } |
| } |
|
|
| .realtime-info { |
| flex: 1; |
| } |
|
|
| .realtime-value { |
| font-size: 20px; |
| font-weight: 700; |
| color: var(--accent); |
| line-height: 1.2; |
| } |
|
|
| .realtime-label { |
| font-size: 10px; |
| color: var(--text-tertiary); |
| text-transform: uppercase; |
| letter-spacing: 0.3px; |
| } |
|
|
| |
| .engagement-section { |
| padding: 12px; |
| border-bottom: 1px solid var(--border); |
| } |
|
|
| .engagement-grid { |
| display: grid; |
| grid-template-columns: repeat(2, 1fr); |
| gap: 10px; |
| } |
|
|
| .engagement-card { |
| background: var(--bg-tertiary); |
| border-radius: 10px; |
| padding: 14px; |
| border: 1px solid var(--border); |
| transition: all 0.2s ease; |
| min-width: 0; |
| overflow: hidden; |
| } |
|
|
| .engagement-card:hover { |
| border-color: var(--accent); |
| transform: translateY(-2px); |
| } |
|
|
| .engagement-header { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| margin-bottom: 8px; |
| } |
|
|
| .engagement-icon { |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| flex-shrink: 0; |
| color: var(--accent); |
| } |
|
|
| .engagement-icon svg { |
| color: var(--accent); |
| } |
|
|
| .engagement-title { |
| font-size: 10px; |
| color: var(--text-secondary); |
| text-transform: uppercase; |
| letter-spacing: 0.3px; |
| white-space: nowrap; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| } |
|
|
| .engagement-value { |
| font-size: 24px; |
| font-weight: 700; |
| background: linear-gradient(135deg, var(--accent) 0%, #667eea 100%); |
| -webkit-background-clip: text; |
| -webkit-text-fill-color: transparent; |
| background-clip: text; |
| line-height: 1.2; |
| } |
|
|
| .engagement-sub { |
| font-size: 10px; |
| color: var(--text-tertiary); |
| margin-top: 4px; |
| white-space: nowrap; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| } |
|
|
| .engagement-sub span { |
| color: var(--accent); |
| font-weight: 600; |
| } |
|
|
| |
| .error-section { |
| padding: 12px; |
| border-bottom: 1px solid var(--border); |
| } |
|
|
| .error-grid { |
| display: grid; |
| grid-template-columns: 1fr 1fr; |
| gap: 8px; |
| } |
|
|
| .error-card { |
| background: var(--bg-tertiary); |
| border-radius: 10px; |
| padding: 12px; |
| display: flex; |
| align-items: center; |
| gap: 10px; |
| border: 1px solid var(--border); |
| transition: all 0.2s ease; |
| } |
|
|
| .error-card:hover { |
| border-color: var(--warning); |
| } |
|
|
| .error-icon { |
| font-size: 20px; |
| width: 36px; |
| height: 36px; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| background: var(--bg-secondary); |
| border-radius: 8px; |
| flex-shrink: 0; |
| color: var(--text-secondary); |
| } |
|
|
| .error-icon svg { |
| color: inherit; |
| } |
|
|
| .error-content { |
| flex: 1; |
| } |
|
|
| .error-value { |
| font-size: 18px; |
| font-weight: 700; |
| color: var(--text-primary); |
| line-height: 1.2; |
| } |
|
|
| .error-label { |
| font-size: 10px; |
| color: var(--text-tertiary); |
| text-transform: uppercase; |
| } |
|
|
| |
| .top-users-section { |
| padding: 12px; |
| border-bottom: 1px solid var(--border); |
| } |
|
|
| .top-users-chart { |
| background: var(--bg-tertiary); |
| border-radius: 10px; |
| padding: 12px; |
| } |
|
|
| .top-user-item { |
| display: flex; |
| align-items: center; |
| gap: 12px; |
| padding: 10px; |
| background: var(--bg-secondary); |
| border-radius: 8px; |
| margin-bottom: 8px; |
| transition: all 0.2s ease; |
| } |
|
|
| .top-user-item:last-child { |
| margin-bottom: 0; |
| } |
|
|
| .top-user-item:hover { |
| background: var(--bg-elevated); |
| transform: translateX(4px); |
| } |
|
|
| .top-user-rank { |
| width: 24px; |
| height: 24px; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| background: linear-gradient(135deg, var(--accent) 0%, #667eea 100%); |
| border-radius: 50%; |
| font-size: 12px; |
| font-weight: 700; |
| color: white; |
| } |
|
|
| .top-user-rank.gold { |
| background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%); |
| } |
|
|
| .top-user-rank.silver { |
| background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%); |
| } |
|
|
| .top-user-rank.bronze { |
| background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%); |
| } |
|
|
| .top-user-info { |
| flex: 1; |
| min-width: 0; |
| } |
|
|
| .top-user-ip { |
| font-size: 12px; |
| font-weight: 600; |
| color: var(--text-primary); |
| overflow: hidden; |
| text-overflow: ellipsis; |
| white-space: nowrap; |
| } |
|
|
| .top-user-stats { |
| display: flex; |
| gap: 12px; |
| font-size: 10px; |
| color: var(--text-tertiary); |
| } |
|
|
| .top-user-stat { |
| display: flex; |
| align-items: center; |
| gap: 4px; |
| } |
|
|
| .top-user-stat span { |
| color: var(--accent); |
| font-weight: 600; |
| } |
|
|
| |
| .user-type-badge { |
| display: inline-flex; |
| align-items: center; |
| gap: 4px; |
| padding: 2px 8px; |
| border-radius: 12px; |
| font-size: 9px; |
| font-weight: 600; |
| text-transform: uppercase; |
| } |
|
|
| .user-type-badge.new { |
| background: rgba(62, 180, 137, 0.15); |
| color: var(--accent); |
| } |
|
|
| .user-type-badge.returning { |
| background: rgba(102, 126, 234, 0.15); |
| color: #667eea; |
| } |
|
|
| .user-type-badge.power { |
| background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 179, 71, 0.2) 100%); |
| color: #ffd700; |
| } |
|
|
| .user-type-badge.dormant { |
| background: rgba(107, 133, 153, 0.15); |
| color: var(--text-tertiary); |
| } |
|
|
| |
| .user-card-extra { |
| display: flex; |
| flex-wrap: wrap; |
| gap: 4px; |
| margin-top: 6px; |
| } |
|
|
| .user-extra-badge { |
| display: inline-flex; |
| align-items: center; |
| gap: 3px; |
| padding: 2px 6px; |
| background: var(--bg-secondary); |
| border-radius: 4px; |
| font-size: 9px; |
| color: var(--text-tertiary); |
| } |
|
|
| .user-extra-badge.country { |
| background: rgba(59, 130, 246, 0.15); |
| color: #3b82f6; |
| } |
|
|
| .user-extra-badge.screen { |
| background: rgba(139, 92, 246, 0.15); |
| color: #8b5cf6; |
| } |
|
|
| .user-extra-badge.tokens { |
| background: rgba(245, 158, 11, 0.15); |
| color: #f59e0b; |
| } |
|
|
| .user-extra-badge.model { |
| background: rgba(236, 72, 153, 0.15); |
| color: #ec4899; |
| } |
|
|
| .user-extra-badge.error { |
| background: rgba(239, 68, 68, 0.15); |
| color: var(--error); |
| } |
|
|
| .user-extra-badge.city { |
| background: rgba(16, 185, 129, 0.15); |
| color: #10b981; |
| } |
|
|
| .user-extra-badge.theme { |
| background: rgba(99, 102, 241, 0.15); |
| color: #6366f1; |
| } |
|
|
| .user-extra-badge.dnt { |
| background: rgba(239, 68, 68, 0.1); |
| color: #f87171; |
| } |
|
|
| |
| .user-badge.bounce { |
| font-size: 9px; |
| } |
|
|
| .user-badge.bounce.bounced { |
| background: rgba(239, 68, 68, 0.15); |
| color: #f87171; |
| } |
|
|
| .user-badge.bounce.engaged { |
| background: rgba(16, 185, 129, 0.15); |
| color: #10b981; |
| } |
|
|
| |
| .user-activity-mini { |
| margin-top: 8px; |
| padding-top: 8px; |
| border-top: 1px solid var(--border); |
| } |
|
|
| .activity-mini-label { |
| font-size: 9px; |
| color: var(--text-tertiary); |
| display: block; |
| margin-bottom: 4px; |
| } |
|
|
| .activity-mini-chart { |
| display: flex; |
| align-items: flex-end; |
| gap: 1px; |
| height: 20px; |
| background: var(--bg-secondary); |
| border-radius: 4px; |
| padding: 2px; |
| } |
|
|
| .mini-bar { |
| flex: 1; |
| min-width: 2px; |
| background: linear-gradient(to top, var(--accent), rgba(62, 180, 137, 0.4)); |
| border-radius: 1px; |
| transition: all 0.2s ease; |
| } |
|
|
| .mini-bar.peak { |
| background: linear-gradient(to top, #f59e0b, #fbbf24); |
| } |
|
|
| .mini-bar:hover { |
| transform: scaleY(1.2); |
| opacity: 0.9; |
| } |
|
|
| |
| .user-card { |
| transition: all 0.25s var(--ease-out-expo); |
| } |
|
|
| .user-card:hover { |
| transform: translateX(4px); |
| box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); |
| } |
|
|
| .user-card.active { |
| border-left: 3px solid var(--accent); |
| background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-tertiary) 100%); |
| } |
|
|
| |
| .user-badge.response-time { |
| background: rgba(6, 182, 212, 0.15); |
| color: #06b6d4; |
| } |
|
|
| |
| .model-perf-item { |
| display: flex; |
| flex-direction: column; |
| gap: 6px; |
| padding: 10px; |
| background: var(--bg-secondary); |
| border-radius: 8px; |
| margin-bottom: 8px; |
| } |
|
|
| .model-perf-header { |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| } |
|
|
| .model-perf-name { |
| font-size: 12px; |
| font-weight: 600; |
| color: var(--text-primary); |
| } |
|
|
| .model-perf-requests { |
| font-size: 10px; |
| color: var(--text-tertiary); |
| } |
|
|
| .model-perf-stats { |
| display: flex; |
| gap: 12px; |
| font-size: 10px; |
| } |
|
|
| .model-perf-stat { |
| display: flex; |
| flex-direction: column; |
| gap: 2px; |
| } |
|
|
| .model-perf-stat-label { |
| color: var(--text-tertiary); |
| text-transform: uppercase; |
| font-size: 8px; |
| } |
|
|
| .model-perf-stat-value { |
| color: var(--accent); |
| font-weight: 600; |
| } |
|
|
| |
| @media (max-width: 768px) { |
| .realtime-grid { |
| grid-template-columns: repeat(2, 1fr); |
| } |
| |
| .error-grid { |
| grid-template-columns: repeat(2, 1fr); |
| } |
| |
| .engagement-grid { |
| grid-template-columns: 1fr; |
| } |
| |
| .insights-grid { |
| grid-template-columns: 1fr; |
| } |
| } |
|
|
| @media (max-width: 400px) { |
| .realtime-grid { |
| grid-template-columns: 1fr 1fr; |
| } |
| |
| .error-grid { |
| grid-template-columns: 1fr 1fr; |
| } |
| |
| .realtime-card { |
| padding: 10px 6px; |
| } |
| |
| .realtime-value { |
| font-size: 18px; |
| } |
| |
| .realtime-label { |
| font-size: 8px; |
| } |
| } |
|
|
| |
| .user-insights-section { |
| padding: 0 12px 12px; |
| flex-shrink: 0; |
| } |
|
|
| .insights-grid { |
| display: grid; |
| grid-template-columns: 1fr; |
| gap: 8px; |
| } |
|
|
| .insight-card { |
| background: var(--bg-tertiary); |
| border-radius: 10px; |
| padding: 14px 16px; |
| display: flex; |
| align-items: center; |
| gap: 14px; |
| transition: all 0.2s ease; |
| width: 100%; |
| } |
|
|
| .insight-card:hover { |
| background: var(--bg-elevated); |
| transform: translateY(-2px); |
| } |
|
|
| .insight-icon { |
| width: 42px; |
| height: 42px; |
| min-width: 42px; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| background: var(--bg-secondary); |
| border-radius: 10px; |
| color: var(--accent); |
| } |
|
|
| .insight-icon svg { |
| color: var(--accent); |
| } |
|
|
| .insight-content { |
| flex: 1; |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| } |
|
|
| .insight-value { |
| font-size: 24px; |
| font-weight: 700; |
| color: var(--accent); |
| line-height: 1; |
| } |
|
|
| .insight-label { |
| font-size: 11px; |
| color: var(--text-secondary); |
| text-transform: uppercase; |
| letter-spacing: 0.3px; |
| text-align: right; |
| } |
|
|
| |
| .heatmap-section { |
| padding: 0 12px 12px; |
| flex-shrink: 0; |
| } |
|
|
| .weekly-heatmap { |
| background: var(--bg-tertiary); |
| border-radius: 10px; |
| padding: 14px; |
| overflow-x: auto; |
| } |
|
|
| .heatmap-grid { |
| display: grid; |
| grid-template-columns: 40px repeat(24, 1fr); |
| gap: 2px; |
| min-width: 500px; |
| } |
|
|
| .heatmap-row { |
| display: contents; |
| } |
|
|
| .heatmap-day-label { |
| font-size: 10px; |
| color: var(--text-tertiary); |
| display: flex; |
| align-items: center; |
| padding-right: 8px; |
| } |
|
|
| .heatmap-cell { |
| aspect-ratio: 1; |
| border-radius: 3px; |
| background: var(--bg-secondary); |
| transition: all 0.2s ease; |
| cursor: pointer; |
| min-width: 12px; |
| min-height: 12px; |
| } |
|
|
| .heatmap-cell:hover { |
| transform: scale(1.2); |
| z-index: 1; |
| } |
|
|
| .heatmap-cell.level-0 { background: var(--bg-secondary); } |
| .heatmap-cell.level-1 { background: rgba(62, 180, 137, 0.2); } |
| .heatmap-cell.level-2 { background: rgba(62, 180, 137, 0.4); } |
| .heatmap-cell.level-3 { background: rgba(62, 180, 137, 0.6); } |
| .heatmap-cell.level-4 { background: rgba(62, 180, 137, 0.8); } |
| .heatmap-cell.level-5 { background: var(--accent); } |
|
|
| .heatmap-hour-labels { |
| display: grid; |
| grid-template-columns: 40px repeat(24, 1fr); |
| gap: 2px; |
| margin-top: 4px; |
| } |
|
|
| .heatmap-hour-label { |
| font-size: 8px; |
| color: var(--text-tertiary); |
| text-align: center; |
| } |
|
|
| .heatmap-legend { |
| display: flex; |
| align-items: center; |
| justify-content: flex-end; |
| gap: 4px; |
| margin-top: 10px; |
| font-size: 10px; |
| color: var(--text-tertiary); |
| } |
|
|
| .heatmap-legend-cell { |
| width: 12px; |
| height: 12px; |
| border-radius: 2px; |
| } |
|
|
| .heatmap-legend-cell.level-0 { background: var(--bg-secondary); } |
| .heatmap-legend-cell.level-1 { background: rgba(62, 180, 137, 0.2); } |
| .heatmap-legend-cell.level-2 { background: rgba(62, 180, 137, 0.4); } |
| .heatmap-legend-cell.level-3 { background: rgba(62, 180, 137, 0.6); } |
| .heatmap-legend-cell.level-4 { background: rgba(62, 180, 137, 0.8); } |
| .heatmap-legend-cell.level-5 { background: var(--accent); } |
|
|
| |
| .distribution-grid { |
| display: grid; |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); |
| gap: 12px; |
| } |
|
|
| .distribution-card { |
| background: var(--bg-tertiary); |
| border-radius: 10px; |
| padding: 14px; |
| width: 100%; |
| transition: all 0.2s ease; |
| } |
|
|
| .distribution-card:hover { |
| background: var(--bg-elevated); |
| } |
|
|
|
|
| |
| .user-details-panel { |
| width: 320px; |
| min-width: 320px; |
| background: var(--bg-secondary); |
| border-right: 1px solid var(--border); |
| display: flex; |
| flex-direction: column; |
| height: 100%; |
| overflow: hidden; |
| } |
|
|
| .user-details-header { |
| padding: 16px; |
| border-bottom: 1px solid var(--border); |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%); |
| } |
|
|
| .user-details-header h3 { |
| font-size: 14px; |
| font-weight: 600; |
| color: var(--text-primary); |
| margin: 0; |
| } |
|
|
| .btn-close-panel { |
| background: transparent; |
| border: none; |
| color: var(--text-tertiary); |
| cursor: pointer; |
| padding: 4px; |
| border-radius: 4px; |
| transition: all 0.2s ease; |
| } |
|
|
| .btn-close-panel:hover { |
| background: var(--bg-hover); |
| color: var(--text-primary); |
| } |
|
|
| .user-details-content { |
| flex: 1; |
| overflow-y: auto; |
| padding: 16px; |
| } |
|
|
| |
| .user-profile-card { |
| background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-elevated) 100%); |
| border-radius: 12px; |
| padding: 20px; |
| margin-bottom: 16px; |
| border: 1px solid var(--border); |
| } |
|
|
| .user-profile-header { |
| display: flex; |
| align-items: center; |
| gap: 14px; |
| margin-bottom: 16px; |
| } |
|
|
| .user-profile-avatar { |
| width: 56px; |
| height: 56px; |
| border-radius: 12px; |
| background: linear-gradient(135deg, var(--accent) 0%, #667eea 100%); |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| font-size: 20px; |
| font-weight: 700; |
| color: white; |
| flex-shrink: 0; |
| } |
|
|
| .user-profile-info { |
| flex: 1; |
| min-width: 0; |
| } |
|
|
| .user-profile-ip { |
| font-size: 14px; |
| font-weight: 600; |
| color: var(--text-primary); |
| margin-bottom: 4px; |
| word-break: break-all; |
| } |
|
|
| .user-profile-status { |
| display: flex; |
| align-items: center; |
| gap: 6px; |
| font-size: 12px; |
| color: var(--text-secondary); |
| } |
|
|
| .user-profile-status .status-dot { |
| width: 8px; |
| height: 8px; |
| border-radius: 50%; |
| background: var(--text-tertiary); |
| } |
|
|
| .user-profile-status .status-dot.online { |
| background: var(--success); |
| box-shadow: 0 0 8px var(--success); |
| } |
|
|
| |
| .user-stats-grid { |
| display: grid; |
| grid-template-columns: repeat(2, 1fr); |
| gap: 12px; |
| margin-bottom: 16px; |
| } |
|
|
| .user-stat-item { |
| background: var(--bg-secondary); |
| border-radius: 8px; |
| padding: 12px; |
| text-align: center; |
| } |
|
|
| .user-stat-value { |
| font-size: 20px; |
| font-weight: 700; |
| color: var(--accent); |
| line-height: 1.2; |
| } |
|
|
| .user-stat-label { |
| font-size: 10px; |
| color: var(--text-tertiary); |
| text-transform: uppercase; |
| letter-spacing: 0.5px; |
| margin-top: 4px; |
| } |
|
|
| |
| .user-info-section { |
| background: var(--bg-tertiary); |
| border-radius: 10px; |
| padding: 14px; |
| margin-bottom: 12px; |
| } |
|
|
| .user-info-section-title { |
| font-size: 11px; |
| font-weight: 600; |
| color: var(--text-tertiary); |
| text-transform: uppercase; |
| letter-spacing: 0.5px; |
| margin-bottom: 12px; |
| display: flex; |
| align-items: center; |
| gap: 6px; |
| } |
|
|
| .user-info-section-title svg { |
| color: var(--accent); |
| } |
|
|
| .user-info-row { |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| padding: 8px 0; |
| border-bottom: 1px solid var(--border); |
| } |
|
|
| .user-info-row:last-child { |
| border-bottom: none; |
| padding-bottom: 0; |
| } |
|
|
| .user-info-row:first-of-type { |
| padding-top: 0; |
| } |
|
|
| .user-info-label { |
| font-size: 12px; |
| color: var(--text-secondary); |
| } |
|
|
| .user-info-value { |
| font-size: 12px; |
| color: var(--text-primary); |
| font-weight: 500; |
| text-align: right; |
| max-width: 60%; |
| word-break: break-word; |
| } |
|
|
| .user-info-value.highlight { |
| color: var(--accent); |
| } |
|
|
| .user-info-value.error { |
| color: var(--error); |
| } |
|
|
| .user-info-value.warning { |
| color: var(--warning); |
| } |
|
|
| |
| .user-activity-timeline { |
| margin-top: 8px; |
| } |
|
|
| .activity-hour-bar { |
| display: flex; |
| align-items: flex-end; |
| gap: 2px; |
| height: 40px; |
| padding: 4px 0; |
| } |
|
|
| .activity-hour { |
| flex: 1; |
| background: linear-gradient(to top, var(--accent), rgba(62, 180, 137, 0.3)); |
| border-radius: 2px; |
| min-height: 4px; |
| transition: all 0.2s ease; |
| } |
|
|
| .activity-hour:hover { |
| opacity: 0.8; |
| transform: scaleY(1.1); |
| } |
|
|
| .activity-hour.peak { |
| background: linear-gradient(to top, #f59e0b, #fbbf24); |
| } |
|
|
| .activity-hour-labels { |
| display: flex; |
| justify-content: space-between; |
| font-size: 9px; |
| color: var(--text-tertiary); |
| margin-top: 4px; |
| } |
|
|
| |
| .user-tags { |
| display: flex; |
| flex-wrap: wrap; |
| gap: 6px; |
| margin-top: 8px; |
| } |
|
|
| .user-tag { |
| padding: 4px 10px; |
| background: var(--bg-secondary); |
| border-radius: 12px; |
| font-size: 11px; |
| color: var(--text-secondary); |
| border: 1px solid var(--border); |
| } |
|
|
| .user-tag.new { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border-color: rgba(59, 130, 246, 0.3); } |
| .user-tag.returning { background: rgba(62, 180, 137, 0.15); color: var(--accent); border-color: rgba(62, 180, 137, 0.3); } |
| .user-tag.power { background: rgba(168, 85, 247, 0.15); color: #a855f7; border-color: rgba(168, 85, 247, 0.3); } |
| .user-tag.dormant { background: rgba(107, 114, 128, 0.15); color: #6b7280; border-color: rgba(107, 114, 128, 0.3); } |
|
|
| |
| @media (max-width: 1200px) { |
| .user-details-panel { |
| width: 280px; |
| min-width: 280px; |
| } |
| } |
|
|
| @media (max-width: 900px) { |
| .user-details-panel { |
| display: none; |
| } |
| } |
|
|
| |
| |
|
|
| @media (max-width: 768px) { |
| |
| .app { |
| flex-direction: column; |
| } |
| |
| |
| .main-header { |
| height: auto; |
| min-height: 56px; |
| padding: 10px 12px; |
| padding-left: 56px; |
| flex-wrap: wrap; |
| gap: 8px; |
| } |
| |
| .header-left { |
| flex: 1; |
| min-width: 0; |
| gap: 8px; |
| flex-wrap: wrap; |
| } |
| |
| .menu-btn { |
| display: none; |
| } |
| |
| .breadcrumb { |
| font-size: 13px; |
| order: 1; |
| } |
| |
| .breadcrumb-item { |
| padding: 2px 6px; |
| font-size: 13px; |
| } |
| |
| .connection-status { |
| order: 2; |
| padding: 3px 6px; |
| font-size: 10px; |
| } |
| |
| .connection-status span { |
| display: none; |
| } |
| |
| .connection-dot { |
| width: 8px; |
| height: 8px; |
| } |
| |
| .last-updated { |
| order: 3; |
| font-size: 10px; |
| padding: 2px 6px; |
| white-space: nowrap; |
| } |
| |
| .auto-refresh-indicator { |
| order: 4; |
| width: 18px; |
| height: 18px; |
| } |
| |
| .auto-refresh-indicator svg { |
| width: 10px; |
| height: 10px; |
| } |
| |
| |
| .header-actions { |
| display: flex; |
| gap: 4px; |
| flex-shrink: 0; |
| } |
| |
| .header-actions .btn { |
| padding: 8px; |
| min-width: 36px; |
| height: 36px; |
| } |
| |
| .header-actions .btn span { |
| display: none; |
| } |
| |
| .header-actions .btn svg { |
| width: 18px; |
| height: 18px; |
| } |
| |
| |
| .header-actions #helpBtn { |
| display: none; |
| } |
| |
| |
| .sidebar { |
| width: 100%; |
| max-width: 320px; |
| height: 100vh; |
| max-height: 100vh; |
| position: fixed; |
| left: 0; |
| top: 0; |
| bottom: 0; |
| z-index: 1000; |
| transform: translateX(-100%); |
| transition: transform 0.3s var(--ease-out-expo); |
| } |
| |
| .sidebar.open { |
| transform: translateX(0); |
| } |
| |
| |
| .mobile-menu-btn { |
| display: flex !important; |
| position: fixed; |
| top: 10px; |
| left: 10px; |
| z-index: 999; |
| width: 40px; |
| height: 40px; |
| align-items: center; |
| justify-content: center; |
| background: var(--bg-elevated); |
| border: 1px solid var(--border); |
| border-radius: 10px; |
| color: var(--text-primary); |
| cursor: pointer; |
| box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); |
| } |
| |
| .mobile-menu-btn:active { |
| transform: scale(0.95); |
| background: var(--bg-hover); |
| } |
| |
| .mobile-menu-btn svg { |
| width: 22px; |
| height: 22px; |
| } |
| |
| |
| .sidebar-overlay { |
| display: none; |
| position: fixed; |
| inset: 0; |
| background: rgba(0, 0, 0, 0.6); |
| z-index: 999; |
| backdrop-filter: blur(4px); |
| -webkit-backdrop-filter: blur(4px); |
| } |
| |
| .sidebar-overlay.active { |
| display: block; |
| } |
| |
| |
| .panel-close-btn { |
| display: flex !important; |
| position: absolute; |
| top: 12px; |
| right: 12px; |
| width: 36px; |
| height: 36px; |
| align-items: center; |
| justify-content: center; |
| background: var(--bg-tertiary); |
| border: 1px solid var(--border); |
| border-radius: 8px; |
| color: var(--text-secondary); |
| cursor: pointer; |
| z-index: 10; |
| } |
| |
| .panel-close-btn:active { |
| background: var(--bg-hover); |
| } |
| |
| |
| .sidebar-header { |
| padding: 14px 16px; |
| padding-right: 56px; |
| } |
| |
| .logo-section h1 { |
| font-size: 15px; |
| } |
| |
| |
| .main { |
| width: 100%; |
| height: 100vh; |
| overflow: hidden; |
| } |
| |
| .content-area { |
| flex-direction: column; |
| height: calc(100vh - 56px); |
| overflow: hidden; |
| } |
| |
| |
| .chat-view { |
| flex: 1; |
| width: 100%; |
| height: 100%; |
| display: flex; |
| flex-direction: column; |
| } |
| |
| .empty-state { |
| padding: 20px; |
| } |
| |
| .empty-state svg { |
| width: 48px; |
| height: 48px; |
| } |
| |
| .empty-state p { |
| font-size: 13px; |
| } |
| |
| |
| .stats-row { |
| flex-wrap: wrap; |
| padding: 10px 12px; |
| gap: 6px; |
| } |
| |
| .stat-box { |
| flex: 1 1 calc(50% - 6px); |
| min-width: calc(50% - 6px); |
| padding: 10px 8px; |
| } |
| |
| .stat-val { |
| font-size: 18px; |
| } |
| |
| .stat-lbl { |
| font-size: 9px; |
| } |
| |
| |
| .sidebar-tabs { |
| padding: 6px 12px; |
| gap: 4px; |
| overflow-x: auto; |
| -webkit-overflow-scrolling: touch; |
| } |
| |
| .tab-btn { |
| padding: 8px 12px; |
| font-size: 11px; |
| white-space: nowrap; |
| flex-shrink: 0; |
| } |
| |
| .tab-shortcut { |
| display: none; |
| } |
| |
| |
| .search-box { |
| margin: 6px 10px; |
| padding: 10px 12px; |
| } |
| |
| .search-box input { |
| font-size: 16px; |
| } |
| |
| |
| .user-list { |
| padding: 0 6px 6px; |
| } |
| |
| .user-card { |
| padding: 10px; |
| margin-bottom: 4px; |
| } |
| |
| .user-ip { |
| font-size: 12px; |
| } |
| |
| .user-meta { |
| flex-wrap: wrap; |
| gap: 4px; |
| } |
| |
| .user-badge { |
| font-size: 9px; |
| padding: 2px 5px; |
| } |
| |
| |
| .stats-detail { |
| grid-template-columns: 1fr 1fr; |
| gap: 8px; |
| padding: 10px; |
| } |
| |
| .stat-card { |
| padding: 10px; |
| } |
| |
| .stat-card-value { |
| font-size: 18px; |
| } |
| |
| |
| .analytics-grid { |
| grid-template-columns: 1fr; |
| gap: 6px; |
| } |
| |
| .analytics-card { |
| padding: 10px; |
| } |
| |
| .analytics-value { |
| font-size: 16px; |
| } |
| |
| |
| .distribution-section { |
| padding: 10px; |
| } |
| |
| .distribution-card { |
| padding: 10px; |
| } |
| |
| .distribution-bar { |
| width: 60px; |
| } |
| |
| .distribution-name { |
| font-size: 11px; |
| } |
| |
| |
| .daily-activity { |
| padding: 10px; |
| } |
| |
| .daily-chart { |
| padding: 12px; |
| } |
| |
| .daily-bars { |
| height: 60px; |
| gap: 4px; |
| } |
| |
| |
| .chats-panel { |
| position: fixed; |
| left: 0; |
| top: 0; |
| bottom: 0; |
| width: 85%; |
| max-width: 320px; |
| z-index: 998; |
| transform: translateX(-100%); |
| transition: transform 0.3s var(--ease-out-expo); |
| } |
| |
| .chats-panel.open { |
| transform: translateX(0); |
| } |
| |
| .chats-panel .chats-header { |
| padding-right: 56px; |
| } |
| |
| .chats-panel .panel-close-btn { |
| display: flex !important; |
| } |
| |
| .chat-header { |
| padding: 12px; |
| padding-left: 60px; |
| } |
| |
| .chat-header-info h2 { |
| font-size: 14px; |
| } |
| |
| .chat-header-info span { |
| font-size: 11px; |
| } |
| |
| |
| .messages-area { |
| padding: 12px; |
| } |
| |
| .message-wrapper { |
| max-width: 90%; |
| } |
| |
| .message-content { |
| font-size: 14px; |
| padding: 10px 12px; |
| } |
| |
| .message-meta { |
| font-size: 10px; |
| } |
| |
| |
| .user-details-panel { |
| position: fixed; |
| right: 0; |
| top: 0; |
| bottom: 0; |
| width: 100%; |
| max-width: 100%; |
| z-index: 997; |
| transform: translateX(100%); |
| transition: transform 0.3s var(--ease-out-expo); |
| display: block !important; |
| } |
| |
| .user-details-panel.open { |
| transform: translateX(0); |
| } |
| |
| .user-details-header { |
| padding: 12px; |
| } |
| |
| .user-details-content { |
| padding: 12px; |
| } |
| |
| |
| .login-box { |
| padding: 24px 20px; |
| margin: 16px; |
| max-width: calc(100% - 32px); |
| border-radius: 16px; |
| } |
| |
| .login-box h2 { |
| font-size: 22px; |
| } |
| |
| .login-box p { |
| font-size: 13px; |
| } |
| |
| .input-group input { |
| padding: 14px 16px; |
| font-size: 16px; |
| } |
| |
| .btn-primary { |
| padding: 14px; |
| font-size: 14px; |
| } |
| |
| |
| .dropdown-menu { |
| position: fixed; |
| bottom: 0; |
| left: 0; |
| right: 0; |
| top: auto; |
| margin: 0; |
| border-radius: 16px 16px 0 0; |
| max-height: 60vh; |
| overflow-y: auto; |
| transform: translateY(100%); |
| } |
| |
| .dropdown.open .dropdown-menu { |
| transform: translateY(0); |
| } |
| |
| .dropdown-item { |
| padding: 14px 16px; |
| font-size: 14px; |
| } |
| |
| |
| .realtime-grid { |
| grid-template-columns: repeat(2, 1fr); |
| gap: 8px; |
| } |
| |
| .realtime-card { |
| padding: 12px; |
| } |
| |
| .realtime-value { |
| font-size: 20px; |
| } |
| |
| |
| .summary-grid { |
| grid-template-columns: repeat(3, 1fr); |
| gap: 6px; |
| } |
| |
| .summary-item { |
| padding: 6px; |
| } |
| |
| .summary-value { |
| font-size: 14px; |
| } |
| |
| .summary-label { |
| font-size: 8px; |
| } |
| |
| |
| .section-title { |
| padding: 6px 12px; |
| font-size: 10px; |
| } |
| |
| |
| .hourly-chart { |
| padding: 10px; |
| overflow-x: auto; |
| -webkit-overflow-scrolling: touch; |
| } |
| |
| .hourly-bars { |
| min-width: 400px; |
| height: 50px; |
| } |
| |
| |
| .usage-chart { |
| padding: 10px; |
| } |
| |
| .usage-bar { |
| height: 24px; |
| } |
| |
| |
| .health-chart { |
| padding: 10px; |
| } |
| |
| .health-metric-label { |
| font-size: 10px; |
| } |
| |
| .health-metric-value { |
| font-size: 12px; |
| } |
| |
| |
| .server-info-chart { |
| padding: 10px; |
| } |
| |
| .server-info-item { |
| padding: 6px 0; |
| } |
| |
| .server-info-label, |
| .server-info-value { |
| font-size: 11px; |
| } |
| |
| |
| .btn, .tab-btn, .user-card, .chat-item, .dropdown-item { |
| -webkit-tap-highlight-color: transparent; |
| touch-action: manipulation; |
| } |
| |
| |
| .user-list, .chats-list, .messages-area, .tab-content { |
| -webkit-overflow-scrolling: touch; |
| overscroll-behavior: contain; |
| } |
| |
| |
| .sidebar { |
| padding-bottom: env(safe-area-inset-bottom); |
| } |
| |
| .chat-view { |
| padding-bottom: env(safe-area-inset-bottom); |
| } |
| } |
|
|
| |
| @media (max-width: 400px) { |
| .stats-row { |
| padding: 8px; |
| gap: 4px; |
| } |
| |
| .stat-box { |
| padding: 8px 6px; |
| } |
| |
| .stat-val { |
| font-size: 16px; |
| } |
| |
| .stat-lbl { |
| font-size: 8px; |
| } |
| |
| .analytics-grid { |
| gap: 4px; |
| } |
| |
| .analytics-card { |
| padding: 8px; |
| gap: 8px; |
| } |
| |
| .analytics-icon { |
| width: 32px; |
| height: 32px; |
| } |
| |
| .analytics-value { |
| font-size: 14px; |
| } |
| |
| .summary-grid { |
| grid-template-columns: repeat(2, 1fr); |
| } |
| |
| .realtime-grid { |
| grid-template-columns: 1fr 1fr; |
| gap: 6px; |
| } |
| |
| .realtime-card { |
| padding: 10px; |
| } |
| |
| .realtime-value { |
| font-size: 18px; |
| } |
| |
| .distribution-bar { |
| width: 50px; |
| } |
| |
| .distribution-count, |
| .distribution-percent { |
| font-size: 10px; |
| } |
| |
| .user-details-panel { |
| padding: 10px; |
| } |
| |
| .message-content { |
| font-size: 13px; |
| padding: 8px 10px; |
| } |
| } |
|
|
| |
| @media (max-width: 768px) and (orientation: landscape) { |
| .sidebar { |
| width: 50%; |
| max-width: 320px; |
| } |
| |
| .chats-panel { |
| width: 50%; |
| max-width: 280px; |
| } |
| |
| .daily-bars { |
| height: 50px; |
| } |
| |
| .stats-row { |
| flex-wrap: nowrap; |
| } |
| |
| .stat-box { |
| flex: 1; |
| min-width: auto; |
| } |
| } |
|
|
| |
| @media (max-width: 768px) { |
| .desktop-only { |
| display: none !important; |
| } |
| |
| .mobile-only { |
| display: block !important; |
| } |
| } |
|
|
| |
| .mobile-only { |
| display: none; |
| } |
|
|
| .mobile-menu-btn { |
| display: none; |
| } |
|
|
| .panel-close-btn { |
| display: none; |
| } |
|
|
| |
| |
|
|
| @media (max-width: 768px) { |
| |
| .main-header { |
| height: auto !important; |
| min-height: 52px; |
| padding: 8px 12px !important; |
| padding-left: 52px !important; |
| flex-direction: row !important; |
| flex-wrap: wrap !important; |
| gap: 6px !important; |
| align-items: center !important; |
| justify-content: space-between !important; |
| } |
| |
| |
| .header-left { |
| display: flex !important; |
| flex-direction: row !important; |
| align-items: center !important; |
| gap: 6px !important; |
| flex: 1 !important; |
| min-width: 0 !important; |
| overflow: hidden !important; |
| } |
| |
| |
| .breadcrumb { |
| font-size: 12px !important; |
| gap: 4px !important; |
| overflow: hidden !important; |
| flex-shrink: 1 !important; |
| min-width: 0 !important; |
| } |
| |
| .breadcrumb-item { |
| padding: 2px 6px !important; |
| font-size: 12px !important; |
| white-space: nowrap !important; |
| overflow: hidden !important; |
| text-overflow: ellipsis !important; |
| max-width: 100px !important; |
| } |
| |
| .breadcrumb-separator { |
| font-size: 10px !important; |
| margin: 0 2px !important; |
| } |
| |
| |
| .connection-status { |
| padding: 2px 6px !important; |
| font-size: 9px !important; |
| gap: 4px !important; |
| flex-shrink: 0 !important; |
| } |
| |
| .connection-status span { |
| display: none !important; |
| } |
| |
| .connection-dot { |
| width: 6px !important; |
| height: 6px !important; |
| } |
| |
| |
| .last-updated { |
| font-size: 9px !important; |
| padding: 2px 6px !important; |
| white-space: nowrap !important; |
| display: none !important; |
| } |
| |
| |
| .auto-refresh-indicator { |
| width: 16px !important; |
| height: 16px !important; |
| margin-left: 4px !important; |
| } |
| |
| .auto-refresh-indicator svg { |
| width: 10px !important; |
| height: 10px !important; |
| } |
| |
| |
| .header-actions { |
| display: flex !important; |
| gap: 4px !important; |
| flex-shrink: 0 !important; |
| align-items: center !important; |
| } |
| |
| .header-actions .btn { |
| padding: 6px !important; |
| min-width: 32px !important; |
| height: 32px !important; |
| border-radius: 6px !important; |
| } |
| |
| .header-actions .btn span { |
| display: none !important; |
| } |
| |
| .header-actions .btn svg { |
| width: 16px !important; |
| height: 16px !important; |
| } |
| |
| |
| .dropdown-menu { |
| min-width: 160px !important; |
| right: 0 !important; |
| left: auto !important; |
| } |
| |
| .dropdown-item { |
| padding: 10px 12px !important; |
| font-size: 13px !important; |
| } |
| |
| |
| .mobile-menu-btn { |
| display: flex !important; |
| position: fixed !important; |
| top: 8px !important; |
| left: 8px !important; |
| z-index: 1001 !important; |
| width: 36px !important; |
| height: 36px !important; |
| align-items: center !important; |
| justify-content: center !important; |
| background: var(--bg-elevated) !important; |
| border: 1px solid var(--border) !important; |
| border-radius: 8px !important; |
| color: var(--text-primary) !important; |
| cursor: pointer !important; |
| box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important; |
| transition: all 0.2s ease !important; |
| } |
| |
| .mobile-menu-btn:active { |
| transform: scale(0.92) !important; |
| background: var(--bg-hover) !important; |
| } |
| |
| .mobile-menu-btn svg { |
| width: 20px !important; |
| height: 20px !important; |
| } |
| |
| |
| .sidebar { |
| width: 85vw !important; |
| max-width: 320px !important; |
| height: 100vh !important; |
| height: 100dvh !important; |
| position: fixed !important; |
| left: 0 !important; |
| top: 0 !important; |
| bottom: 0 !important; |
| z-index: 1002 !important; |
| transform: translateX(-100%) !important; |
| transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; |
| overflow-y: auto !important; |
| overflow-x: hidden !important; |
| -webkit-overflow-scrolling: touch !important; |
| } |
| |
| .sidebar.open { |
| transform: translateX(0) !important; |
| } |
| |
| |
| .sidebar-overlay { |
| display: none !important; |
| position: fixed !important; |
| inset: 0 !important; |
| background: rgba(0, 0, 0, 0.5) !important; |
| z-index: 1001 !important; |
| backdrop-filter: blur(2px) !important; |
| -webkit-backdrop-filter: blur(2px) !important; |
| } |
| |
| .sidebar-overlay.active { |
| display: block !important; |
| } |
| |
| |
| .panel-close-btn { |
| display: flex !important; |
| position: absolute !important; |
| top: 10px !important; |
| right: 10px !important; |
| width: 32px !important; |
| height: 32px !important; |
| align-items: center !important; |
| justify-content: center !important; |
| background: var(--bg-tertiary) !important; |
| border: 1px solid var(--border) !important; |
| border-radius: 6px !important; |
| color: var(--text-secondary) !important; |
| cursor: pointer !important; |
| z-index: 10 !important; |
| } |
| |
| .panel-close-btn:active { |
| background: var(--bg-hover) !important; |
| } |
| |
| |
| .sidebar-header { |
| padding: 12px 14px !important; |
| padding-right: 50px !important; |
| } |
| |
| .logo-section h1 { |
| font-size: 14px !important; |
| } |
| |
| |
| .stats-row { |
| display: grid !important; |
| grid-template-columns: 1fr 1fr !important; |
| gap: 6px !important; |
| padding: 8px 10px !important; |
| } |
| |
| .stat-box { |
| padding: 10px 8px !important; |
| min-width: 0 !important; |
| } |
| |
| .stat-val { |
| font-size: 18px !important; |
| } |
| |
| .stat-lbl { |
| font-size: 8px !important; |
| } |
| |
| .stat-trend { |
| font-size: 8px !important; |
| } |
| |
| |
| .sidebar-tabs { |
| padding: 6px 10px !important; |
| gap: 4px !important; |
| overflow-x: auto !important; |
| -webkit-overflow-scrolling: touch !important; |
| scrollbar-width: none !important; |
| } |
| |
| .sidebar-tabs::-webkit-scrollbar { |
| display: none !important; |
| } |
| |
| .tab-btn { |
| padding: 8px 10px !important; |
| font-size: 11px !important; |
| white-space: nowrap !important; |
| flex-shrink: 0 !important; |
| } |
| |
| .tab-shortcut { |
| display: none !important; |
| } |
| |
| |
| .search-box { |
| margin: 6px 8px !important; |
| padding: 10px 12px !important; |
| } |
| |
| .search-box input { |
| font-size: 16px !important; |
| } |
| |
| |
| .user-list { |
| padding: 0 6px 6px !important; |
| } |
| |
| .user-card { |
| padding: 10px !important; |
| margin-bottom: 4px !important; |
| } |
| |
| .user-ip { |
| font-size: 12px !important; |
| } |
| |
| .user-meta { |
| flex-wrap: wrap !important; |
| gap: 4px !important; |
| } |
| |
| .user-badge { |
| font-size: 9px !important; |
| padding: 2px 5px !important; |
| } |
| |
| |
| .chat-view { |
| width: 100% !important; |
| height: calc(100vh - 52px) !important; |
| height: calc(100dvh - 52px) !important; |
| } |
| |
| .messages-area { |
| padding: 12px !important; |
| } |
| |
| .message { |
| max-width: 95% !important; |
| } |
| |
| .message-content { |
| font-size: 14px !important; |
| padding: 10px 12px !important; |
| line-height: 1.5 !important; |
| } |
| |
| |
| .empty-state { |
| padding: 24px 16px !important; |
| } |
| |
| .empty-state svg { |
| width: 48px !important; |
| height: 48px !important; |
| } |
| |
| .empty-state p { |
| font-size: 13px !important; |
| } |
| |
| |
| .chat-actions { |
| gap: 6px !important; |
| } |
| |
| .chat-actions .btn { |
| padding: 8px 12px !important; |
| font-size: 12px !important; |
| min-height: 36px !important; |
| } |
| |
| |
| .stats-detail { |
| grid-template-columns: 1fr 1fr !important; |
| gap: 6px !important; |
| padding: 8px !important; |
| } |
| |
| .stat-card { |
| padding: 10px !important; |
| } |
| |
| .stat-card-value { |
| font-size: 16px !important; |
| } |
| |
| .stat-card-title { |
| font-size: 9px !important; |
| } |
| |
| |
| .analytics-grid { |
| grid-template-columns: 1fr !important; |
| gap: 6px !important; |
| } |
| |
| .analytics-card { |
| padding: 10px !important; |
| } |
| |
| .analytics-value { |
| font-size: 16px !important; |
| } |
| |
| |
| .distribution-section { |
| padding: 8px !important; |
| } |
| |
| .distribution-card { |
| padding: 10px !important; |
| } |
| |
| .distribution-bar { |
| width: 50px !important; |
| } |
| |
| .distribution-name { |
| font-size: 11px !important; |
| } |
| |
| |
| .daily-bars { |
| height: 60px !important; |
| } |
| |
| .daily-bar-label { |
| font-size: 8px !important; |
| } |
| |
| |
| .realtime-grid { |
| grid-template-columns: 1fr 1fr !important; |
| gap: 6px !important; |
| } |
| |
| .realtime-card { |
| padding: 10px !important; |
| } |
| |
| .realtime-value { |
| font-size: 16px !important; |
| } |
| |
| .realtime-label { |
| font-size: 9px !important; |
| } |
| } |
|
|
| |
| @media (max-width: 400px) { |
| .main-header { |
| padding: 6px 8px !important; |
| padding-left: 48px !important; |
| min-height: 48px !important; |
| } |
| |
| .mobile-menu-btn { |
| width: 32px !important; |
| height: 32px !important; |
| top: 6px !important; |
| left: 6px !important; |
| } |
| |
| .mobile-menu-btn svg { |
| width: 18px !important; |
| height: 18px !important; |
| } |
| |
| .header-actions .btn { |
| padding: 5px !important; |
| min-width: 28px !important; |
| height: 28px !important; |
| } |
| |
| .header-actions .btn svg { |
| width: 14px !important; |
| height: 14px !important; |
| } |
| |
| .breadcrumb-item { |
| max-width: 70px !important; |
| font-size: 11px !important; |
| } |
| |
| .sidebar { |
| width: 90vw !important; |
| } |
| |
| .stats-row { |
| gap: 4px !important; |
| padding: 6px 8px !important; |
| } |
| |
| .stat-box { |
| padding: 8px 6px !important; |
| } |
| |
| .stat-val { |
| font-size: 16px !important; |
| } |
| |
| .stat-lbl { |
| font-size: 7px !important; |
| } |
| |
| .tab-btn { |
| padding: 6px 8px !important; |
| font-size: 10px !important; |
| } |
| |
| .user-card { |
| padding: 8px !important; |
| } |
| |
| .user-ip { |
| font-size: 11px !important; |
| } |
| |
| .message-content { |
| font-size: 13px !important; |
| padding: 8px 10px !important; |
| } |
| } |
|
|
| |
| @supports (padding: max(0px)) { |
| @media (max-width: 768px) { |
| .main-header { |
| padding-top: max(8px, env(safe-area-inset-top)) !important; |
| } |
| |
| .sidebar { |
| padding-top: max(0px, env(safe-area-inset-top)) !important; |
| padding-bottom: max(0px, env(safe-area-inset-bottom)) !important; |
| } |
| |
| .mobile-menu-btn { |
| top: max(8px, calc(env(safe-area-inset-top) + 4px)) !important; |
| left: max(8px, calc(env(safe-area-inset-left) + 4px)) !important; |
| } |
| } |
| } |
|
|
| |
| @media (hover: none) and (pointer: coarse) { |
| .btn, .tab-btn, .user-card, .dropdown-item { |
| min-height: 44px; |
| } |
| |
| .user-card { |
| min-height: auto; |
| padding: 12px !important; |
| } |
| |
| .dropdown-item { |
| padding: 12px 14px !important; |
| } |
| } |
|
|