diff --git a/src/static/css/app.css b/src/static/css/app.css index d5f4288..827a4c0 100644 --- a/src/static/css/app.css +++ b/src/static/css/app.css @@ -1,38 +1,105 @@ -@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Fira+Sans:wght@300;400;500;600;700&display=swap'); :root { - --accent: #FFC407; - --accent-dark: #e6af00; - --bg: #0f0f0f; - --surface: #1a1a1a; - --surface2: #242424; - --border: #2e2e2e; - --text: #f0f0f0; - --text-muted: #888; - --danger: #ef4444; - --success: #22c55e; + --accent: #6366F1; + --accent-2: #8B5CF6; + --accent-dark: #4f52d9; + --bg: #060714; + --surface: rgba(255,255,255,0.04); + --surface2: rgba(255,255,255,0.07); + --border: rgba(255,255,255,0.10); + --border-hover: rgba(255,255,255,0.18); + --text: #e2e8f0; + --text-muted: rgba(255,255,255,0.40); + --danger: #EF4444; + --success: #10B981; + + --glass-bg: rgba(255,255,255,0.04); + --glass-border: rgba(255,255,255,0.10); + --glass-blur: 20px; } * { box-sizing: border-box; margin: 0; padding: 0; } body { - font-family: 'Montserrat', sans-serif; + font-family: 'Fira Sans', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; + overflow-x: hidden; +} + +/* ── Orb background ──────────────────────────────── */ +.orb { + position: fixed; + border-radius: 50%; + filter: blur(100px); + pointer-events: none; + z-index: 0; +} +.orb-1 { + width: 600px; height: 600px; + top: -150px; left: -100px; + background: radial-gradient(circle, rgba(99,102,241,.35) 0%, transparent 70%); + animation: floatSlow 18s ease-in-out infinite; +} +.orb-2 { + width: 500px; height: 500px; + bottom: -100px; right: -80px; + background: radial-gradient(circle, rgba(139,92,246,.28) 0%, transparent 70%); + animation: floatMed 14s ease-in-out infinite; +} +.orb-3 { + width: 380px; height: 380px; + top: 40%; left: 45%; + background: radial-gradient(circle, rgba(37,99,235,.20) 0%, transparent 70%); + animation: floatFast 10s ease-in-out infinite; +} + +@keyframes floatSlow { + 0%,100% { transform: translate(0,0) scale(1); } + 50% { transform: translate(40px,-60px) scale(1.08); } +} +@keyframes floatMed { + 0%,100% { transform: translate(0,0) scale(1); } + 50% { transform: translate(-50px,40px) scale(1.05); } +} +@keyframes floatFast { + 0%,100% { transform: translate(0,0) scale(1); } + 50% { transform: translate(30px,50px) scale(1.06); } +} +@keyframes pulseSoft { + 0%,100% { opacity: .6; } + 50% { opacity: 1; } +} +@keyframes fadeIn { + from { opacity: 0; transform: translateY(-8px); } + to { opacity: 1; transform: none; } +} +@keyframes pageIn { + from { opacity: 0; transform: translateY(8px); } + to { opacity: 1; transform: translateY(0); } +} +@keyframes shimmer { + 0% { background-position: -200% 0; } + 100% { background-position: 200% 0; } } /* ── Layout ────────────────────────────────────────── */ -#app { display: flex; height: 100vh; overflow: hidden; } +#app { display: flex; height: 100vh; overflow: hidden; position: relative; z-index: 1; } .sidebar { width: 220px; min-width: 220px; - background: var(--surface); + background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%); border-right: 1px solid var(--border); + backdrop-filter: blur(24px); + -webkit-backdrop-filter: blur(24px); display: flex; flex-direction: column; overflow-y: auto; + position: relative; + z-index: 40; } .sidebar-logo { @@ -47,6 +114,7 @@ body { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; + font-family: 'Fira Code', monospace; } .sidebar-logo .accent { color: var(--accent); } @@ -64,21 +132,42 @@ body { align-items: center; gap: 10px; padding: 10px 12px; - border-radius: 8px; + border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-muted); - transition: all .15s; + transition: all .2s; text-decoration: none; - border: none; + border: 1px solid transparent; background: none; width: 100%; text-align: left; + position: relative; +} + +.nav-item:hover { + background: rgba(255,255,255,0.06); + color: rgba(255,255,255,0.85); +} + +.nav-item.active { + background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(139,92,246,0.15) 100%); + color: #fff; + border-color: rgba(99,102,241,0.30); + font-weight: 700; +} + +.nav-item.active::before { + content: ''; + position: absolute; + left: 0; top: 50%; + transform: translateY(-50%); + width: 3px; height: 20px; + background: linear-gradient(180deg, #6366F1, #8B5CF6); + border-radius: 0 3px 3px 0; } -.nav-item:hover { background: var(--surface2); color: var(--text); } -.nav-item.active { background: var(--accent); color: #000; font-weight: 700; } .nav-item .icon { font-size: 16px; width: 20px; text-align: center; } .sidebar-bottom { @@ -90,9 +179,18 @@ body { padding: 10px 12px; font-size: 12px; color: var(--text-muted); + background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%); + border: 1px solid var(--border); + backdrop-filter: blur(20px); + border-radius: 12px; } -.sidebar-user strong { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; } +.sidebar-user strong { + display: block; + color: var(--text); + font-size: 13px; + margin-bottom: 2px; +} .main { flex: 1; @@ -103,13 +201,17 @@ body { .topbar { height: 56px; - background: var(--surface); + background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%); border-bottom: 1px solid var(--border); + backdrop-filter: blur(16px); + -webkit-backdrop-filter: blur(16px); display: flex; align-items: center; padding: 0 24px; gap: 16px; flex-shrink: 0; + position: relative; + z-index: 10; } .topbar h1 { font-size: 16px; font-weight: 700; flex: 1; } @@ -118,6 +220,8 @@ body { flex: 1; overflow-y: auto; padding: 24px; + position: relative; + z-index: 1; } /* ── Date range picker ─────────────────────────────── */ @@ -130,6 +234,7 @@ body { border-radius: 8px; padding: 6px 12px; font-size: 12px; + backdrop-filter: blur(8px); } .date-range input[type="date"] { @@ -155,16 +260,39 @@ body { } .kpi-card { - background: var(--surface); + background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%); border: 1px solid var(--border); - border-radius: 12px; + border-radius: 16px; padding: 20px; - transition: border-color .15s; + backdrop-filter: blur(var(--glass-blur)); + -webkit-backdrop-filter: blur(var(--glass-blur)); + transition: all .25s cubic-bezier(0.16,1,0.3,1); +} + +.kpi-card:hover { + background: linear-gradient(135deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.04) 100%); + border-color: var(--border-hover); + transform: translateY(-2px); + box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,0.06); +} + +.kpi-card .label { + font-size: 11px; + font-weight: 600; + color: var(--text-muted); + text-transform: uppercase; + letter-spacing: .05em; + margin-bottom: 8px; +} + +.kpi-card .value { + font-size: 28px; + font-weight: 800; + color: var(--text); + line-height: 1; + font-family: 'Fira Code', monospace; } -.kpi-card:hover { border-color: var(--accent); } -.kpi-card .label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; } -.kpi-card .value { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; } .kpi-card .value.accent { color: var(--accent); } .kpi-card .sub { font-size: 11px; color: var(--text-muted); margin-top: 6px; } @@ -177,10 +305,17 @@ body { } .chart-card { - background: var(--surface); + background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%); border: 1px solid var(--border); - border-radius: 12px; + border-radius: 16px; padding: 20px; + backdrop-filter: blur(var(--glass-blur)); + -webkit-backdrop-filter: blur(var(--glass-blur)); + transition: all .25s cubic-bezier(0.16,1,0.3,1); +} + +.chart-card:hover { + border-color: var(--border-hover); } .chart-card.wide { grid-column: 1 / -1; } @@ -199,11 +334,13 @@ body { /* ── Tables ────────────────────────────────────────── */ .table-card { - background: var(--surface); + background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%); border: 1px solid var(--border); - border-radius: 12px; + border-radius: 16px; overflow: hidden; margin-bottom: 24px; + backdrop-filter: blur(var(--glass-blur)); + -webkit-backdrop-filter: blur(var(--glass-blur)); } .table-card h3 { @@ -226,7 +363,7 @@ th { color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; - background: var(--surface2); + background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--border); } @@ -237,20 +374,21 @@ td { } tr:last-child td { border-bottom: none; } -tr:hover td { background: var(--surface2); } +tr:hover td { background: rgba(255,255,255,0.04); } td .badge { display: inline-block; padding: 2px 8px; - border-radius: 4px; + border-radius: 20px; font-size: 11px; font-weight: 600; + font-family: 'Fira Code', monospace; } -.badge-accent { background: var(--accent); color: #000; } -.badge-muted { background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); } -.badge-success { background: rgba(34,197,94,.15); color: var(--success); } -.badge-danger { background: rgba(239,68,68,.15); color: var(--danger); } +.badge-accent { background: rgba(99,102,241,.20); color: #a5b4fc; border: 1px solid rgba(99,102,241,.30); } +.badge-muted { background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); } +.badge-success { background: rgba(16,185,129,.15); color: var(--success); } +.badge-danger { background: rgba(239,68,68,.15); color: var(--danger); } /* ── Buttons ───────────────────────────────────────── */ .btn { @@ -258,45 +396,85 @@ td .badge { align-items: center; gap: 6px; padding: 8px 16px; - border-radius: 8px; + border-radius: 10px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; - transition: all .15s; + transition: all .2s; border: none; text-decoration: none; } -.btn-primary { background: var(--accent); color: #000; } -.btn-primary:hover { background: var(--accent-dark); } -.btn-ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--border); } -.btn-ghost:hover { border-color: var(--accent); color: var(--accent); } -.btn-danger { background: rgba(239,68,68,.15); color: var(--danger); border: 1px solid rgba(239,68,68,.3); } -.btn-danger:hover { background: var(--danger); color: #fff; } +.btn-primary { + background: linear-gradient(135deg, #6366F1, #8B5CF6); + color: #fff; + box-shadow: 0 4px 15px rgba(99,102,241,.30); +} +.btn-primary:hover { + background: linear-gradient(135deg, #5558e8, #7c4fea); + box-shadow: 0 6px 20px rgba(99,102,241,.45); + transform: translateY(-1px); +} + +.btn-ghost { + background: var(--surface2); + color: var(--text); + border: 1px solid var(--border); + backdrop-filter: blur(8px); +} +.btn-ghost:hover { + border-color: var(--accent); + color: #a5b4fc; + background: rgba(99,102,241,.10); +} + +.btn-danger { + background: rgba(239,68,68,.15); + color: var(--danger); + border: 1px solid rgba(239,68,68,.3); +} +.btn-danger:hover { + background: var(--danger); + color: #fff; +} + .btn-sm { padding: 5px 10px; font-size: 12px; } /* ── Forms ─────────────────────────────────────────── */ .form-group { margin-bottom: 16px; } -.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; } +.form-group label { + display: block; + font-size: 12px; + font-weight: 600; + color: var(--text-muted); + margin-bottom: 6px; + text-transform: uppercase; + letter-spacing: .04em; +} input[type="text"], input[type="email"], input[type="password"], +input[type="number"], select { width: 100%; - background: var(--surface2); + background: rgba(255,255,255,0.05); border: 1px solid var(--border); - border-radius: 8px; + border-radius: 10px; padding: 10px 14px; color: var(--text); font-family: inherit; font-size: 13px; outline: none; - transition: border-color .15s; + transition: border-color .2s, box-shadow .2s; + backdrop-filter: blur(8px); } -input:focus, select:focus { border-color: var(--accent); } +input:focus, select:focus { + border-color: rgba(99,102,241,.60); + box-shadow: 0 0 0 3px rgba(99,102,241,.15); +} /* ── Login ─────────────────────────────────────────── */ #login-page { @@ -305,14 +483,19 @@ input:focus, select:focus { border-color: var(--accent); } justify-content: center; min-height: 100vh; background: var(--bg); + position: relative; + z-index: 1; } .login-box { - background: var(--surface); + background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%); border: 1px solid var(--border); - border-radius: 16px; + border-radius: 20px; padding: 40px; width: 360px; + backdrop-filter: blur(24px); + -webkit-backdrop-filter: blur(24px); + box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,0.05); } .login-box .logo { @@ -320,6 +503,7 @@ input:focus, select:focus { border-color: var(--accent); } font-weight: 800; text-align: center; margin-bottom: 32px; + font-family: 'Fira Code', monospace; } .login-box .logo .accent { color: var(--accent); } @@ -328,7 +512,7 @@ input:focus, select:focus { border-color: var(--accent); } background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: var(--danger); - border-radius: 8px; + border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; @@ -344,8 +528,6 @@ input:focus, select:focus { border-color: var(--accent); } animation: fadeIn .3s ease; } -@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } } - .feed-dot { width: 8px; height: 8px; @@ -353,17 +535,19 @@ input:focus, select:focus { border-color: var(--accent); } background: var(--accent); margin-top: 5px; flex-shrink: 0; + box-shadow: 0 0 8px rgba(99,102,241,.6); } .feed-content { flex: 1; } .feed-content .project { font-size: 13px; font-weight: 600; } .feed-content .summary { font-size: 12px; color: var(--text-muted); margin-top: 2px; white-space: pre-wrap; } -.feed-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; } +.feed-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; font-family: 'Fira Code', monospace; } /* ── Modals ────────────────────────────────────────── */ .modal-overlay { position: fixed; inset: 0; - background: rgba(0,0,0,.7); + background: rgba(0,0,0,.65); + backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; display: none; @@ -372,14 +556,17 @@ input:focus, select:focus { border-color: var(--accent); } .modal-overlay.open { display: flex; } .modal { - background: var(--surface); + background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%); border: 1px solid var(--border); - border-radius: 16px; + border-radius: 20px; padding: 32px; width: 460px; max-width: 95vw; max-height: 90vh; overflow-y: auto; + backdrop-filter: blur(24px); + -webkit-backdrop-filter: blur(24px); + box-shadow: 0 30px 80px rgba(0,0,0,.6); } .modal h2 { font-size: 16px; font-weight: 700; margin-bottom: 24px; } @@ -393,18 +580,22 @@ input:focus, select:focus { border-color: var(--accent); } transition: background .3s; } -.sse-dot.connected { background: var(--success); box-shadow: 0 0 6px var(--success); } +.sse-dot.connected { + background: var(--success); + box-shadow: 0 0 8px var(--success); + animation: pulseSoft 3s ease-in-out infinite; +} .sse-dot.error { background: var(--danger); } -/* ── Code block (for hook setup) ──────────────────── */ +/* ── Code block ────────────────────────────────────── */ .code-block { - background: #0a0a0a; + background: rgba(0,0,0,.40); border: 1px solid var(--border); - border-radius: 8px; + border-radius: 10px; padding: 14px 16px; - font-family: 'Courier New', monospace; + font-family: 'Fira Code', monospace; font-size: 12px; - color: #aef; + color: #a5b4fc; white-space: pre-wrap; word-break: break-all; position: relative; @@ -421,28 +612,77 @@ input:focus, select:focus { border-color: var(--accent); } color: var(--text-muted); cursor: pointer; font-family: inherit; + transition: all .15s; } -.copy-btn:hover { color: var(--accent); border-color: var(--accent); } +.copy-btn:hover { + color: #a5b4fc; + border-color: rgba(99,102,241,.50); + background: rgba(99,102,241,.10); +} + +/* ── Progress bar ──────────────────────────────────── */ +.progress-bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; } +.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; transition: width .3s; } + +/* ── Shimmer skeleton ──────────────────────────────── */ +.shimmer-line { + background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.04) 75%); + background-size: 200% 100%; + animation: shimmer 2s linear infinite; + border-radius: 4px; +} /* ── Scrollbar ─────────────────────────────────────── */ -::-webkit-scrollbar { width: 6px; height: 6px; } +::-webkit-scrollbar { width: 4px; height: 4px; } ::-webkit-scrollbar-track { background: transparent; } -::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } -::-webkit-scrollbar-thumb:hover { background: var(--text-muted); } +::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; } +::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); } /* ── Misc ──────────────────────────────────────────── */ .loading { text-align: center; padding: 40px; color: var(--text-muted); font-size: 14px; } .empty { text-align: center; padding: 60px 20px; color: var(--text-muted); } .empty .big { font-size: 40px; margin-bottom: 12px; } -.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; } -.section-header h2 { font-size: 15px; font-weight: 700; } -.tag { display: inline-block; background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; font-size: 11px; color: var(--text-muted); margin: 2px; } -/* ── Progress bar ──────────────────────────────────── */ -.progress-bar { height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; } -.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .3s; } +.section-header { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 16px; +} +.section-header h2 { font-size: 15px; font-weight: 700; } + +.tag { + display: inline-block; + background: rgba(99,102,241,.12); + border: 1px solid rgba(99,102,241,.25); + border-radius: 20px; + padding: 2px 9px; + font-size: 11px; + color: #a5b4fc; + margin: 2px; + font-family: 'Fira Code', monospace; +} /* ── Page transitions ──────────────────────────────── */ -.page { animation: pageIn .2s ease; } -@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } } +.page { animation: pageIn .25s cubic-bezier(0.16,1,0.3,1); } + +/* ── Tooltip ───────────────────────────────────────── */ +[data-tip] { position: relative; } +[data-tip]:hover::after { + content: attr(data-tip); + position: absolute; + bottom: calc(100% + 8px); + left: 50%; + transform: translateX(-50%); + background: rgba(15,15,30,0.95); + border: 1px solid var(--border); + color: var(--text); + font-size: 11px; + white-space: nowrap; + padding: 4px 10px; + border-radius: 6px; + pointer-events: none; + z-index: 100; + backdrop-filter: blur(8px); +} diff --git a/src/static/index.html b/src/static/index.html index e10338a..d30a0c2 100644 --- a/src/static/index.html +++ b/src/static/index.html @@ -4,15 +4,18 @@