MADTOOL / plotextract /static /styles.css
github-actions[bot]
Sync backend files from GitHub 66452e1
62ba81f
Raw History Blame Contribute Delete
16.5 kB
:root {
color-scheme: dark;
--bg: #0b0d12;
--panel: rgba(17, 20, 30, 0.92);
--panel-strong: #121826;
--border: rgba(120, 134, 170, 0.25);
--text: #f8fafc;
--muted: #b0b8c5;
--accent: #7c3aed;
--accent-2: #06b6d4;
--accent-3: #f97316;
--success: #10b981;
--error: #ef4444;
--shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
--radius: 18px;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 50%),
radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.16), transparent 45%),
linear-gradient(160deg, #0b0d12 0%, #0c121f 60%, #0a0f1a 100%);
color: var(--text);
font-family: "Electrolize", "Segoe UI", sans-serif;
}
.glow {
position: fixed;
inset: -20% 10% auto auto;
width: 420px;
height: 420px;
border-radius: 50%;
background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%);
filter: blur(5px);
z-index: -1;
}
.shell {
max-width: 1150px;
margin: 0 auto;
padding: 48px 24px 64px;
display: flex;
flex-direction: column;
gap: 32px;
}
.hero {
display: grid;
grid-template-columns: minmax(260px, 1fr) auto;
gap: 24px;
align-items: start;
}
.hero-actions {
display: flex;
justify-content: flex-end;
}
.info-button {
min-width: 122px;
}
.brand {
display: inline-flex;
align-items: center;
gap: 12px;
font-size: 1.7rem;
font-weight: 600;
margin-bottom: 12px;
font-family: "Electrolize", "Space Grotesk", sans-serif;
}
.brand img {
width: 60px;
height: 60px;
filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.95))
drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
}
.subhead {
color: var(--muted);
line-height: 1.6;
margin: 0;
}
.hero-card {
background: linear-gradient(140deg, rgba(124, 58, 237, 0.16), rgba(15, 23, 42, 0.85));
border-radius: var(--radius);
padding: 24px;
border: 1px solid rgba(124, 58, 237, 0.35);
box-shadow: var(--shadow);
display: grid;
gap: 16px;
}
.hero-stat {
display: flex;
align-items: center;
gap: 16px;
}
.hero-stat span {
display: inline-flex;
width: 36px;
height: 36px;
border-radius: 12px;
background: rgba(6, 182, 212, 0.18);
align-items: center;
justify-content: center;
font-weight: 600;
color: var(--accent-2);
}
.hero-stat p {
margin: 0;
color: var(--muted);
}
.panel {
background: var(--panel);
border-radius: var(--radius);
padding: 28px;
border: 1px solid var(--border);
box-shadow: var(--shadow);
backdrop-filter: blur(12px);
}
.panel-head h2 {
margin: 0 0 8px;
}
.panel-head p {
margin: 0;
color: var(--muted);
}
.panel-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 24px;
margin-top: 24px;
}
.panel-grid.inputs-row {
margin-top: 20px;
grid-template-columns: repeat(2, minmax(240px, 1fr));
}
.stack.compact .hint {
margin-bottom: 6px;
}
.panel-grid.layout-row {
align-items: start;
}
.panel-grid.layout-row.manual-mode {
grid-template-columns: minmax(320px, 1040px);
justify-content: center;
}
.stack {
display: grid;
gap: 12px;
}
.manual-pane {
width: 100%;
}
.preview-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.label {
font-weight: 600;
}
.input-row {
display: flex;
gap: 12px;
}
input[type="password"],
input[type="text"],
input[type="number"] {
flex: 1;
padding: 12px 14px;
border-radius: 12px;
border: 1px solid var(--border);
background: rgba(15, 23, 42, 0.7);
color: var(--text);
font-size: 0.95rem;
}
select {
flex: 1;
padding: 12px 14px;
border-radius: 12px;
border: 1px solid var(--border);
background: rgba(15, 23, 42, 0.7);
color: var(--text);
font-size: 0.95rem;
appearance: none;
}
input[type="file"] {
position: absolute;
inset: 0;
opacity: 0;
cursor: pointer;
}
.dropzone {
position: relative;
border: 1px dashed rgba(124, 58, 237, 0.7);
border-radius: 16px;
padding: 18px;
min-height: 140px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(15, 23, 42, 0.4);
transition: border 0.2s ease, transform 0.2s ease;
}
.dropzone.tall {
min-height: 200px;
}
.dropzone.dragging {
border-color: var(--accent-2);
transform: translateY(-2px);
}
.dropzone-content {
text-align: center;
pointer-events: none;
}
.dropzone-content p {
margin: 0 0 8px;
color: var(--text);
}
.small {
font-size: 0.85rem;
color: var(--muted);
}
.preview {
min-height: 120px;
background: rgba(15, 23, 42, 0.55);
border-radius: 14px;
border: 1px solid var(--border);
display: grid;
place-items: center;
padding: 20px;
overflow: hidden;
}
.preview img {
width: 100%;
height: 100%;
object-fit: contain;
}
.preview.hidden {
display: none;
}
.preview.interactive {
display: block;
padding: 12px;
min-height: 520px;
}
.preview.static-replot img {
display: block;
max-height: 520px;
}
.preview.manual-preview {
position: relative;
display: block;
padding: 0;
min-height: 620px;
height: min(74vh, 780px);
background: rgba(2, 6, 23, 0.86);
touch-action: none;
}
.preview.manual-preview img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
pointer-events: none;
user-select: none;
}
.manual-overlay-svg {
position: absolute;
inset: 0;
z-index: 2;
width: 100%;
height: 100%;
cursor: crosshair;
touch-action: none;
}
.manual-overlay-svg.editing {
cursor: default;
}
.manual-overlay-svg.magnifying {
cursor: none;
}
.manual-magnifier {
position: absolute;
z-index: 3;
width: 150px;
height: 150px;
display: none;
border: 2px solid rgba(15, 23, 42, 0.88);
border-radius: 50%;
background-color: #fff;
background-repeat: no-repeat;
box-shadow: 0 18px 42px rgba(2, 6, 23, 0.42), 0 0 0 3px rgba(248, 250, 252, 0.9);
overflow: hidden;
pointer-events: none;
}
.manual-magnifier.visible {
display: block;
}
.manual-magnifier::before,
.manual-magnifier::after {
content: "";
position: absolute;
left: 50%;
top: 50%;
background: rgba(239, 68, 68, 0.92);
transform: translate(-50%, -50%);
z-index: 2;
}
.manual-magnifier::before {
width: 1px;
height: 64%;
}
.manual-magnifier::after {
width: 64%;
height: 1px;
}
.manual-magnifier-plot {
position: absolute;
inset: 0;
z-index: 1;
width: 100%;
height: 100%;
pointer-events: none;
}
.manual-magnifier-replot-layer {
opacity: 0.68;
}
.plot-editor {
width: 100%;
display: grid;
gap: 10px;
}
.plot-toolbar {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.plot-toolbar select {
max-width: 320px;
min-width: 180px;
}
.plot-tool {
min-width: 40px;
height: 38px;
padding: 8px 12px;
display: inline-flex;
align-items: center;
justify-content: center;
text-decoration: none;
font-weight: 600;
}
.plot-tool.text {
min-width: 58px;
width: auto;
}
.plot-tool.active {
border-color: var(--accent-2);
color: var(--accent-2);
background: rgba(6, 182, 212, 0.12);
}
.small-action {
min-height: 34px;
padding: 8px 12px;
border-radius: 10px;
font-size: 0.82rem;
white-space: nowrap;
}
.manual-plot-toolbar {
justify-content: center;
}
.plot-tool:disabled {
opacity: 0.45;
cursor: default;
}
.plot-remove-hint {
color: var(--muted);
font-size: 0.82rem;
line-height: 1.2;
}
.plot-editor-svg {
width: 100%;
min-height: 390px;
aspect-ratio: 900 / 620;
border-radius: 12px;
border: 1px solid rgba(148, 163, 184, 0.24);
background: rgba(2, 6, 23, 0.72);
touch-action: none;
}
.plot-bg {
}
.plot-area {
}
.plot-grid {
stroke-width: 1;
}
.plot-axis {
stroke-width: 2;
}
.plot-line {
fill: none;
stroke-width: 3;
stroke-linecap: round;
stroke-linejoin: round;
opacity: 0.92;
}
.plot-point {
cursor: grab;
}
.plot-point:active {
cursor: grabbing;
}
.plot-marker-shape {
stroke-width: 2;
}
.plot-edit-handle {
opacity: 0.42;
}
.plot-point.selected .plot-marker-shape {
stroke: #f8fafc;
stroke-width: 3;
}
.plot-tick,
.plot-title,
.plot-label,
.plot-legend {
font-family: "Electrolize", "Segoe UI", sans-serif;
}
.plot-tick {
font-size: 14px;
}
.plot-label {
font-size: 17px;
}
.plot-title {
font-size: 20px;
font-weight: 600;
}
.plot-legend {
font-size: 14px;
}
.manual-replot-layer {
opacity: 1;
}
.manual-original-dim {
fill: rgba(255, 255, 255, 0.68);
pointer-events: none;
}
.manual-image-bounds {
fill: transparent;
stroke: rgba(248, 250, 252, 0.55);
stroke-dasharray: 8 7;
stroke-width: 1.4;
pointer-events: none;
}
.manual-calibration-marker {
pointer-events: none;
}
.manual-calibration-point {
fill: #f8fafc;
stroke: var(--accent-2);
stroke-width: 3;
}
.manual-calibration-label-bg {
fill: rgba(15, 23, 42, 0.86);
stroke: rgba(248, 250, 252, 0.42);
stroke-width: 1;
}
.manual-calibration-label,
.manual-step-label {
fill: #f8fafc;
font-family: "Electrolize", "Segoe UI", sans-serif;
font-size: 14px;
font-weight: 600;
paint-order: stroke;
stroke: rgba(2, 6, 23, 0.9);
stroke-linejoin: round;
stroke-width: 4;
}
.manual-step-label {
pointer-events: none;
}
.hidden {
display: none !important;
}
.hint {
margin: 0;
color: var(--muted);
font-size: 0.85rem;
text-align: center;
}
.hint.left {
text-align: left;
}
.manual-modal-backdrop {
position: fixed;
inset: 0;
z-index: 30;
display: grid;
place-items: center;
padding: 24px;
background: rgba(2, 6, 23, 0.76);
backdrop-filter: blur(8px);
}
.manual-modal {
width: min(480px, 100%);
padding: 22px;
border: 1px solid rgba(148, 163, 184, 0.28);
border-radius: 16px;
background: rgba(15, 23, 42, 0.96);
box-shadow: var(--shadow);
}
.manual-modal h3 {
margin: 0 0 10px;
}
.manual-modal p {
margin: 0 0 16px;
color: var(--muted);
line-height: 1.5;
}
.manual-value-popover {
position: absolute;
z-index: 5;
width: min(220px, calc(100% - 20px));
padding: 12px;
border: 1px solid rgba(148, 163, 184, 0.32);
border-radius: 12px;
background: rgba(15, 23, 42, 0.97);
box-shadow: 0 16px 34px rgba(2, 6, 23, 0.42);
}
.manual-value-popover h3 {
margin: 0 0 8px;
font-size: 0.95rem;
}
.manual-value-popover .calibration-field {
gap: 5px;
}
.manual-value-popover input {
padding: 9px 10px;
border-radius: 9px;
font-size: 0.9rem;
}
.manual-value-popover .manual-modal-actions {
margin-top: 10px;
}
.manual-value-popover .ghost,
.manual-value-popover .primary {
padding: 8px 10px;
border-radius: 9px;
}
.info-modal-backdrop {
position: fixed;
inset: 0;
z-index: 40;
display: grid;
place-items: center;
padding: 24px;
background: rgba(2, 6, 23, 0.78);
backdrop-filter: blur(8px);
}
.info-modal {
width: min(680px, 100%);
max-height: min(760px, 88vh);
overflow: auto;
padding: 24px;
border: 1px solid rgba(148, 163, 184, 0.28);
border-radius: 16px;
background: rgba(15, 23, 42, 0.97);
box-shadow: var(--shadow);
}
.info-modal-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 16px;
}
.info-modal h2,
.info-modal h3 {
margin: 0;
}
.info-modal h3 {
font-size: 1rem;
}
.info-modal-body {
display: grid;
gap: 18px;
}
.info-modal p,
.info-modal li {
color: var(--muted);
line-height: 1.55;
}
.info-modal p {
margin: 8px 0 0;
}
.info-modal ol {
margin: 10px 0 0;
padding-left: 22px;
}
.manual-modal-actions {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 18px;
}
.calibration-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.calibration-field {
display: grid;
gap: 6px;
color: var(--muted);
font-size: 0.84rem;
}
.calibration-field input {
width: 100%;
}
.manual-modal-error {
min-height: 18px;
margin: 12px 0 0 !important;
color: var(--error) !important;
}
.actions {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 20px;
gap: 16px;
flex-wrap: wrap;
}
.progress {
margin-top: 12px;
height: 8px;
border-radius: 999px;
background: rgba(148, 163, 184, 0.15);
overflow: hidden;
position: relative;
display: none;
}
.progress.active {
display: block;
}
.progress-fill {
position: absolute;
inset: 0;
background: linear-gradient(120deg, var(--accent), var(--accent-2));
border-radius: inherit;
transition: width 0.25s ease;
overflow: hidden;
}
.progress-fill::after {
content: "";
position: absolute;
inset: -40% -60%;
background: linear-gradient(
120deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.35) 45%,
rgba(255, 255, 255, 0) 90%
);
animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
0% {
transform: translateX(-30%);
}
100% {
transform: translateX(30%);
}
}
.primary {
background: linear-gradient(120deg, var(--accent), var(--accent-2));
border: none;
color: #fff;
font-weight: 600;
padding: 12px 26px;
border-radius: 12px;
cursor: pointer;
box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.primary.small-action {
min-height: 36px;
padding: 9px 14px;
border-radius: 10px;
font-size: 0.82rem;
}
.primary:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}
.primary:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 12px 34px rgba(6, 182, 212, 0.35);
}
.ghost {
background: transparent;
border: 1px solid var(--border);
color: var(--text);
padding: 10px 14px;
border-radius: 12px;
cursor: pointer;
transition: border 0.2s ease, color 0.2s ease;
}
.ghost:hover {
border-color: var(--accent-2);
color: var(--accent-2);
}
.status {
font-size: 0.9rem;
color: var(--muted);
}
.error-details {
margin: 16px 0 0;
padding: 14px;
border-radius: 12px;
border: 1px solid rgba(239, 68, 68, 0.35);
background: rgba(239, 68, 68, 0.08);
color: #fecaca;
font-family: "JetBrains Mono", "SFMono-Regular", monospace;
font-size: 0.8rem;
white-space: pre-wrap;
display: none;
}
.results {
display: none;
}
.results.visible {
display: block;
}
.results-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-top: 24px;
}
.results-grid.images {
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.result-card {
background: var(--panel-strong);
border-radius: 16px;
padding: 18px;
border: 1px solid rgba(148, 163, 184, 0.2);
display: grid;
gap: 12px;
}
.result-card img {
width: 100%;
border-radius: 12px;
border: 1px solid rgba(148, 163, 184, 0.2);
}
.card-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}
textarea {
min-height: 200px;
resize: none;
background: rgba(2, 6, 23, 0.7);
border: 1px solid rgba(148, 163, 184, 0.3);
border-radius: 12px;
color: #e2e8f0;
padding: 14px;
font-family: "Electrolize", "SFMono-Regular", monospace;
font-size: 0.85rem;
}
.validation {
font-size: 0.9rem;
color: var(--muted);
margin-top: 16px;
}
.validation strong {
color: var(--text);
}
.zip-download {
margin-top: 16px;
}
.zip-download a {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
border-radius: 12px;
border: 1px solid var(--border);
color: var(--text);
text-decoration: none;
background: rgba(15, 23, 42, 0.65);
}
.zip-download a:hover {
border-color: var(--accent-2);
color: var(--accent-2);
}
.zip-preview {
display: grid;
gap: 12px;
place-items: center;
text-align: center;
color: var(--muted);
}
.zip-preview svg {
width: 54px;
height: 54px;
fill: none;
stroke: var(--accent-2);
stroke-width: 1.6;
}
.footer {
text-align: center;
color: var(--muted);
font-size: 0.9rem;
}
.footer a {
color: var(--accent-2);
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
@media (max-width: 720px) {
.hero {
grid-template-columns: 1fr;
}
.hero-actions {
justify-content: flex-start;
}
.actions {
flex-direction: column;
align-items: flex-start;
}
.input-row {
flex-direction: column;
}
.preview.manual-preview {
min-height: 420px;
height: 68vh;
}
.preview-head,
.manual-modal-actions {
align-items: stretch;
flex-direction: column;
}
.calibration-grid {
grid-template-columns: 1fr;
}
}