AvisSense / frontend /src /styles.css
Stive-G
feat: migrate frontend to React for Vercel
36f0b9e
Raw
History Blame Contribute Delete
7.68 kB
:root {
color-scheme: dark;
--bg: #0f1117;
--panel: rgba(17, 21, 32, 0.78);
--panel-strong: #151b29;
--line: rgba(255, 255, 255, 0.08);
--text: #f4efe6;
--muted: #b2ac9e;
--gold: #ffbf47;
--gold-deep: #ff8e2b;
--red: #ff5f4d;
--green: #79e39c;
--shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
* {
box-sizing: border-box;
}
html,
body,
#root {
min-height: 100%;
}
body {
margin: 0;
font-family: "IBM Plex Sans", sans-serif;
color: var(--text);
background:
radial-gradient(circle at top left, rgba(255, 191, 71, 0.16), transparent 28%),
radial-gradient(circle at top right, rgba(255, 95, 77, 0.12), transparent 24%),
linear-gradient(180deg, #11151f 0%, #090b11 100%);
}
button,
textarea,
a {
font: inherit;
}
.page-shell {
position: relative;
overflow: hidden;
min-height: 100vh;
}
.ambient {
position: absolute;
border-radius: 999px;
filter: blur(40px);
opacity: 0.7;
pointer-events: none;
}
.ambient-left {
top: 10%;
left: -8rem;
width: 18rem;
height: 18rem;
background: rgba(255, 191, 71, 0.18);
}
.ambient-right {
right: -10rem;
bottom: 12%;
width: 24rem;
height: 24rem;
background: rgba(255, 95, 77, 0.16);
}
.layout {
position: relative;
z-index: 1;
width: min(1220px, calc(100% - 2rem));
margin: 0 auto;
padding: 3rem 0 4rem;
}
.hero-panel,
.analysis-card,
.result-card {
border: 1px solid var(--line);
background: var(--panel);
backdrop-filter: blur(20px);
box-shadow: var(--shadow);
}
.hero-panel {
border-radius: 28px;
padding: 2rem;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.4rem 0.8rem;
border-radius: 999px;
color: var(--gold);
background: rgba(255, 191, 71, 0.08);
letter-spacing: 0.08em;
font-size: 0.76rem;
text-transform: uppercase;
}
.hero-panel h1 {
margin: 1rem 0 0.75rem;
max-width: 11ch;
font-family: "Space Grotesk", sans-serif;
font-size: clamp(2.6rem, 6vw, 5.5rem);
line-height: 0.95;
}
.hero-panel h1 span {
color: var(--gold);
}
.hero-copy {
max-width: 54rem;
color: var(--muted);
font-size: 1.05rem;
line-height: 1.65;
}
.status-strip {
display: flex;
flex-wrap: wrap;
gap: 1rem;
align-items: center;
justify-content: space-between;
margin-top: 1.4rem;
}
.status-strip a {
color: var(--text);
text-decoration: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.status-pill {
display: inline-flex;
align-items: center;
min-height: 2.75rem;
padding: 0.7rem 1rem;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.08);
color: var(--muted);
background: rgba(255, 255, 255, 0.03);
}
.status-pill.ready {
color: #dfffe9;
background: rgba(121, 227, 156, 0.12);
}
.status-pill.pending {
color: #ffe9ba;
background: rgba(255, 191, 71, 0.12);
}
.example-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1rem;
margin-top: 1.6rem;
}
.example-card {
padding: 1.1rem;
border: 1px solid var(--line);
border-radius: 18px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
var(--panel-strong);
color: var(--text);
text-align: left;
cursor: pointer;
transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.example-card:hover {
transform: translateY(-3px);
border-color: rgba(255, 191, 71, 0.35);
}
.workbench {
display: grid;
grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
gap: 1.25rem;
margin-top: 1.25rem;
}
.analysis-card,
.result-card {
border-radius: 24px;
padding: 1.5rem;
}
.card-topline,
.result-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.card-topline {
color: var(--muted);
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.analysis-card label {
display: block;
margin: 1rem 0 0.7rem;
font-family: "Space Grotesk", sans-serif;
font-size: 1.1rem;
}
.analysis-card textarea {
width: 100%;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
background: rgba(8, 10, 16, 0.84);
color: var(--text);
padding: 1rem 1.05rem;
resize: vertical;
min-height: 13rem;
transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.analysis-card textarea:focus {
outline: none;
border-color: rgba(255, 191, 71, 0.5);
box-shadow: 0 0 0 4px rgba(255, 191, 71, 0.08);
}
.analysis-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-top: 1rem;
color: var(--muted);
}
.primary-button {
border: 0;
border-radius: 999px;
background: linear-gradient(135deg, var(--gold), var(--gold-deep));
color: #21170b;
font-weight: 700;
padding: 0.9rem 1.4rem;
cursor: pointer;
transition: transform 180ms ease, filter 180ms ease;
}
.primary-button:hover {
transform: translateY(-2px);
filter: saturate(1.06);
}
.primary-button:disabled {
cursor: wait;
opacity: 0.75;
}
.result-title {
font-family: "Space Grotesk", sans-serif;
font-size: 1.1rem;
}
.result-badge {
display: inline-flex;
align-items: center;
min-height: 2.25rem;
padding: 0.4rem 0.9rem;
border-radius: 999px;
border: 1px solid transparent;
font-size: 0.92rem;
font-weight: 700;
}
.result-badge.positive {
color: #dfffe9;
border-color: rgba(121, 227, 156, 0.25);
background: rgba(121, 227, 156, 0.12);
}
.result-badge.negative {
color: #ffe1dc;
border-color: rgba(255, 95, 77, 0.25);
background: rgba(255, 95, 77, 0.12);
}
.result-badge.idle {
color: var(--muted);
border-color: var(--line);
background: rgba(255, 255, 255, 0.03);
}
.error-box,
.placeholder-copy {
margin-top: 1.15rem;
border-radius: 18px;
padding: 1rem 1.1rem;
line-height: 1.6;
}
.error-box {
color: #ffe1dc;
background: rgba(255, 95, 77, 0.1);
border: 1px solid rgba(255, 95, 77, 0.18);
}
.placeholder-copy {
color: var(--muted);
background: rgba(255, 255, 255, 0.03);
}
.meter-block {
margin-top: 1.3rem;
}
.meter-labels {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.55rem;
color: var(--muted);
}
.meter-labels strong {
color: var(--text);
font-family: "Space Grotesk", sans-serif;
font-size: 1.05rem;
}
.meter-track {
overflow: hidden;
height: 1rem;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
}
.meter-fill {
height: 100%;
border-radius: inherit;
transition: width 260ms ease;
}
.meter-fill.positive {
background: linear-gradient(90deg, #6adf8f, #b9ffcb);
}
.meter-fill.negative {
background: linear-gradient(90deg, #ff6b59, #ffb0a7);
}
.probability-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.75rem;
margin-top: 1.2rem;
}
.probability-grid article {
padding: 0.95rem;
border-radius: 18px;
border: 1px solid var(--line);
background: rgba(255, 255, 255, 0.03);
}
.probability-grid span {
display: block;
color: var(--muted);
font-size: 0.9rem;
}
.probability-grid strong {
display: block;
margin-top: 0.4rem;
font-family: "Space Grotesk", sans-serif;
font-size: 1.4rem;
}
@media (max-width: 960px) {
.example-grid,
.workbench,
.probability-grid {
grid-template-columns: 1fr;
}
.analysis-actions,
.status-strip {
align-items: flex-start;
flex-direction: column;
}
}
@media (max-width: 640px) {
.layout {
width: min(100% - 1rem, 100%);
padding: 1rem 0 2rem;
}
.hero-panel,
.analysis-card,
.result-card {
border-radius: 22px;
padding: 1.15rem;
}
.hero-panel h1 {
max-width: none;
}
}