File size: 8,192 Bytes
6e88079 293982d 6e88079 293982d 6e88079 7779f0a 6e88079 293982d 6e88079 293982d 6e88079 293982d 6e88079 293982d 6e88079 7779f0a 6e88079 7779f0a 293982d 6e88079 7779f0a 6e88079 293982d 6e88079 293982d 6e88079 7779f0a 6e88079 293982d 6e88079 293982d 7779f0a 6e88079 293982d 6e88079 7779f0a 293982d 6e88079 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; }
:root {
--bg: #0e1116;
--bg-2: #0b0d12;
--card: rgba(18, 20, 28, 0.75);
--stroke: rgba(255,255,255,0.06);
--text: #e9ecf1;
--muted: #a7b0bf;
--accent: #8b7bff;
--accent-2: #49d0b0;
--good: #36c76f;
--warn: #ffb020;
--bad: #ff5a7a;
--shadow: 0 10px 30px rgba(0,0,0,0.35);
--radius: 14px;
--ring-track: rgba(255,255,255,0.09);
--ring-size: 100px;
}
html, body { height: 100%; }
body {
margin: 0;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
color: var(--text);
background: var(--bg);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* ---------- Background Gradient ---------- */
.bg {
position: fixed; inset: -20vmax;
background:
radial-gradient(60vmax 60vmax at 10% 0%, rgba(139,123,255,0.20), transparent 60%),
radial-gradient(60vmax 60vmax at 90% 100%, rgba(84,226,190,0.18), transparent 60%),
radial-gradient(40vmax 40vmax at 50% 30%, rgba(255,255,255,0.06), transparent 60%);
filter: blur(30px);
z-index: -1;
}
/* ---------- Top Nav ---------- */
.nav {
position: sticky; top: 0; backdrop-filter: blur(10px);
background: linear-gradient(to bottom, rgba(10,12,18,0.9), rgba(10,12,18,0.5));
border-bottom: 1px solid var(--stroke);
display: flex; align-items: center; justify-content: space-between;
padding: 14px 18px; z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; }
.brand .muted { color: var(--muted); font-weight: 600; }
.brand .dot { opacity: 0.6; }
.actions { display: inline-flex; align-items: center; gap: 8px; }
.icon-btn {
appearance: none; border: 1px solid var(--stroke); background: rgba(255,255,255,0.03);
color: var(--text); padding: 8px; border-radius: 10px; cursor: pointer; box-shadow: var(--shadow);
}
.icon-btn:hover { background: rgba(255,255,255,0.06); }
/* ---------- Chips / Badges ---------- */
.chip {
appearance: none; border: 1px solid var(--stroke); background: rgba(255,255,255,0.04);
color: var(--text); padding: 8px 10px; border-radius: 999px; font-weight: 600; cursor: default;
}
.chip.ghost { background: rgba(255,255,255,0.02); cursor: pointer; }
.chip.ghost:hover { background: rgba(255,255,255,0.06); }
.badge {
display: inline-flex; align-items: center; gap: 6px;
background: linear-gradient(135deg, rgba(139,123,255,0.2), rgba(84,226,190,0.15));
border: 1px solid var(--stroke);
padding: 4px 10px; border-radius: 999px; font-weight: 700;
}
/* ---------- Layout ---------- */
.container { max-width: 1000px; margin: 32px auto; padding: 0 16px; display: grid; gap: 16px; }
.card {
background: var(--card);
border: 1px solid var(--stroke);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 16px;
}
.controls .row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 14px; align-items: end; }
.controls .group .title { font-weight: 700; font-size: 13px; letter-spacing: 0.2px; color: var(--muted); margin-bottom: 8px; }
.spacer { flex: 1; }
.input .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.end { justify-content: space-between; }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.muted { color: var(--muted); }
/* ---------- Segmented Control ---------- */
.seg {
display: inline-grid; grid-auto-flow: column; gap: 6px; background: rgba(255,255,255,0.04);
border: 1px solid var(--stroke); padding: 6px; border-radius: 12px;
}
.seg input[type="radio"] { display: none; }
.seg label {
cursor: pointer; padding: 8px 12px; border-radius: 8px; font-weight: 600; color: var(--muted);
}
.seg input:checked + label {
color: var(--text);
background: linear-gradient(135deg, rgba(139,123,255,0.20), rgba(73,208,176,0.15));
box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
/* ---------- Buttons ---------- */
.buttons { display: inline-flex; align-items: center; gap: 8px; }
.btn {
appearance: none; border: 1px solid var(--stroke); background: rgba(255,255,255,0.03); color: var(--text);
font-weight: 700; padding: 10px 14px; border-radius: 12px; cursor: pointer; transition: transform 120ms ease;
}
.btn:hover { background: rgba(255,255,255,0.06); }
.btn:active { transform: translateY(1px); }
.btn.primary {
background: linear-gradient(135deg, #8b7bff, #49d0b0);
border: none; color: #0b0d12; text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}
.btn.ghost { background: rgba(255,255,255,0.02); }
.btn.subtle { background: rgba(255,255,255,0.02); }
.btn.tiny { padding: 6px 10px; font-size: 12px; }
.spinner {
--s: 12px;
display: inline-block; width: var(--s); height: var(--s); margin-right: 8px; vertical-align: -2px;
border: 2px solid rgba(255,255,255,0.25); border-top-color: var(--text); border-radius: 50%;
animation: spin 780ms linear infinite; opacity: 0; transform: scale(0.9);
}
.btn.loading .spinner, .chip.loading .spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(1turn); } }
/* ---------- Textarea ---------- */
textarea {
width: 100%; background: rgba(9, 11, 16, 0.6); border: 1px solid var(--stroke); color: var(--text);
border-radius: 12px; padding: 12px 14px; resize: vertical; min-height: 130px; outline: none;
transition: box-shadow 160ms ease, border-color 160ms ease;
}
textarea:focus { border-color: rgba(139,123,255,0.55); box-shadow: 0 0 0 4px rgba(139,123,255,0.15); }
/* ---------- Results ---------- */
.result-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.ring {
width: var(--ring-size); height: var(--ring-size);
background: conic-gradient(var(--accent) var(--pct, 0%), var(--ring-track) 0%);
border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--stroke);
}
.ring-core {
width: calc(var(--ring-size) - 22px); height: calc(var(--ring-size) - 22px);
background: rgba(8,10,15,0.85); border-radius: 50%; display: grid; place-items: center;
border: 1px solid var(--stroke);
}
.ring-core span { font-weight: 800; letter-spacing: 0.5px; }
.pred-main { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.bars { display: grid; gap: 10px; margin-top: 6px; }
.bar {
display: grid; gap: 6px; background: rgba(255,255,255,0.03); border: 1px solid var(--stroke);
border-radius: 12px; padding: 10px 12px;
}
.bar-head { display: flex; justify-content: space-between; align-items: baseline; }
.bar-line { height: 12px; background: rgba(255,255,255,0.06); border-radius: 8px; overflow: hidden; }
.bar-fill {
height: 100%; width: 0; background: linear-gradient(90deg, #8b7bff, #49d0b0);
transition: width 260ms ease;
}
.raw { margin-top: 10px; }
.raw summary { cursor: pointer; }
.raw .raw-actions { display: flex; justify-content: flex-end; margin: 8px 0; }
pre#raw {
margin: 0; padding: 12px; font-size: 12px; background: #0f1117; border: 1px solid var(--stroke);
color: #e1e5ec; border-radius: 12px; overflow: auto; max-height: 320px;
}
/* ---------- Disclaimer & Footer ---------- */
.disclaimer h3 { margin: 0 0 6px; }
.foot { color: var(--muted); text-align: center; padding: 20px; }
.foot a { color: var(--text); text-decoration: underline dotted; }
.sr-only {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
/* ---------- Responsive ---------- */
@media (max-width: 860px) {
.controls .row { grid-template-columns: 1fr; }
}
/* ---------- Light theme ---------- */
@media (prefers-color-scheme: light) {
html[data-theme="auto"] body { background: #f6f7fb; color: #12131a; }
}
html[data-theme="light"] {
--bg: #f6f7fb;
--bg-2: #ffffff;
--card: rgba(255,255,255,0.85);
--stroke: rgba(0,0,0,0.08);
--text: #12131a;
--muted: #57607a;
--ring-track: rgba(0,0,0,0.06);
--shadow: 0 10px 30px rgba(32,35,43,0.1);
}
/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
.spinner { animation: none; }
.bar-fill { transition: none; }
}
|