fintechdarkpatterns / extension /sidepanel.css
yujisium's picture
Fintech Dark Patterns NLP Detector - full project upload
5752a28 verified
Raw
History Blame Contribute Delete
4.45 kB
:root {
color-scheme: dark;
font-family: "Segoe UI", sans-serif;
background: #07111f;
color: #e8eef7;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-width: 320px;
min-height: 100vh;
background:
radial-gradient(circle at 90% 5%, rgba(14, 165, 233, 0.16), transparent 34%),
linear-gradient(160deg, #07111f 0%, #0d1929 58%, #101a24 100%);
}
.hero {
padding: 28px 22px 20px;
border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.eyebrow {
color: #38bdf8;
font: 700 10px/1.2 ui-monospace, monospace;
letter-spacing: 0.18em;
text-transform: uppercase;
}
h1 {
margin: 8px 0 6px;
font-family: Georgia, serif;
font-size: 29px;
line-height: 1;
}
.hero p,
.disclaimer {
color: #94a3b8;
font-size: 12px;
line-height: 1.55;
}
main {
padding: 18px;
}
.actions,
.settings-actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 9px;
}
button {
border: 0;
border-radius: 10px;
cursor: pointer;
font-weight: 750;
min-height: 40px;
}
button:disabled {
cursor: wait;
opacity: 0.55;
}
.primary {
color: #03111a;
background: linear-gradient(135deg, #38bdf8, #2dd4bf);
}
.secondary {
color: #dbeafe;
background: #172438;
border: 1px solid rgba(148, 163, 184, 0.2);
}
.ghost {
color: #7dd3fc;
background: transparent;
border: 1px solid rgba(56, 189, 248, 0.28);
}
.status {
margin: 13px 0;
padding: 11px 12px;
border-radius: 10px;
color: #cbd5e1;
background: rgba(15, 23, 42, 0.72);
border: 1px solid rgba(148, 163, 184, 0.16);
font-size: 12px;
line-height: 1.45;
}
.status[data-tone="success"] {
color: #a7f3d0;
border-color: rgba(45, 212, 191, 0.35);
}
.status[data-tone="error"] {
color: #fecdd3;
border-color: rgba(244, 63, 94, 0.42);
}
.summary {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
margin-bottom: 18px;
}
.summary div {
padding: 12px 8px;
text-align: center;
background: rgba(15, 23, 42, 0.58);
border: 1px solid rgba(148, 163, 184, 0.14);
border-radius: 11px;
}
.summary strong,
.summary span {
display: block;
}
.summary strong {
color: #f8fafc;
font: 800 19px/1 ui-monospace, monospace;
}
.summary span {
margin-top: 6px;
color: #64748b;
font-size: 9px;
text-transform: uppercase;
}
.section-heading {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
}
h2 {
margin: 0 0 10px;
font: 700 12px/1 ui-monospace, monospace;
letter-spacing: 0.12em;
text-transform: uppercase;
}
#page-label {
color: #64748b;
font-size: 10px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.results {
display: grid;
gap: 10px;
}
.empty {
color: #64748b;
padding: 22px 12px;
text-align: center;
border: 1px dashed rgba(148, 163, 184, 0.2);
border-radius: 12px;
font-size: 12px;
}
.finding {
padding: 13px;
background: rgba(15, 23, 42, 0.74);
border: 1px solid rgba(148, 163, 184, 0.15);
border-left: 3px solid #f97316;
border-radius: 11px;
}
.finding[data-severity="critical"] {
border-left-color: #e11d48;
}
.finding[data-severity="medium"] {
border-left-color: #eab308;
}
.finding[data-severity="low"] {
border-left-color: #0ea5e9;
}
.finding-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.finding-type {
font-size: 12px;
font-weight: 800;
}
.score {
color: #7dd3fc;
font: 700 11px/1 ui-monospace, monospace;
}
.evidence {
margin: 9px 0;
color: #d7e0ea;
font-size: 12px;
line-height: 1.45;
}
.phrases {
color: #94a3b8;
font-size: 10px;
}
.locate {
width: 100%;
min-height: 32px;
margin-top: 10px;
color: #bae6fd;
background: rgba(14, 165, 233, 0.09);
border: 1px solid rgba(14, 165, 233, 0.22);
}
.settings {
margin-top: 20px;
padding: 13px;
background: rgba(15, 23, 42, 0.55);
border: 1px solid rgba(148, 163, 184, 0.14);
border-radius: 12px;
}
.settings summary {
cursor: pointer;
color: #cbd5e1;
font-size: 12px;
font-weight: 700;
}
.settings label {
display: grid;
gap: 6px;
margin-top: 12px;
color: #94a3b8;
font-size: 10px;
text-transform: uppercase;
}
input {
width: 100%;
border: 1px solid rgba(148, 163, 184, 0.2);
border-radius: 8px;
padding: 9px 10px;
color: #e2e8f0;
background: #081321;
outline: none;
}
.settings-actions {
margin-top: 12px;
}
.disclaimer {
margin: 16px 4px 4px;
font-size: 10px;
}