harshapitla/github-actions-analytics
0
1/* src/App.css - improved theme + spacing for better chart readability */2:root{3 --bg:#f6f8fb;4 --card:#ffffff;5 --muted:#6b7280;6 --accent:#2563eb;7 --accent-2:#10a4b6;8 --accent-3:#7c3aed;9 --accent-4:#ff7a1a;10 --shadow:0 8px 28px rgba(16,24,40,0.06);11 --radius:12px;12 --gap:20px;13 --maxwidth:1240px;14 --gridline: rgba(15,23,42,0.06);15}16 17*{box-sizing:border-box}18html,body,#root{height:100%;margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial;background:var(--bg);color:#0f172a}19 20.app-container{max-width:var(--maxwidth);margin:22px auto;padding:20px}21 22/* Header */23.app-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}24.app-title{font-size:22px;margin:0}25.app-sub{font-size:13px;color:var(--muted);margin-top:6px}26.app-meta-line{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin-top:8px}27.app-icon{display:inline-flex;vertical-align:middle;color:inherit}28.header-actions{display:flex;align-items:center;gap:12px}29.meta-toggle{background:none;border:0;color:var(--accent);cursor:pointer;font-size:13px;padding:6px}30 31/* dataset meta */32.meta-fields{margin:12px 0;padding:12px;border-radius:10px;background:linear-gradient(180deg,#fbfdff,#fff);box-shadow:var(--shadow);font-size:13px;color:#0b1220}33.meta-fields-title{font-weight:600;margin-bottom:8px}34.meta-fields-grid{display:flex;flex-wrap:wrap;gap:8px}35.meta-field-chip{background:#eef2ff;padding:4px 10px;border-radius:999px;font-size:12px;color:#364152}36.meta-field-chip.muted{background:#f1f5f9;color:#94a3b8}37 38/* snapshot KPI */39.kpi-row{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}40.kpi-card{background:var(--card);padding:14px;border-radius:10px;box-shadow:var(--shadow);min-width:140px;flex:0 0 auto}41.kpi-value{font-weight:700;font-size:20px}42.kpi-label{font-size:12px;color:var(--muted);margin-top:6px}43 44/* sections and cards */45.section-heading{margin-top:18px;margin-bottom:8px;font-size:18px}46.row{margin-bottom:18px}47.card{48 background:var(--card);49 border-radius:12px;50 padding:18px;51 box-shadow:var(--shadow);52 overflow:visible;53 border:1px solid #e2e8f0;54}55.chart-card{position:relative;overflow:hidden}56.card .chart-area{min-height:360px}57.chart-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}58.chart-card-title{margin:0;font-size:18px}59.chart-card-subtitle{margin:4px 0 0;font-size:13px;color:#64748b}60.chart-card-actions{display:flex;gap:8px}61.chart-card-body{position:relative}62.chart-card-footer{margin-top:12px;font-size:12px;color:#475569}63 64/* rechart tweaks: reduce gridline intensity and tooltip z-index */65.recharts-tooltip-wrapper{pointer-events:none;z-index:200}66.recharts-cartesian-grid line{stroke:var(--gridline)!important}67 68/* helper */69.small{font-size:13px;color:var(--muted)}70.sample-table{width:100%;border-collapse:collapse}71.sample-table th,.sample-table td{padding:6px;border-bottom:1px solid #f3f4f6;font-size:13px}72 73/* responsive */74@media (max-width:1000px){75 .app-header{flex-direction:column;align-items:flex-start}76 .kpi-row{flex-direction:column}77}78 79/* Better button styling */80.meta-toggle {81 background: var(--card);82 border: 1px solid #d0d7e2;83 color: var(--accent);84 cursor: pointer;85 font-size: 13px;86 padding: 6px 12px;87 border-radius: 8px;88 transition: 0.15s ease;89}90 91.meta-toggle:hover {92 background: #eff6ff;93}94 95/* Meta fields card */96.meta-fields {97 margin: 16px 0;98 padding: 16px;99 border-radius: 12px;100 background: var(--card);101 box-shadow: var(--shadow);102 font-size: 13px;103 color: #1f2937;104}105 106/* Snapshot KPI section */107.kpi-row{display:flex;gap:20px;flex-wrap:wrap;margin:18px 0 10px}108.kpi-card{109 flex:1;110 min-width:180px;111 background:linear-gradient(180deg,#f8fafc,#fff);112 border-radius:16px;113 padding:16px 18px 18px;114 border:1px solid #e2e8f0;115 display:flex;116 flex-direction:column;117 gap:8px;118 box-shadow:0 12px 30px rgba(15,23,42,0.08);119 transition:box-shadow .2s ease, transform .2s ease;120}121.kpi-card:hover{122 box-shadow:0 16px 34px rgba(15,23,42,0.12);123 transform:translateY(-2px);124}125.kpi-header{126 display:flex;127 align-items:center;128 gap:8px;129 font-size:13px;130 color:#52607a;131 font-weight:600;132}133.kpi-header .app-icon{134 width:20px;135 height:20px;136}137.kpi-value{138 font-size:28px;139 font-weight:700;140 color:#0d172a;141}142.kpi-desc{143 font-size:12px;144 color:#7b869c;145 line-height:1.35;146 margin-top:2px;147}148.kpi-meter{149 height:6px;150 width:100%;151 border-radius:999px;152 background:#e2e8f0;153 overflow:hidden;154 margin-top:4px;155}156.kpi-meter-fill{157 height:100%;158 background:linear-gradient(90deg,#ff8a05,#f43f5e);159}160.kpi-meter-note{161 font-size:11px;162 color:#6b7280;163 margin-top:4px;164}165 166/* Highlight cards */167.highlight-grid{168 display:flex;169 flex-wrap:wrap;170 gap:24px;171 margin-top:28px;172}173.highlight-card{174 flex:1 1 260px;175 border:1px solid #dbe4f0;176 border-radius:16px;177 padding:20px 24px 22px;178 background:#ffffff;179 box-shadow:0 14px 28px rgba(15,23,42,0.08);180 position:relative;181 border-top:3px solid var(--accent-bar,#dbeafe);182}183.highlight-card-header{184 display:flex;185 gap:8px;186 font-weight:600;187 margin-bottom:2px;188}189.highlight-card-header .app-icon{color:#475569}190.highlight-card-subtitle{191 font-size:11px;192 color:#9aa5bb;193 margin:6px 0 20px 0;194}195.highlight-item{196 display:flex;197 flex-direction:column;198 font-size:14px;199 padding:12px 0;200 border-bottom:1px solid rgba(15,23,42,0.05);201 gap:8px;202}203.highlight-item:last-child{border-bottom:0;padding-bottom:0}204.highlight-item-top{display:flex;align-items:center;gap:10px;line-height:1.25;flex-wrap:nowrap}205.highlight-item-rank{width:18px;color:#94a3b8;font-weight:600;text-align:right}206.highlight-item-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}207.highlight-item-value{font-weight:600}208.highlight-item-bar{209 width:100%;210 height:6px;211 border-radius:999px;212 background:#edf1fb;213 overflow:hidden;214}215.highlight-item-bar-fill{216 height:100%;217 border-radius:999px;218 background:var(--accent-bar,#dbeafe);219 display:block;220 transition:width .2s ease;221}222.highlight-card-footer{margin-top:16px;display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--accent);text-decoration:none}223.highlight-card-footer::after{content:"→"}224 225.snapshot-footnote{margin-top:18px;padding:14px 18px;background:#f8fafc;border-radius:16px;color:#475569;font-size:13px;border:1px dashed #d4dae5;display:flex;gap:12px}226.snapshot-footnote-icon{color:#475569}227 228.quick-insights{margin-top:22px;padding:18px 20px;border:1px solid #c7ddff;border-radius:14px;background:linear-gradient(135deg,#f0f6ff,#fff);box-shadow:0 12px 28px rgba(37,99,235,0.07)}229.quick-insights h4{margin:0 0 12px;font-size:15px}230.insight-groups{display:flex;gap:32px;align-items:stretch}231.insight-group{flex:1;display:flex;flex-direction:column;gap:12px;padding:0 24px;border-left:1px solid #dbe4ff}232.insight-group:first-child{border-left:none;padding-left:0}233.insight-group.is-last{padding-right:0}234.insight-item{display:flex;gap:10px;align-items:center;font-size:14px;color:#1e293b;line-height:1.45;transition:background .15s;border-radius:8px;padding:2px 6px}235.insight-item:hover{background:rgba(148,163,184,0.15)}236.insight-icon{font-size:16px;line-height:1;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;color:#4b5563}237 238.status-banner{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:12px;border:1px solid transparent;margin:16px 0}239.status-banner-icon{color:inherit}240.status-banner-content{flex:1}241.status-banner-title{font-weight:600;margin-bottom:2px}242.status-banner-message{font-size:13px;color:#475569}243.status-banner-action{background:#fff;border:1px solid #c7cfe1;border-radius:8px;padding:6px 12px;font-size:13px;cursor:pointer;color:#0f172a}244.status-banner-info{background:#eef2ff;border-color:#c7d2fe;color:#1e1b4b}245.status-banner-warning{background:#fff7ed;border-color:#fdba74;color:#7c2d12}246.status-banner-error{background:#fef2f2;border-color:#fecaca;color:#7f1d1d}247 248@media (max-width:900px){249 .insight-groups{flex-direction:column;gap:18px}250 .insight-group{border-left:none;padding:0;border-bottom:1px solid #e3e7f5;padding-bottom:14px}251 .insight-group.is-last{border-bottom:none;padding-bottom:0}252 .ppc-header{flex-direction:column}253 .ppc-actions{align-items:stretch}254 .ppc-controls{align-items:flex-start}255 .coverage-card{width:100%}256}257 258.loading-block{display:flex;align-items:center;justify-content:center;padding:40px;font-size:15px;color:#475569;gap:12px}259.loading-title{font-weight:600;font-size:15px;margin-bottom:4px}260.loading-desc{font-size:13px;color:#6b7280}261.link-button{background:none;border:none;color:var(--accent);cursor:pointer;padding:0;margin-top:8px;font-size:13px;display:inline-flex;align-items:center;gap:6px}262.spinner{width:28px;height:28px;border:3px solid #dbe1ea;border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}263@keyframes spin{to{transform:rotate(360deg)}}264 265/* AIMarketShift simplified */266.ams-simple-header{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:flex-start;margin-bottom:8px}267.ams-simple-header h3{margin:0}268.ams-simple-header p{margin:4px 0 0;font-size:13px;color:#4c5667;max-width:520px}269.ams-simple-badges{display:flex;gap:10px;flex-wrap:wrap}270.ams-simple-footer{display:flex;gap:18px;align-items:center;margin-top:10px;font-size:12px;color:#475569}271.dot{display:inline-flex;width:10px;height:10px;border-radius:999px}272.dot-blue{background:#2563eb}273.dot-gray{background:#cfd5e2}274.tooltip-card{background:#fff;border:1px solid #e4e8f5;border-radius:10px;padding:10px 14px;font-size:12px;color:#0f172a;box-shadow:0 12px 24px rgba(15,23,42,0.15)}275.tooltip-title{font-weight:600;margin-bottom:4px}276.ams-simple-header{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:flex-start;margin-bottom:8px}277.ams-simple-header h3{margin:0}278.ams-simple-header p{margin:4px 0 0;font-size:13px;color:#4c5667;max-width:520px}279.ams-simple-badges{display:flex;gap:10px;flex-wrap:wrap}280.insight-badge{padding:10px 14px;border-radius:10px;border:1px solid rgba(37,99,235,0.2);background:rgba(37,99,235,0.08);font-size:12px;color:#0f172a;display:flex;flex-direction:column;gap:4px;min-width:120px;cursor:pointer;transition:box-shadow .15s ease, transform .15s ease}281.insight-badge:hover{box-shadow:0 10px 20px rgba(15,23,42,0.08);transform:translateY(-1px)}282.insight-badge-active{box-shadow:0 12px 24px rgba(37,99,235,0.25)}283.insight-badge-positive{border-color:rgba(16,185,129,0.3);background:rgba(16,185,129,0.08)}284.insight-badge-warning{border-color:rgba(248,113,113,0.3);background:rgba(248,113,113,0.1)}285.insight-badge-neutral{border-color:rgba(148,163,184,0.3);background:rgba(148,163,184,0.1)}286.ams-filter-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:12px;margin:6px 0;color:#475569}287.pill-button{border:1px solid #d6dae5;background:#fff;border-radius:999px;padding:4px 12px;font-size:12px;cursor:pointer;transition:background .15s ease,color .15s ease}288.pill-button.is-active{background:#2563eb;color:#fff;border-color:#2563eb}289.filter-group{display:flex;gap:6px;align-items:center;flex-wrap:wrap}290.filter-label{font-weight:600;color:#4b5563}291.ams-simple-footer{display:flex;gap:18px;align-items:center;margin-top:10px;font-size:12px;color:#475569}292.dot{display:inline-flex;width:10px;height:10px;border-radius:999px}293.dot-blue{background:#2563eb}294.dot-gray{background:#cfd5e2}295.feature-controls{display:flex;gap:18px;flex-wrap:wrap;justify-content:flex-end}296.ppc-header{display:flex;gap:24px;justify-content:space-between;flex-wrap:wrap;align-items:flex-start;margin-bottom:12px}297.ppc-copy h3{margin:0}298.ppc-copy p{margin:4px 0 0;font-size:13px;color:#4c5667;max-width:520px}299.ppc-actions{display:flex;gap:16px;flex-wrap:wrap;align-items:flex-end;justify-content:flex-end}300.ppc-controls{display:flex;flex-direction:column;gap:10px;align-items:flex-end}301.coverage-card{padding:14px 16px;border-radius:16px;border:1px solid rgba(59,130,246,0.3);background:rgba(59,130,246,0.08);min-width:220px;box-shadow:0 10px 24px rgba(59,130,246,0.12);font-size:12px;color:#1f2933;display:flex;flex-direction:column;gap:4px}302.coverage-card strong{font-size:18px}303.coverage-card span{font-size:11px;color:#6b7280}304 