fraud-detection-xai / styles.css
MrUtakata's picture
Deploy static fraud detection app
cdfca42 verified
Raw
History Blame Contribute Delete
6.77 kB
:root {
--paper: #f5f1e8;
--paper-strong: #fffaf0;
--ink: #17212f;
--muted: #667085;
--line: #d6cec1;
--blue: #255c99;
--teal: #087e8b;
--green: #198754;
--amber: #a15c00;
--red: #b42318;
--shadow: 0 18px 50px rgba(23, 33, 47, 0.13);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
color: var(--ink);
background:
radial-gradient(circle at top left, rgba(8, 126, 139, 0.18), transparent 34rem),
linear-gradient(135deg, #f5f1e8 0%, #eef4f0 44%, #f8ead8 100%);
font-family: "Aptos", "Segoe UI", sans-serif;
}
.shell {
width: min(1220px, calc(100% - 32px));
margin: 0 auto;
}
.hero {
display: grid;
grid-template-columns: minmax(0, 1fr) 340px;
gap: 24px;
padding: 42px 0 20px;
align-items: stretch;
}
.hero h1 {
max-width: 790px;
margin: 0;
font-family: Georgia, "Times New Roman", serif;
font-size: 56px;
line-height: 1;
letter-spacing: 0;
}
.hero-copy {
max-width: 760px;
color: #344054;
font-size: 18px;
line-height: 1.6;
}
.hero-panel,
.panel {
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(255, 250, 240, 0.86);
box-shadow: var(--shadow);
}
.hero-panel {
display: flex;
flex-direction: column;
justify-content: center;
gap: 10px;
padding: 24px;
}
.hero-panel strong {
font-size: 28px;
}
.panel-kicker,
.eyebrow {
margin: 0 0 8px;
color: var(--teal);
font-size: 12px;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.nav {
position: sticky;
top: 0;
z-index: 10;
display: flex;
gap: 8px;
padding: 10px 0;
backdrop-filter: blur(16px);
}
.nav button,
.primary-action,
.secondary-action {
border: 1px solid var(--line);
border-radius: 8px;
padding: 11px 14px;
color: var(--ink);
background: rgba(255, 250, 240, 0.72);
font: inherit;
font-weight: 700;
cursor: pointer;
}
.nav button.active,
.primary-action {
border-color: var(--blue);
color: #fff;
background: var(--blue);
}
.secondary-action {
background: #ffffff;
}
.metric-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 12px;
margin: 12px 0 18px;
}
.metric-grid.compact {
margin-top: 18px;
}
.metric-card {
border: 1px solid var(--line);
border-radius: 8px;
padding: 14px;
background: rgba(255, 250, 240, 0.9);
box-shadow: 0 12px 28px rgba(23, 33, 47, 0.08);
}
.metric-label {
color: var(--muted);
font-size: 12px;
font-weight: 800;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.metric-value {
margin-top: 4px;
font-size: 26px;
font-weight: 850;
}
.metric-note {
margin-top: 4px;
color: var(--muted);
font-size: 12px;
}
.page {
display: none;
padding-bottom: 42px;
}
.page.active {
display: block;
}
.workspace {
display: grid;
grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
gap: 18px;
align-items: start;
}
.panel {
padding: 20px;
}
.section-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 16px;
}
h2,
h3 {
margin: 0 0 12px;
letter-spacing: 0;
}
h2 {
font-size: 26px;
}
h3 {
font-size: 17px;
}
.body-copy,
.panel p,
.hero-panel span {
color: #475467;
line-height: 1.58;
}
select,
input {
width: 100%;
border: 1px solid #c7c0b5;
border-radius: 8px;
padding: 10px 11px;
color: var(--ink);
background: #fffefa;
font: inherit;
}
.input-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
}
.input-field label {
display: block;
margin-bottom: 5px;
color: var(--muted);
font-size: 12px;
font-weight: 800;
}
.primary-action {
width: 100%;
margin-top: 16px;
font-size: 16px;
}
.result-panel {
display: grid;
gap: 18px;
}
.risk-card {
border-radius: 8px;
padding: 18px;
background: #ffffff;
border: 1px solid var(--line);
}
.risk-card strong {
display: block;
margin: 6px 0;
font-size: 42px;
line-height: 1;
}
.risk-card.alert strong,
.risk-card.alert .risk-status {
color: var(--red);
}
.risk-card.review strong,
.risk-card.review .risk-status {
color: var(--amber);
}
.risk-card.safe strong,
.risk-card.safe .risk-status {
color: var(--green);
}
.risk-bar {
height: 12px;
overflow: hidden;
border-radius: 999px;
background: #e9e2d9;
}
.risk-fill {
height: 100%;
border-radius: inherit;
}
.muted-card {
color: var(--muted);
}
.table-wrap {
max-width: 100%;
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
overflow: hidden;
border: 1px solid var(--line);
border-radius: 8px;
background: #fffefa;
}
th,
td {
padding: 10px 11px;
border-bottom: 1px solid #e7ded2;
text-align: left;
font-size: 13px;
vertical-align: top;
}
th {
color: #344054;
background: #f0eadf;
font-size: 12px;
text-transform: uppercase;
}
tr:last-child td {
border-bottom: 0;
}
.file-input {
margin-top: 8px;
}
.download-link {
display: inline-flex;
margin-top: 14px;
border-radius: 8px;
padding: 10px 13px;
color: #fff;
background: var(--teal);
text-decoration: none;
font-weight: 800;
}
.hidden {
display: none;
}
.two-col {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
align-items: start;
}
.gallery {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
margin-top: 18px;
}
.gallery figure {
margin: 0;
border: 1px solid var(--line);
border-radius: 8px;
padding: 10px;
background: #fffefa;
}
.gallery img {
display: block;
width: 100%;
height: auto;
border-radius: 6px;
}
.gallery figcaption {
margin-top: 8px;
color: var(--muted);
font-size: 13px;
font-weight: 700;
}
.report-box {
overflow-x: auto;
border: 1px solid var(--line);
border-radius: 8px;
padding: 14px;
background: #17212f;
color: #f7f3ea;
}
.story-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
}
.callout {
margin-top: 18px;
border-left: 4px solid var(--teal);
padding: 14px 16px;
background: #eef8f6;
color: #344054;
}
@media (max-width: 920px) {
.hero,
.workspace,
.two-col,
.story-grid {
grid-template-columns: 1fr;
}
.hero h1 {
font-size: 42px;
}
.nav {
overflow-x: auto;
}
.nav button {
white-space: nowrap;
}
.input-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gallery {
grid-template-columns: 1fr;
}
}
@media (max-width: 560px) {
.shell {
width: min(100% - 20px, 1220px);
}
.hero {
padding-top: 26px;
}
.hero h1 {
font-size: 34px;
}
.section-head {
align-items: stretch;
flex-direction: column;
}
.input-grid {
grid-template-columns: 1fr;
}
}