Download frontend/src/styles.css from bolleman/CADMorph: direct link, hf CLI and curl.
- Browser
- Download file 25.8 kB
-
https://huggingface.co/spaces/bolleman/CADMorph/resolve/main/frontend/src/styles.css
- Command line
-
hf download hf://spaces/bolleman/CADMorph/frontend/src/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/bolleman/CADMorph/resolve/main/frontend/src/styles.css
25.8 kB
/* ============================================================
CADMorph — Design System & Global Styles
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
/* ---------- Design Tokens ---------- */
:root {
/* Background layers */
--bg-base: #0b0f14;
--bg-surface: #111820;
--bg-card: #161e2a;
--bg-card-hover: #1b2536;
--bg-elevated: #1f2b3d;
/* Borders */
--border-subtle: rgba(255, 255, 255, 0.06);
--border-default: rgba(255, 255, 255, 0.10);
--border-strong: rgba(255, 255, 255, 0.16);
/* Text */
--text-primary: #e8ecf1;
--text-secondary: #8b97a8;
--text-muted: #5a6578;
--text-inverse: #0b0f14;
/* Accent — blue */
--accent: #3b82f6;
--accent-hover: #60a5fa;
--accent-subtle: rgba(59, 130, 246, 0.12);
--accent-muted: rgba(59, 130, 246, 0.25);
/* Overlay colors (locked — must match backend markup.pdf) */
--color-added: #0a991a;
--color-removed: #d91a1a;
--color-modified: #f28c00;
/* Semantic */
--color-success: #22c55e;
--color-error: #ef4444;
--color-warning: #f59e0b;
/* Spacing */
--space-xs: 4px;
--space-sm: 8px;
--space-md: 16px;
--space-lg: 24px;
--space-xl: 32px;
--space-2xl: 48px;
--space-3xl: 64px;
/* Radii */
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 16px;
--radius-full: 9999px;
/* Shadows */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
--shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.15);
--shadow-glow-green: 0 0 20px rgba(34, 197, 94, 0.15);
--shadow-glow-red: 0 0 20px rgba(239, 68, 68, 0.15);
/* Typography */
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
--text-xs: 0.75rem;
--text-sm: 0.8125rem;
--text-base: 0.9375rem;
--text-lg: 1.125rem;
--text-xl: 1.375rem;
--text-2xl: 1.75rem;
--text-3xl: 2.25rem;
--leading-tight: 1.25;
--leading-normal: 1.5;
--leading-relaxed: 1.65;
/* Transitions */
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 16px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
body {
font-family: var(--font-sans);
font-size: var(--text-base);
line-height: var(--leading-normal);
color: var(--text-primary);
background: var(--bg-base);
min-height: 100vh;
}
#root {
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--border-strong);
border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
/* ---------- Keyframes ---------- */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
0% { background-position: -400px 0; }
100% { background-position: 400px 0; }
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
@keyframes progressPulse {
0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
70% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}
@keyframes spin {
to { transform: rotate(360deg); }
}
@keyframes scaleIn {
from { opacity: 0; transform: scale(0.95); }
to { opacity: 1; transform: scale(1); }
}
/* ---------- App Shell ---------- */
.app-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-md) var(--space-xl);
border-bottom: 1px solid var(--border-subtle);
background: var(--bg-surface);
flex-shrink: 0;
}
.app-logo {
display: flex;
align-items: baseline;
gap: var(--space-sm);
}
.app-logo-mark {
font-size: var(--text-xl);
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.02em;
}
.app-logo-mark span {
color: var(--accent);
}
.app-logo-tagline {
font-size: var(--text-sm);
color: var(--text-muted);
font-weight: 400;
}
.app-content {
flex: 1;
display: flex;
flex-direction: column;
}
/* ---------- Step Indicator ---------- */
.step-indicator {
display: flex;
align-items: center;
justify-content: center;
gap: 0;
padding: var(--space-lg) var(--space-xl);
background: var(--bg-surface);
border-bottom: 1px solid var(--border-subtle);
}
.step-item {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.step-circle {
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: var(--text-sm);
font-weight: 600;
border: 2px solid var(--border-default);
color: var(--text-muted);
background: transparent;
transition: all var(--transition-base);
flex-shrink: 0;
}
.step-circle.active {
border-color: var(--accent);
color: var(--accent);
background: var(--accent-subtle);
animation: progressPulse 2s ease-in-out infinite;
}
.step-circle.completed {
border-color: var(--color-success);
color: var(--text-inverse);
background: var(--color-success);
}
.step-circle.error {
border-color: var(--color-error);
color: white;
background: var(--color-error);
}
.step-label {
font-size: var(--text-sm);
font-weight: 500;
color: var(--text-muted);
transition: color var(--transition-base);
}
.step-label.active {
color: var(--accent);
}
.step-label.completed {
color: var(--color-success);
}
.step-label.error {
color: var(--color-error);
}
.step-connector {
width: 60px;
height: 2px;
background: var(--border-default);
margin: 0 var(--space-md);
border-radius: 1px;
transition: background var(--transition-base);
flex-shrink: 0;
}
.step-connector.completed {
background: var(--color-success);
}
.step-connector.active {
background: linear-gradient(90deg, var(--color-success), var(--accent));
}
/* ---------- Upload Form ---------- */
.upload-container {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-xl);
animation: fadeIn var(--transition-slow) ease;
}
.upload-card {
width: 100%;
max-width: 640px;
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
padding: var(--space-2xl);
box-shadow: var(--shadow-lg);
animation: scaleIn var(--transition-slow) ease;
}
.upload-title {
font-size: var(--text-2xl);
font-weight: 700;
color: var(--text-primary);
margin-bottom: var(--space-xs);
letter-spacing: -0.02em;
}
.upload-subtitle {
font-size: var(--text-base);
color: var(--text-secondary);
margin-bottom: var(--space-xl);
}
.upload-fields {
display: flex;
flex-direction: column;
gap: var(--space-lg);
}
/* Drop zone */
.drop-zone {
border: 2px dashed var(--border-default);
border-radius: var(--radius-md);
padding: var(--space-lg);
text-align: center;
cursor: pointer;
transition: all var(--transition-base);
background: transparent;
position: relative;
}
.drop-zone:hover,
.drop-zone.drag-over {
border-color: var(--accent);
background: var(--accent-subtle);
}
.drop-zone.has-file {
border-color: var(--color-success);
border-style: solid;
background: rgba(34, 197, 94, 0.06);
}
.drop-zone-icon {
font-size: 1.75rem;
margin-bottom: var(--space-sm);
display: block;
}
.drop-zone-label {
font-size: var(--text-sm);
font-weight: 600;
color: var(--text-primary);
margin-bottom: var(--space-xs);
}
.drop-zone-hint {
font-size: var(--text-xs);
color: var(--text-muted);
}
.drop-zone-filename {
font-size: var(--text-sm);
color: var(--color-success);
font-weight: 500;
margin-top: var(--space-sm);
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-xs);
}
.drop-zone input[type="file"] {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
/* Page input */
.page-field {
display: flex;
align-items: center;
gap: var(--space-md);
}
.page-field label {
font-size: var(--text-sm);
font-weight: 500;
color: var(--text-secondary);
white-space: nowrap;
}
.page-field input[type="number"] {
width: 80px;
padding: var(--space-sm) var(--space-md);
background: var(--bg-surface);
border: 1px solid var(--border-default);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-family: var(--font-mono);
font-size: var(--text-sm);
outline: none;
transition: border-color var(--transition-fast);
}
.page-field input[type="number"]:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-subtle);
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-sm);
padding: var(--space-sm) var(--space-lg);
border-radius: var(--radius-sm);
font-family: var(--font-sans);
font-size: var(--text-sm);
font-weight: 600;
cursor: pointer;
border: 1px solid transparent;
transition: all var(--transition-fast);
text-decoration: none;
line-height: var(--leading-tight);
}
.btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.btn-primary {
background: var(--accent);
color: white;
padding: 12px var(--space-xl);
font-size: var(--text-base);
border-radius: var(--radius-md);
width: 100%;
}
.btn-primary:hover:not(:disabled) {
background: var(--accent-hover);
box-shadow: var(--shadow-glow-blue);
}
.btn-primary:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.btn-secondary {
background: var(--bg-elevated);
color: var(--text-primary);
border: 1px solid var(--border-default);
}
.btn-secondary:hover {
background: var(--bg-card-hover);
border-color: var(--border-strong);
}
.btn-ghost {
background: transparent;
color: var(--text-secondary);
}
.btn-ghost:hover {
background: var(--bg-elevated);
color: var(--text-primary);
}
/* ---------- Processing View ---------- */
.processing-container {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-xl);
animation: fadeIn var(--transition-slow) ease;
}
.processing-card {
width: 100%;
max-width: 520px;
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
padding: var(--space-2xl);
box-shadow: var(--shadow-lg);
animation: scaleIn var(--transition-slow) ease;
}
.processing-title {
font-size: var(--text-lg);
font-weight: 600;
color: var(--text-primary);
margin-bottom: var(--space-xs);
text-align: center;
}
.processing-subtitle {
font-size: var(--text-sm);
color: var(--text-secondary);
text-align: center;
margin-bottom: var(--space-xl);
}
.processing-progress-bar {
width: 100%;
height: 4px;
background: var(--bg-elevated);
border-radius: 2px;
margin-bottom: var(--space-xl);
overflow: hidden;
}
.processing-progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--accent), var(--accent-hover));
border-radius: 2px;
transition: width var(--transition-slow);
}
.processing-card.minimal {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
max-width: 440px;
}
.creative-loader {
position: relative;
width: 80px;
height: 80px;
margin-bottom: var(--space-xl);
display: flex;
align-items: center;
justify-content: center;
}
.loader-ring {
position: absolute;
inset: 0;
border: 2px solid transparent;
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}
.loader-ring.ring2 {
inset: 10px;
border-top-color: var(--color-success);
animation: spin 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite reverse;
}
.loader-icon {
font-size: 24px;
animation: pulse 2s ease-in-out infinite;
}
/* ---------- Results Layout ---------- */
.results-container {
flex: 1;
display: flex;
flex-direction: column;
animation: fadeIn var(--transition-slow) ease;
overflow: hidden;
}
.results-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-md) var(--space-xl);
background: var(--bg-surface);
border-bottom: 1px solid var(--border-subtle);
gap: var(--space-md);
flex-wrap: wrap;
}
.results-toolbar-left {
display: flex;
align-items: center;
gap: var(--space-lg);
flex-wrap: wrap;
}
.segmented-control {
display: flex;
background: var(--bg-base);
border: 1px solid var(--border-default);
border-radius: var(--radius-md);
padding: 2px;
gap: 2px;
}
.segmented-control button {
background: transparent;
border: none;
color: var(--text-secondary);
font-family: var(--font-sans);
font-size: var(--text-xs);
font-weight: 500;
padding: 6px 12px;
border-radius: calc(var(--radius-md) - 2px);
cursor: pointer;
transition: all var(--transition-fast);
}
.segmented-control button:hover {
color: var(--text-primary);
}
.segmented-control button.active {
background: var(--bg-elevated);
color: var(--text-primary);
box-shadow: var(--shadow-sm);
}
.results-filters {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.filter-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
border-radius: var(--radius-full);
font-size: var(--text-xs);
font-weight: 600;
cursor: pointer;
border: 1px solid var(--border-default);
background: transparent;
color: var(--text-secondary);
transition: all var(--transition-fast);
text-transform: capitalize;
user-select: none;
}
.filter-chip:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.filter-chip .chip-dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.filter-chip.active {
background: var(--bg-elevated);
border-color: var(--border-strong);
color: var(--text-primary);
}
.filter-chip:hover {
background: var(--bg-elevated);
}
.results-actions {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.results-panes {
display: flex;
flex-direction: column;
flex: 1;
overflow-y: auto;
min-height: 0;
}
.results-sheet-pane {
padding: var(--space-xl);
display: flex;
align-items: flex-start;
justify-content: center;
background: var(--bg-base);
}
.results-summary-pane {
padding: var(--space-3xl) var(--space-xl);
background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
border-top: 1px solid var(--border-subtle);
border-bottom: 1px solid var(--border-subtle);
box-shadow: inset 0 20px 40px rgba(0,0,0,0.2);
}
.results-list-pane {
background: var(--bg-base);
}
/* ---------- Report Summary ---------- */
.report-summary-container {
display: flex;
flex-direction: column;
gap: var(--space-3xl);
max-width: 1200px;
margin: 0 auto;
}
.summary-stats {
display: flex;
gap: var(--space-xl);
flex-wrap: wrap;
justify-content: center;
}
.stat-card {
flex: 1;
min-width: 200px;
background: rgba(255, 255, 255, 0.02);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--border-subtle);
border-top: 1px solid rgba(255, 255, 255, 0.1);
border-radius: var(--radius-lg);
padding: var(--space-2xl) var(--space-xl);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transition: all var(--transition-base);
box-shadow: var(--shadow-sm);
position: relative;
overflow: hidden;
}
.stat-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: var(--border-subtle);
transition: all var(--transition-base);
}
.stat-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
background: rgba(255, 255, 255, 0.05);
}
.stat-card.added:hover::before { background: var(--color-success); box-shadow: 0 0 20px var(--color-success); }
.stat-card.removed:hover::before { background: var(--color-error); box-shadow: 0 0 20px var(--color-error); }
.stat-card.modified:hover::before { background: var(--color-warning); box-shadow: 0 0 20px var(--color-warning); }
.stat-value {
font-size: 3.5rem;
font-weight: 700;
color: var(--text-primary);
margin-bottom: var(--space-sm);
line-height: 1;
letter-spacing: -2px;
text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.stat-card.added .stat-value { color: var(--color-success); }
.stat-card.removed .stat-value { color: var(--color-error); }
.stat-card.modified .stat-value { color: var(--color-warning); }
.stat-label {
font-size: var(--text-sm);
color: var(--text-muted);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1.5px;
}
.summary-text-card {
background: rgba(255, 255, 255, 0.015);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
padding: var(--space-3xl);
box-shadow: inset 0 0 40px rgba(0,0,0,0.2);
}
.summary-text-title {
font-size: var(--text-xl);
font-weight: 700;
color: var(--text-primary);
margin-bottom: var(--space-xl);
display: flex;
align-items: center;
gap: var(--space-sm);
letter-spacing: -0.5px;
}
.summary-text-list {
list-style: none;
display: flex;
flex-direction: column;
gap: var(--space-lg);
}
.summary-text-item {
display: flex;
align-items: flex-start;
gap: var(--space-md);
font-size: 1.05rem;
color: var(--text-secondary);
line-height: var(--leading-relaxed);
}
.summary-text-bullet {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--accent);
margin-top: 10px;
flex-shrink: 0;
box-shadow: var(--shadow-glow-blue);
}
.split-view-container {
display: flex;
gap: var(--space-md);
width: 100%;
}
.split-view-half {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
}
.split-title {
font-size: var(--text-sm);
color: var(--text-secondary);
text-align: center;
margin-bottom: var(--space-sm);
}
/* ---------- Sheet Viewer ---------- */
.sheet-viewer-wrap {
position: relative;
display: inline-block;
max-width: 100%;
border-radius: var(--radius-md);
overflow: hidden;
border: 1px solid var(--border-subtle);
box-shadow: var(--shadow-md);
background: #fff;
}
.sheet-viewer-wrap img {
display: block;
width: 100%;
height: auto;
}
.sheet-viewer-wrap svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.sheet-skeleton {
width: 100%;
aspect-ratio: 4/3;
background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
background-size: 800px 100%;
animation: shimmer 1.5s ease-in-out infinite;
border-radius: var(--radius-md);
}
/* ---------- Change List ---------- */
.change-list-header {
padding: var(--space-md) var(--space-lg);
border-bottom: 1px solid var(--border-subtle);
position: sticky;
top: 0;
background: var(--bg-surface);
z-index: 1;
}
.change-list-title {
font-size: var(--text-base);
font-weight: 600;
color: var(--text-primary);
margin-bottom: var(--space-xs);
}
.change-list-meta {
font-size: var(--text-xs);
color: var(--text-muted);
line-height: var(--leading-relaxed);
}
.change-list-empty {
padding: var(--space-2xl) var(--space-lg);
text-align: center;
color: var(--text-muted);
}
.change-list-empty-icon {
font-size: 2rem;
margin-bottom: var(--space-md);
opacity: 0.5;
}
.change-list-items {
list-style: none;
padding: 0;
margin: 0;
}
.change-item {
padding: var(--space-xl) var(--space-2xl);
border-bottom: 1px solid var(--border-subtle);
cursor: pointer;
transition: all var(--transition-base);
border-left: 3px solid transparent;
position: relative;
background: var(--bg-surface);
}
.change-item:hover {
background: var(--bg-card);
padding-left: calc(var(--space-2xl) + 8px);
}
.change-item.selected {
background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 100%);
border-left-color: var(--accent);
box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}
.change-item:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
.change-item-header {
display: flex;
align-items: center;
gap: var(--space-sm);
margin-bottom: var(--space-xs);
flex-wrap: wrap;
}
.change-badge {
display: inline-flex;
align-items: center;
padding: 2px 8px;
border-radius: var(--radius-full);
font-size: var(--text-xs);
font-weight: 600;
text-transform: capitalize;
line-height: 1.4;
}
.change-badge.added {
background: rgba(10, 153, 26, 0.15);
color: #2dd44a;
}
.change-badge.removed {
background: rgba(217, 26, 26, 0.15);
color: #f06060;
}
.change-badge.modified {
background: rgba(242, 140, 0, 0.15);
color: #ffaa33;
}
.change-mod-kinds {
display: inline-flex;
gap: 4px;
flex-wrap: wrap;
}
.mod-kind-tag {
font-size: 10px;
padding: 1px 6px;
border-radius: var(--radius-full);
background: var(--bg-elevated);
color: var(--text-muted);
font-weight: 500;
}
.change-summary {
font-size: var(--text-sm);
color: var(--text-secondary);
line-height: var(--leading-relaxed);
margin-bottom: var(--space-xs);
}
.change-values {
font-family: var(--font-mono);
font-size: var(--text-xs);
padding: 6px var(--space-sm);
background: var(--bg-base);
border-radius: var(--radius-sm);
color: var(--text-secondary);
margin-bottom: var(--space-xs);
display: inline-block;
}
.change-delta-id {
font-family: var(--font-mono);
font-size: 10px;
color: var(--text-muted);
opacity: 0.6;
}
/* ---------- Error State ---------- */
.error-container {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-xl);
animation: fadeIn var(--transition-slow) ease;
}
.error-card {
width: 100%;
max-width: 520px;
background: var(--bg-card);
border: 1px solid rgba(239, 68, 68, 0.2);
border-radius: var(--radius-lg);
padding: var(--space-2xl);
box-shadow: var(--shadow-lg), var(--shadow-glow-red);
text-align: center;
animation: scaleIn var(--transition-slow) ease;
}
.error-icon {
font-size: 3rem;
margin-bottom: var(--space-md);
}
.error-title {
font-size: var(--text-xl);
font-weight: 700;
color: var(--color-error);
margin-bottom: var(--space-sm);
}
.error-message {
font-size: var(--text-base);
color: var(--text-secondary);
line-height: var(--leading-relaxed);
margin-bottom: var(--space-xl);
/* Never truncate error messages — they name the offending file */
word-break: break-word;
}
.error-actions {
display: flex;
justify-content: center;
gap: var(--space-md);
}
/* ---------- No Changes State ---------- */
.no-changes-container {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-xl);
animation: fadeIn var(--transition-slow) ease;
}
.no-changes-card {
width: 100%;
max-width: 520px;
background: var(--bg-card);
border: 1px solid rgba(34, 197, 94, 0.15);
border-radius: var(--radius-lg);
padding: var(--space-2xl);
box-shadow: var(--shadow-lg), var(--shadow-glow-green);
text-align: center;
animation: scaleIn var(--transition-slow) ease;
}
.no-changes-icon {
font-size: 3.5rem;
margin-bottom: var(--space-md);
}
.no-changes-title {
font-size: var(--text-xl);
font-weight: 700;
color: var(--color-success);
margin-bottom: var(--space-sm);
}
.no-changes-message {
font-size: var(--text-base);
color: var(--text-secondary);
line-height: var(--leading-relaxed);
margin-bottom: var(--space-sm);
}
.no-changes-files {
font-size: var(--text-sm);
color: var(--text-muted);
font-family: var(--font-mono);
margin-bottom: var(--space-xl);
}
.no-changes-actions {
display: flex;
justify-content: center;
gap: var(--space-md);
flex-wrap: wrap;
}
/* ---------- Inline Alert (upload errors) ---------- */
.inline-alert {
display: flex;
align-items: flex-start;
gap: var(--space-md);
padding: var(--space-md);
border-radius: var(--radius-md);
background: rgba(239, 68, 68, 0.08);
border: 1px solid rgba(239, 68, 68, 0.2);
animation: slideUp var(--transition-base) ease;
}
.inline-alert-icon {
font-size: var(--text-lg);
flex-shrink: 0;
line-height: 1;
}
.inline-alert-text {
font-size: var(--text-sm);
color: var(--text-secondary);
line-height: var(--leading-relaxed);
word-break: break-word;
}
/* ---------- Responsive ---------- */
@media (max-width: 900px) {
.results-panes {
flex-direction: column;
}
.results-sheet-pane {
flex: none;
max-height: 50vh;
}
.results-list-pane {
flex: 1;
border-left: none;
border-top: 1px solid var(--border-subtle);
}
.step-connector {
width: 32px;
margin: 0 var(--space-sm);
}
.step-label {
display: none;
}
.app-logo-tagline {
display: none;
}
.results-toolbar {
padding: var(--space-md);
}
}
@media (max-width: 600px) {
.upload-card {
padding: var(--space-lg);
}
.upload-title {
font-size: var(--text-xl);
}
.results-toolbar {
flex-direction: column;
align-items: stretch;
}
.results-filters {
flex-wrap: wrap;
}
.results-actions {
justify-content: stretch;
}
.results-actions .btn {
flex: 1;
}
}
/* ============================================================
CADMorph — Design System & Global Styles
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
/* ---------- Design Tokens ---------- */
:root {
/* Background layers */
--bg-base: #0b0f14;
--bg-surface: #111820;
--bg-card: #161e2a;
--bg-card-hover: #1b2536;
--bg-elevated: #1f2b3d;
/* Borders */
--border-subtle: rgba(255, 255, 255, 0.06);
--border-default: rgba(255, 255, 255, 0.10);
--border-strong: rgba(255, 255, 255, 0.16);
/* Text */
--text-primary: #e8ecf1;
--text-secondary: #8b97a8;
--text-muted: #5a6578;
--text-inverse: #0b0f14;
/* Accent — blue */
--accent: #3b82f6;
--accent-hover: #60a5fa;
--accent-subtle: rgba(59, 130, 246, 0.12);
--accent-muted: rgba(59, 130, 246, 0.25);
/* Overlay colors (locked — must match backend markup.pdf) */
--color-added: #0a991a;
--color-removed: #d91a1a;
--color-modified: #f28c00;
/* Semantic */
--color-success: #22c55e;
--color-error: #ef4444;
--color-warning: #f59e0b;
/* Spacing */
--space-xs: 4px;
--space-sm: 8px;
--space-md: 16px;
--space-lg: 24px;
--space-xl: 32px;
--space-2xl: 48px;
--space-3xl: 64px;
/* Radii */
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 16px;
--radius-full: 9999px;
/* Shadows */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
--shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.15);
--shadow-glow-green: 0 0 20px rgba(34, 197, 94, 0.15);
--shadow-glow-red: 0 0 20px rgba(239, 68, 68, 0.15);
/* Typography */
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
--text-xs: 0.75rem;
--text-sm: 0.8125rem;
--text-base: 0.9375rem;
--text-lg: 1.125rem;
--text-xl: 1.375rem;
--text-2xl: 1.75rem;
--text-3xl: 2.25rem;
--leading-tight: 1.25;
--leading-normal: 1.5;
--leading-relaxed: 1.65;
/* Transitions */
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 16px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;