From 5fd5b962cd5d4628ce492b6bc06bab36e2f3cd03 Mon Sep 17 00:00:00 2001 From: v0 Date: Wed, 1 Apr 2026 16:09:17 +0000 Subject: [PATCH 1/3] style: redesign UI in classic Win2000 style Update HTML and CSS for classic Win2000 theme and controls Co-authored-by: Sasha Drapkin <102924575+CodeAndParty@users.noreply.github.com> --- index.html | 33 +- style.css | 859 +++++++++++++++++++++++++++++++++++------------------ 2 files changed, 586 insertions(+), 306 deletions(-) diff --git a/index.html b/index.html index 7cae710..387277f 100644 --- a/index.html +++ b/index.html @@ -3,15 +3,15 @@ - Invoice Generator + Invoice Generator - Microsoft Windows - +
@@ -76,7 +76,7 @@ d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" /> - Reset + Reset Form @@ -100,9 +100,10 @@
-

INVOICE

+ ๐Ÿงพ +

Invoice Generator

- #0000 +  โ€” #0000

From

@@ -117,6 +118,12 @@

INVOICE

Your Address

+ +
+ + + +
diff --git a/style.css b/style.css index db7eee4..ebdd260 100644 --- a/style.css +++ b/style.css @@ -1,63 +1,30 @@ +/* โ”€โ”€ Windows 2000 / Classic Windows Style โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&display=swap'); + :root { - --color-primary: #0f1535; - --color-primary-mid: #1a2547; - --color-accent: #5b8ef5; - --color-accent-light: #6b9cf6; - --color-body-bg: #f0f2f7; - --color-card-bg: #fff; - --color-slate-50: #f8fafc; - --color-slate-100: #f1f5f9; - --color-slate-200: #e2e8f0; - --color-slate-300: #cbd5e1; - --color-slate-400: #94a3b8; - --color-slate-500: #64748b; - --color-slate-600: #475569; - --color-slate-700: #334155; - --color-slate-800: #1e293b; - --font-display: "Sora", sans-serif; - --font-body: "DM Sans", sans-serif; -} - -/* โ”€โ”€ Themes โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ - -[data-theme="navy"] { - --color-primary: #0f1535; - --color-primary-mid: #1a2547; - --color-accent: #5b8ef5; - --color-accent-light: #6b9cf6; - --color-body-bg: #f0f2f7; -} - -[data-theme="emerald"] { - --color-primary: #062e1e; - --color-primary-mid: #0d3b29; - --color-accent: #34d399; - --color-accent-light: #6ee7b7; - --color-body-bg: #ecfdf5; -} - -[data-theme="sunset"] { - --color-primary: #431407; - --color-primary-mid: #5c1d0e; - --color-accent: #f59e0b; - --color-accent-light: #fbbf24; - --color-body-bg: #fffbeb; -} - -[data-theme="rose"] { - --color-primary: #2d0a1e; - --color-primary-mid: #3d1029; - --color-accent: #f472b6; - --color-accent-light: #f9a8d4; - --color-body-bg: #fdf2f8; -} - -[data-theme="slate"] { - --color-primary: #1e293b; - --color-primary-mid: #334155; - --color-accent: #94a3b8; - --color-accent-light: #cbd5e1; - --color-body-bg: #f1f5f9; + /* Win2000 system colors */ + --win-desktop: #008080; /* teal desktop */ + --win-gray: #d4d0c8; /* classic window gray */ + --win-gray-dark: #808080; + --win-gray-darker: #404040; + --win-gray-light: #ffffff; + --win-title-from: #000080; /* navy titlebar gradient start */ + --win-title-to: #1084d0; /* titlebar gradient end */ + --win-title-text: #ffffff; + --win-btn-face: #d4d0c8; + --win-btn-shadow: #808080; + --win-btn-dark: #404040; + --win-btn-light: #ffffff; + --win-btn-hilite: #e8e4dc; + --win-inset: #808080; + --win-text: #000000; + --win-blue-sel: #000080; + --win-blue-sel-text: #ffffff; + --win-link: #0000ee; + + /* font */ + --font-sys: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif; } *, @@ -69,161 +36,392 @@ } body { - font-family: var(--font-body); - background: var(--color-body-bg); + font-family: var(--font-sys); + font-size: 11px; + background: var(--win-desktop); min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; - padding: 3rem 1rem; + padding: 2rem 1rem 5rem; + /* tiled desktop texture */ + background-image: repeating-linear-gradient( + 45deg, + rgba(0,0,0,0.03) 0px, + rgba(0,0,0,0.03) 1px, + transparent 1px, + transparent 8px + ); +} + +/* โ”€โ”€ Raised / Sunken bevel mixins (via reusable classes) โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +.raised { + border-top: 2px solid var(--win-btn-light); + border-left: 2px solid var(--win-btn-light); + border-bottom: 2px solid var(--win-btn-dark); + border-right: 2px solid var(--win-btn-dark); } -/* โ”€โ”€ Action Buttons โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +.sunken { + border-top: 2px solid var(--win-btn-dark); + border-left: 2px solid var(--win-btn-dark); + border-bottom: 2px solid var(--win-btn-light); + border-right: 2px solid var(--win-btn-light); +} + +/* โ”€โ”€ Action Buttons (fixed toolbar at bottom right) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ #action-btns { position: fixed; - bottom: 2rem; - right: 2rem; - z-index: 50; + bottom: 1.5rem; + right: 1.5rem; + z-index: 100; display: flex; flex-direction: column; - gap: 0.75rem; + gap: 0.5rem; } .action-btn { + font-family: var(--font-sys); + font-size: 11px; + background: var(--win-gray); + color: var(--win-text); + border-top: 2px solid var(--win-btn-light); + border-left: 2px solid var(--win-btn-light); + border-bottom: 2px solid var(--win-btn-dark); + border-right: 2px solid var(--win-btn-dark); + padding: 4px 12px; + cursor: pointer; display: flex; align-items: center; - gap: 0.625rem; - color: #fff; - font-family: var(--font-display); - font-weight: 600; - font-size: 0.875rem; - padding: 0.875rem 1.25rem; - border-radius: 0.75rem; - border: none; - box-shadow: 0 20px 25px -5px rgba(148, 163, 184, 0.3); - transition: all 0.2s; - cursor: pointer; + gap: 6px; + white-space: nowrap; + min-width: 130px; + justify-content: center; } -.action-btn:hover { - transform: scale(1.05); +.action-btn:active { + border-top: 2px solid var(--win-btn-dark); + border-left: 2px solid var(--win-btn-dark); + border-bottom: 2px solid var(--win-btn-light); + border-right: 2px solid var(--win-btn-light); + padding: 5px 11px 3px 13px; } -.action-btn--reset { - background: var(--color-slate-600); +.action-btn svg { + width: 14px; + height: 14px; } -.action-btn--reset:hover { - background: var(--color-slate-700); +.action-btn--reset svg { color: #444; } +.action-btn--download svg { color: #000080; } + +/* โ”€โ”€ Theme Picker โ†’ repurposed as a "Start" toolbar โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +#theme-picker { + position: fixed; + bottom: 0; + left: 0; + right: 0; + z-index: 200; + height: 30px; + background: var(--win-gray); + border-top: 2px solid var(--win-btn-light); + display: flex; + align-items: center; + gap: 4px; + padding: 0 6px; +} + +/* start button */ +#theme-picker::before { + content: "๐ŸชŸ Start"; + font-family: var(--font-sys); + font-size: 11px; + font-weight: bold; + background: var(--win-gray); + border-top: 2px solid var(--win-btn-light); + border-left: 2px solid var(--win-btn-light); + border-bottom: 2px solid var(--win-btn-dark); + border-right: 2px solid var(--win-btn-dark); + padding: 2px 10px; + margin-right: 8px; + cursor: pointer; } -.action-btn--download { - background: var(--color-primary); +/* divider */ +#theme-picker::after { + content: ""; + display: block; + width: 2px; + height: 20px; + border-left: 1px solid var(--win-btn-shadow); + border-right: 1px solid var(--win-btn-light); + margin-right: 8px; } -.action-btn--download:hover { - background: var(--color-primary-mid); - box-shadow: 0 25px 50px -12px rgba(91, 142, 245, 0.2); +.theme-swatch { + height: 22px; + width: auto; + min-width: 60px; + padding: 2px 8px; + border-top: 2px solid var(--win-btn-light); + border-left: 2px solid var(--win-btn-light); + border-bottom: 2px solid var(--win-btn-dark); + border-right: 2px solid var(--win-btn-dark); + background: var(--win-gray); + cursor: pointer; + font-family: var(--font-sys); + font-size: 10px; + color: var(--win-text); + display: flex; + align-items: center; + gap: 4px; + overflow: visible; + border-radius: 0; + box-shadow: none; } -.action-btn svg { - width: 1rem; - height: 1rem; +.theme-swatch:hover { + transform: none; + filter: brightness(1.05); } -.action-btn--download svg { - color: var(--color-accent); +.theme-swatch.active { + border-top: 2px solid var(--win-btn-dark); + border-left: 2px solid var(--win-btn-dark); + border-bottom: 2px solid var(--win-btn-light); + border-right: 2px solid var(--win-btn-light); + box-shadow: none; } -/* โ”€โ”€ Invoice Card โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +.theme-swatch span { + display: inline-block; + flex: none; + width: 10px; + height: 10px; + border: 1px solid #666; + flex-shrink: 0; +} + +/* โ”€โ”€ Invoice Card โ†’ Classic Window โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .invoice-card { - background: #fff; + background: var(--win-gray); width: 100%; - max-width: 48rem; - box-shadow: 0 25px 50px -12px rgba(203, 213, 225, 0.6); - border-radius: 0.75rem; - overflow: hidden; + max-width: 680px; + border-top: 2px solid var(--win-btn-light); + border-left: 2px solid var(--win-btn-light); + border-bottom: 2px solid var(--win-btn-dark); + border-right: 2px solid var(--win-btn-dark); + border-radius: 0; + box-shadow: 2px 2px 8px rgba(0,0,0,0.5); + overflow: visible; } -/* โ”€โ”€ Header โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Header โ†’ Titlebar + fields โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .invoice-header { - background: var(--color-primary); - padding: 2.5rem; + background: linear-gradient(to right, var(--win-title-from), var(--win-title-to)); + padding: 4px 6px; display: flex; justify-content: space-between; - align-items: flex-start; - border-left: 4px solid var(--color-accent); + align-items: center; + border: none; + border-left: 0; +} + +/* Titlebar text area */ +.invoice-header > div:first-child { + display: flex; + align-items: center; + gap: 8px; + flex: 1; } .invoice-title { - font-family: var(--font-display); - color: #fff; - font-size: 3rem; - font-weight: 800; - letter-spacing: -0.025em; + font-family: var(--font-sys); + font-size: 12px; + font-weight: bold; + color: var(--win-title-text); + letter-spacing: 0; line-height: 1; + text-shadow: 1px 1px 0 rgba(0,0,0,0.5); } .invoice-number { - color: var(--color-slate-400); - margin-top: 0.5rem; - font-size: 0.875rem; - font-family: var(--font-display); + font-family: var(--font-sys); + font-size: 11px; + color: rgba(255,255,255,0.85); + margin: 0; } +.invoice-number span { + font-weight: bold; +} + +/* Window control buttons */ +.header-right { + display: flex; + align-items: center; + gap: 2px; +} + +/* Override layout for header-right in our new titlebar */ +.invoice-header .header-right { + flex-direction: row; + align-items: center; +} + +/* โ”€โ”€ Sub-header panel below titlebar โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +/* We create a second info panel using a wrapping trick */ +.invoice-card .invoice-header { + flex-direction: column; + align-items: stretch; + padding: 0; +} + +/* Title bar row */ +.invoice-card .invoice-header::before { + display: none; /* handled by flex children */ +} + +/* Re-structure: since we can't change HTML much, we restyle the + header's first-child div to look like a proper titlebar row */ + +.invoice-header > div:first-child { + background: linear-gradient(to right, #000080, #1084d0); + padding: 3px 6px; + display: flex; + align-items: center; + gap: 8px; +} + +.invoice-header > .header-right { + background: var(--win-gray); + padding: 8px 10px; + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: flex-start; + gap: 12px; +} + +/* โ”€โ”€ Within titlebar left side โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + .header-from { - margin-top: 1.5rem; + margin-top: 0; + display: flex; + flex-direction: column; + gap: 0; } .header-label { - color: var(--color-slate-400); - font-size: 0.75rem; - text-transform: uppercase; - letter-spacing: 0.1em; - font-weight: 600; - font-family: var(--font-display); + font-family: var(--font-sys); + font-size: 10px; + color: var(--win-gray-dark); + text-transform: none; + letter-spacing: 0; + font-weight: bold; + margin-bottom: 1px; +} + +/* Labels inside titlebar */ +.invoice-header > div:first-child .header-label { + color: rgba(255,255,255,0.7); + font-size: 9px; } .header-name { + font-family: var(--font-sys); + font-size: 11px; + font-weight: bold; + color: var(--win-text); + margin: 0; + cursor: text; + min-width: 80px; +} + +/* Names inside titlebar */ +.invoice-header > div:first-child .header-name { color: #fff; - font-family: var(--font-display); - font-weight: 600; - font-size: 1rem; - margin-top: 0.25rem; } .header-address { - color: var(--color-slate-400); - font-size: 0.875rem; - margin-top: 0.125rem; + font-family: var(--font-sys); + font-size: 11px; + color: var(--win-gray-dark); + margin: 0; + cursor: text; } -.header-right { - display: flex; - flex-direction: column; - align-items: flex-end; - gap: 1.25rem; +/* Address in titlebar */ +.invoice-header > div:first-child .header-address { + color: rgba(255,255,255,0.75); } -/* โ”€โ”€ Date Box โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Contenteditable fields โ†’ Windows inset look โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +[contenteditable="true"] { + outline: none; + border-top: 1px solid var(--win-btn-dark); + border-left: 1px solid var(--win-btn-dark); + border-bottom: 1px solid var(--win-btn-light); + border-right: 1px solid var(--win-btn-light); + background: #fff; + padding: 1px 3px; + font-family: var(--font-sys); + font-size: 11px; + color: #000; + min-width: 60px; +} + +[contenteditable="true"]:focus { + background: #fff; + outline: 1px dotted #000; + outline-offset: -2px; +} + +/* In titlebar, editable fields stay white-ish */ +.invoice-header > div:first-child [contenteditable="true"] { + background: rgba(255,255,255,0.15); + border-color: rgba(0,0,0,0.3); + color: #fff; +} + +/* โ”€โ”€ Date Box โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .date-box { - background: var(--color-primary-mid); - border-radius: 0.75rem; - padding: 1rem 1.5rem; - text-align: right; + background: var(--win-gray); + border: none; + border-radius: 0; + padding: 0; + text-align: left; + display: flex; + flex-direction: column; + gap: 2px; } .date-display { - color: #fff; - font-family: var(--font-display); - font-weight: 700; - font-size: 1.125rem; - margin-top: 0.25rem; + font-family: var(--font-sys); + font-size: 11px; + font-weight: bold; + color: var(--win-text); + margin: 0; cursor: pointer; + border-top: 1px solid var(--win-btn-dark); + border-left: 1px solid var(--win-btn-dark); + border-bottom: 1px solid var(--win-btn-light); + border-right: 1px solid var(--win-btn-light); + background: #fff; + padding: 2px 4px; + min-width: 120px; +} + +.date-display:hover { + background: #fffff0; } .date-input-hidden { @@ -232,60 +430,71 @@ body { pointer-events: none; } -/* โ”€โ”€ Bill To โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Bill To โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .bill-to { - text-align: right; + text-align: left; } -/* โ”€โ”€ Table โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Content area โ†’ "client area" in Win2000 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .invoice-content { - padding: 2.5rem; + padding: 8px 10px 10px; + background: var(--win-gray); + border-top: 1px solid var(--win-btn-shadow); } +/* โ”€โ”€ Table โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + .invoice-table { width: 100%; border-collapse: collapse; + border-top: 1px solid var(--win-btn-dark); + border-left: 1px solid var(--win-btn-dark); + border-bottom: 1px solid var(--win-btn-light); + border-right: 1px solid var(--win-btn-light); + background: #fff; } .invoice-table thead tr { - background: var(--color-accent); + background: var(--win-blue-sel); } .invoice-table th { - font-family: var(--font-display); - color: #fff; - font-size: 0.75rem; - text-transform: uppercase; - letter-spacing: 0.1em; - font-weight: 600; - padding: 0.875rem 1.25rem; -} - -.invoice-table th:first-child { + font-family: var(--font-sys); + font-size: 11px; + font-weight: bold; + color: var(--win-blue-sel-text); + text-transform: none; + letter-spacing: 0; + padding: 4px 8px; text-align: left; - border-radius: 0.5rem 0 0 0.5rem; + border-bottom: 1px solid var(--win-btn-dark); + border-right: 1px solid rgba(255,255,255,0.2); } -.invoice-table th:nth-child(2) { - text-align: right; +.invoice-table th:first-child { border-radius: 0; } +.invoice-table th:nth-child(2) { text-align: right; } +.invoice-table th:last-child { border-radius: 0; width: 28px; text-align: center; } + +.line-item { + border-bottom: 1px solid #e0e0e0; } -.invoice-table th:last-child { - text-align: center; - border-radius: 0 0.5rem 0.5rem 0; - width: 2.5rem; +.line-item:nth-child(even) { + background: #f5f5f5; } -.line-item { - border-bottom: 1px solid var(--color-slate-100); +.line-item:hover { + background: #d0d8e8; } .line-item td { - padding: 1.5rem 1.25rem; - font-size: 0.875rem; - color: var(--color-slate-700); + padding: 3px 8px; + font-size: 11px; + font-family: var(--font-sys); + color: var(--win-text); + background: transparent; } .line-item td[data-field="amount"] { @@ -294,208 +503,278 @@ body { .line-item td:last-child { text-align: center; - padding-left: 0.75rem; - padding-right: 0.75rem; + padding: 2px; } -.remove-row { - background: none; +.line-item td [contenteditable="true"] { border: none; - color: var(--color-slate-300); + background: transparent; + padding: 0; + min-width: 40px; + width: 100%; + display: block; +} + +.line-item td [contenteditable="true"]:focus { + border-top: 1px solid var(--win-btn-dark); + border-left: 1px solid var(--win-btn-dark); + border-bottom: 1px solid var(--win-btn-light); + border-right: 1px solid var(--win-btn-light); + background: #fff; + outline: none; +} + +/* โ”€โ”€ Remove Row Button โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +.remove-row { + background: var(--win-gray); + border-top: 1px solid var(--win-btn-light); + border-left: 1px solid var(--win-btn-light); + border-bottom: 1px solid var(--win-btn-dark); + border-right: 1px solid var(--win-btn-dark); + color: var(--win-text); cursor: pointer; - transition: color 0.2s; + padding: 1px 4px; + font-size: 10px; + line-height: 1; + width: 20px; + height: 18px; + display: flex; + align-items: center; + justify-content: center; } .remove-row:hover { - color: #ef4444; + background: var(--win-btn-hilite); +} + +.remove-row:active { + border-top: 1px solid var(--win-btn-dark); + border-left: 1px solid var(--win-btn-dark); + border-bottom: 1px solid var(--win-btn-light); + border-right: 1px solid var(--win-btn-light); } .remove-row svg { - width: 1rem; - height: 1rem; + width: 10px; + height: 10px; + color: #800000; } -/* โ”€โ”€ Add Row โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Add Row Button โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .add-row-wrap { - margin-top: 0.75rem; + margin-top: 6px; display: flex; - justify-content: center; + justify-content: flex-start; } #addRowBtn { + font-family: var(--font-sys); + font-size: 11px; + background: var(--win-gray); + color: var(--win-text); + border-top: 2px solid var(--win-btn-light); + border-left: 2px solid var(--win-btn-light); + border-bottom: 2px solid var(--win-btn-dark); + border-right: 2px solid var(--win-btn-dark); + padding: 3px 10px; + cursor: pointer; display: flex; align-items: center; - gap: 0.375rem; - color: var(--color-accent); - font-size: 0.875rem; - font-family: var(--font-display); - font-weight: 600; - background: none; - border: none; - cursor: pointer; - transition: color 0.2s; + gap: 5px; } -#addRowBtn:hover { - color: var(--color-accent-light); +#addRowBtn:hover { background: var(--win-btn-hilite); } +#addRowBtn:active { + border-top: 2px solid var(--win-btn-dark); + border-left: 2px solid var(--win-btn-dark); + border-bottom: 2px solid var(--win-btn-light); + border-right: 2px solid var(--win-btn-light); + padding: 4px 9px 2px 11px; } #addRowBtn svg { - width: 1rem; - height: 1rem; + width: 12px; + height: 12px; } -/* โ”€โ”€ Totals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Totals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .totals { - margin-top: 1.5rem; + margin-top: 8px; display: flex; flex-direction: column; align-items: flex-end; - gap: 0.5rem; + gap: 2px; + padding: 6px; + background: var(--win-gray); + border-top: 1px solid var(--win-btn-dark); + border-left: 1px solid var(--win-btn-dark); + border-bottom: 1px solid var(--win-btn-light); + border-right: 1px solid var(--win-btn-light); } .totals-row { - width: 18rem; + width: 260px; display: flex; justify-content: space-between; - font-size: 0.875rem; - color: var(--color-slate-400); + font-size: 11px; + font-family: var(--font-sys); + color: var(--win-text); } .totals-row span:last-child { - color: var(--color-slate-600); - text-align: right; + font-weight: bold; + color: #000; } .totals-total { - border-top: 1px solid var(--color-slate-200); - width: 18rem; - margin-top: 0.5rem; - padding-top: 1rem; + border-top: 1px solid var(--win-btn-shadow); + width: 260px; + margin-top: 4px; + padding-top: 4px; display: flex; justify-content: space-between; align-items: center; } .totals-total-label { - font-family: var(--font-display); - font-weight: 700; - color: var(--color-slate-800); - font-size: 1rem; + font-family: var(--font-sys); + font-weight: bold; + color: #000080; + font-size: 12px; } .totals-total-value { - font-family: var(--font-display); - font-weight: 700; - color: var(--color-accent); - font-size: 1.25rem; + font-family: var(--font-sys); + font-weight: bold; + color: #800000; + font-size: 13px; } -/* โ”€โ”€ Note โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Note โ†’ Windows "info" box โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .invoice-note { - margin-top: 2.5rem; - background: var(--color-slate-50); - border: 1px solid var(--color-slate-100); - border-radius: 0.75rem; - padding: 1.25rem 1.5rem; + margin-top: 8px; + background: #ffffd0; + border-top: 1px solid var(--win-btn-dark); + border-left: 1px solid var(--win-btn-dark); + border-bottom: 1px solid var(--win-btn-light); + border-right: 1px solid var(--win-btn-light); + border-radius: 0; + padding: 5px 8px; } .invoice-note-title { - font-family: var(--font-display); - color: var(--color-accent); - font-size: 0.75rem; - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.1em; + font-family: var(--font-sys); + font-size: 11px; + font-weight: bold; + color: #000080; + text-transform: none; + letter-spacing: 0; } .invoice-note-text { - color: var(--color-slate-500); - font-size: 0.875rem; - margin-top: 0.5rem; + font-family: var(--font-sys); + font-size: 11px; + color: var(--win-text); + margin-top: 2px; } -/* โ”€โ”€ Footer โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Footer โ†’ Status bar โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .invoice-footer { - padding: 1.5rem 2.5rem; - border-top: 1px solid var(--color-slate-100); + padding: 4px 8px; + background: var(--win-gray); + border-top: 2px solid var(--win-btn-light); display: flex; - flex-direction: column; - gap: 0.375rem; + flex-direction: row; + justify-content: space-between; + align-items: center; + gap: 8px; } .footer-contact { - color: var(--color-slate-400); - font-size: 0.75rem; + font-family: var(--font-sys); + font-size: 10px; + color: var(--win-text); + border-top: 1px solid var(--win-btn-shadow); + border-left: 1px solid var(--win-btn-shadow); + border-bottom: 1px solid var(--win-btn-light); + border-right: 1px solid var(--win-btn-light); + padding: 1px 4px; + flex: 1; + background: var(--win-gray); } .footer-notice { - color: var(--color-accent); - font-size: 0.75rem; - font-weight: 600; - font-family: var(--font-display); -} - -/* โ”€โ”€ Theme Picker โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ - -#theme-picker { - position: fixed; - top: 2rem; - right: 2rem; - z-index: 50; - display: flex; - gap: 0.5rem; -} - -.theme-swatch { - width: 2rem; - height: 2rem; - border-radius: 50%; - border: 2px solid transparent; + font-family: var(--font-sys); + font-size: 10px; + font-weight: normal; + color: var(--win-gray-dark); + border-top: 1px solid var(--win-btn-shadow); + border-left: 1px solid var(--win-btn-shadow); + border-bottom: 1px solid var(--win-btn-light); + border-right: 1px solid var(--win-btn-light); + padding: 1px 4px; + background: var(--win-gray); +} + +/* โ”€โ”€ Window control buttons (ร— โ–ก _) in title โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +.date-box .header-label, +.bill-to .header-label { + color: var(--win-gray-dark); +} + +/* โ”€โ”€ Window Control Buttons โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +.win-ctrl { + font-family: var(--font-sys); + font-size: 11px; + font-weight: bold; + background: var(--win-gray); + color: var(--win-text); + border-top: 2px solid var(--win-btn-light); + border-left: 2px solid var(--win-btn-light); + border-bottom: 2px solid var(--win-btn-dark); + border-right: 2px solid var(--win-btn-dark); + width: 16px; + height: 14px; cursor: pointer; - padding: 0; - overflow: hidden; display: flex; - flex-direction: column; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - transition: - transform 0.2s, - border-color 0.2s; + align-items: center; + justify-content: center; + padding: 0; + line-height: 1; } -.theme-swatch:hover { - transform: scale(1.15); +.win-ctrl:active { + border-top: 2px solid var(--win-btn-dark); + border-left: 2px solid var(--win-btn-dark); + border-bottom: 2px solid var(--win-btn-light); + border-right: 2px solid var(--win-btn-light); } -.theme-swatch.active { - border-color: var(--color-accent); - box-shadow: 0 0 0 2px var(--color-accent); +.win-ctrl--close { + background: var(--win-gray); + color: #800000; } -.theme-swatch span { - display: block; - flex: 1; -} +.win-ctrl--close:hover { background: #c0392b; color: #fff; } +.win-ctrl--min:hover, +.win-ctrl--max:hover { background: var(--win-btn-hilite); } -/* โ”€โ”€ Print โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Print โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ @media print { - @page { - margin: 0; - } + @page { margin: 0; } #action-btns, - #theme-picker { - display: none !important; - } + #theme-picker { display: none !important; } - .no-print { - display: none !important; - } + .no-print { display: none !important; } body { background: white !important; @@ -505,7 +784,6 @@ body { .invoice-card { box-shadow: none !important; - border-radius: 0 !important; max-width: 100% !important; width: 100% !important; min-height: 100vh !important; @@ -513,13 +791,8 @@ body { flex-direction: column !important; } - .invoice-content { - flex: 1 !important; - } - - .invoice-footer { - margin-top: auto !important; - } + .invoice-content { flex: 1 !important; } + .invoice-footer { margin-top: auto !important; } * { -webkit-print-color-adjust: exact !important; From c23039994b3f200e4aed0f5b06753915c67aaaf9 Mon Sep 17 00:00:00 2001 From: v0 Date: Wed, 1 Apr 2026 20:30:50 +0000 Subject: [PATCH 2/3] feat: add theme-specific CSS variables for Win2000 style Restore theme-specific overrides for color schemes. Co-authored-by: Sasha Drapkin <102924575+CodeAndParty@users.noreply.github.com> --- style.css | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/style.css b/style.css index ebdd260..c04182b 100644 --- a/style.css +++ b/style.css @@ -27,6 +27,48 @@ --font-sys: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif; } +/* โ”€โ”€ Theme Variations โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +[data-theme="navy"] { + --win-desktop: #008080; + --win-title-from: #000080; + --win-title-to: #1084d0; + --win-blue-sel: #000080; + --win-blue-sel-text: #ffffff; +} + +[data-theme="emerald"] { + --win-desktop: #004d40; + --win-title-from: #004d40; + --win-title-to: #26a69a; + --win-blue-sel: #00695c; + --win-blue-sel-text: #ffffff; +} + +[data-theme="sunset"] { + --win-desktop: #5d4037; + --win-title-from: #bf360c; + --win-title-to: #ff9800; + --win-blue-sel: #e65100; + --win-blue-sel-text: #ffffff; +} + +[data-theme="rose"] { + --win-desktop: #4a148c; + --win-title-from: #880e4f; + --win-title-to: #ec407a; + --win-blue-sel: #ad1457; + --win-blue-sel-text: #ffffff; +} + +[data-theme="slate"] { + --win-desktop: #37474f; + --win-title-from: #263238; + --win-title-to: #607d8b; + --win-blue-sel: #455a64; + --win-blue-sel-text: #ffffff; +} + *, *::before, *::after { From d9437424e37652af379b806b56abe51c0fb76441 Mon Sep 17 00:00:00 2001 From: v0 Date: Wed, 1 Apr 2026 20:35:19 +0000 Subject: [PATCH 3/3] feat: restore modern design and add Win2000 easter egg Restore original design and toggle retro style via secret trigger. Co-authored-by: Sasha Drapkin <102924575+CodeAndParty@users.noreply.github.com> --- index.html | 34 +- invoice.js | 54 ++++ style.css | 873 +++++++++++++++++----------------------------------- win2000.css | 534 ++++++++++++++++++++++++++++++++ 4 files changed, 881 insertions(+), 614 deletions(-) create mode 100644 win2000.css diff --git a/index.html b/index.html index 387277f..9e4352c 100644 --- a/index.html +++ b/index.html @@ -3,15 +3,16 @@ - Invoice Generator - Microsoft Windows + Invoice Generator + - +
@@ -76,7 +77,7 @@ d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" /> - Reset Form + Reset
@@ -100,10 +101,9 @@
- ๐Ÿงพ -

Invoice Generator

+

INVOICE

-  โ€” #0000 + #0000

From

@@ -118,12 +118,6 @@

Invoice Generator

Your Address

- -
- - - -
diff --git a/invoice.js b/invoice.js index ef9c73c..b07648b 100644 --- a/invoice.js +++ b/invoice.js @@ -1,5 +1,59 @@ const STORAGE_KEY = "invoiceData"; const THEME_KEY = "invoiceTheme"; +const WIN2000_KEY = "win2000Mode"; + +// โ”€โ”€ Windows 2000 Easter Egg โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ + +const SECRET_CODE = "win2000"; +let secretBuffer = ""; + +function toggleWin2000(forceState) { + const isActive = forceState !== undefined ? forceState : !document.body.classList.contains("win2000"); + document.body.classList.toggle("win2000", isActive); + localStorage.setItem(WIN2000_KEY, isActive ? "true" : "false"); + + // Fun audio feedback (optional, won't error if not supported) + if (isActive) { + try { + const ctx = new (window.AudioContext || window.webkitAudioContext)(); + const osc = ctx.createOscillator(); + const gain = ctx.createGain(); + osc.connect(gain); + gain.connect(ctx.destination); + osc.frequency.value = 800; + gain.gain.value = 0.1; + osc.start(); + osc.stop(ctx.currentTime + 0.15); + } catch (e) { /* silent fail */ } + } +} + +// Restore saved win2000 state +if (localStorage.getItem(WIN2000_KEY) === "true") { + document.body.classList.add("win2000"); +} + +// Listen for secret code typing +document.addEventListener("keydown", (e) => { + // Don't capture when typing in editable fields + if (e.target.isContentEditable || e.target.tagName === "INPUT" || e.target.tagName === "TEXTAREA") { + return; + } + + // Build the buffer + secretBuffer += e.key.toLowerCase(); + + // Keep only last N characters (length of secret) + if (secretBuffer.length > SECRET_CODE.length) { + secretBuffer = secretBuffer.slice(-SECRET_CODE.length); + } + + // Check for match + if (secretBuffer === SECRET_CODE) { + toggleWin2000(); + secretBuffer = ""; + } +}); // โ”€โ”€ Theme โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ diff --git a/style.css b/style.css index c04182b..db7eee4 100644 --- a/style.css +++ b/style.css @@ -1,72 +1,63 @@ -/* โ”€โ”€ Windows 2000 / Classic Windows Style โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ - -@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&display=swap'); - :root { - /* Win2000 system colors */ - --win-desktop: #008080; /* teal desktop */ - --win-gray: #d4d0c8; /* classic window gray */ - --win-gray-dark: #808080; - --win-gray-darker: #404040; - --win-gray-light: #ffffff; - --win-title-from: #000080; /* navy titlebar gradient start */ - --win-title-to: #1084d0; /* titlebar gradient end */ - --win-title-text: #ffffff; - --win-btn-face: #d4d0c8; - --win-btn-shadow: #808080; - --win-btn-dark: #404040; - --win-btn-light: #ffffff; - --win-btn-hilite: #e8e4dc; - --win-inset: #808080; - --win-text: #000000; - --win-blue-sel: #000080; - --win-blue-sel-text: #ffffff; - --win-link: #0000ee; - - /* font */ - --font-sys: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif; -} - -/* โ”€โ”€ Theme Variations โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + --color-primary: #0f1535; + --color-primary-mid: #1a2547; + --color-accent: #5b8ef5; + --color-accent-light: #6b9cf6; + --color-body-bg: #f0f2f7; + --color-card-bg: #fff; + --color-slate-50: #f8fafc; + --color-slate-100: #f1f5f9; + --color-slate-200: #e2e8f0; + --color-slate-300: #cbd5e1; + --color-slate-400: #94a3b8; + --color-slate-500: #64748b; + --color-slate-600: #475569; + --color-slate-700: #334155; + --color-slate-800: #1e293b; + --font-display: "Sora", sans-serif; + --font-body: "DM Sans", sans-serif; +} + +/* โ”€โ”€ Themes โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ [data-theme="navy"] { - --win-desktop: #008080; - --win-title-from: #000080; - --win-title-to: #1084d0; - --win-blue-sel: #000080; - --win-blue-sel-text: #ffffff; + --color-primary: #0f1535; + --color-primary-mid: #1a2547; + --color-accent: #5b8ef5; + --color-accent-light: #6b9cf6; + --color-body-bg: #f0f2f7; } [data-theme="emerald"] { - --win-desktop: #004d40; - --win-title-from: #004d40; - --win-title-to: #26a69a; - --win-blue-sel: #00695c; - --win-blue-sel-text: #ffffff; + --color-primary: #062e1e; + --color-primary-mid: #0d3b29; + --color-accent: #34d399; + --color-accent-light: #6ee7b7; + --color-body-bg: #ecfdf5; } [data-theme="sunset"] { - --win-desktop: #5d4037; - --win-title-from: #bf360c; - --win-title-to: #ff9800; - --win-blue-sel: #e65100; - --win-blue-sel-text: #ffffff; + --color-primary: #431407; + --color-primary-mid: #5c1d0e; + --color-accent: #f59e0b; + --color-accent-light: #fbbf24; + --color-body-bg: #fffbeb; } [data-theme="rose"] { - --win-desktop: #4a148c; - --win-title-from: #880e4f; - --win-title-to: #ec407a; - --win-blue-sel: #ad1457; - --win-blue-sel-text: #ffffff; + --color-primary: #2d0a1e; + --color-primary-mid: #3d1029; + --color-accent: #f472b6; + --color-accent-light: #f9a8d4; + --color-body-bg: #fdf2f8; } [data-theme="slate"] { - --win-desktop: #37474f; - --win-title-from: #263238; - --win-title-to: #607d8b; - --win-blue-sel: #455a64; - --win-blue-sel-text: #ffffff; + --color-primary: #1e293b; + --color-primary-mid: #334155; + --color-accent: #94a3b8; + --color-accent-light: #cbd5e1; + --color-body-bg: #f1f5f9; } *, @@ -78,392 +69,161 @@ } body { - font-family: var(--font-sys); - font-size: 11px; - background: var(--win-desktop); + font-family: var(--font-body); + background: var(--color-body-bg); min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; - padding: 2rem 1rem 5rem; - /* tiled desktop texture */ - background-image: repeating-linear-gradient( - 45deg, - rgba(0,0,0,0.03) 0px, - rgba(0,0,0,0.03) 1px, - transparent 1px, - transparent 8px - ); -} - -/* โ”€โ”€ Raised / Sunken bevel mixins (via reusable classes) โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ - -.raised { - border-top: 2px solid var(--win-btn-light); - border-left: 2px solid var(--win-btn-light); - border-bottom: 2px solid var(--win-btn-dark); - border-right: 2px solid var(--win-btn-dark); + padding: 3rem 1rem; } -.sunken { - border-top: 2px solid var(--win-btn-dark); - border-left: 2px solid var(--win-btn-dark); - border-bottom: 2px solid var(--win-btn-light); - border-right: 2px solid var(--win-btn-light); -} - -/* โ”€โ”€ Action Buttons (fixed toolbar at bottom right) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Action Buttons โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ #action-btns { position: fixed; - bottom: 1.5rem; - right: 1.5rem; - z-index: 100; + bottom: 2rem; + right: 2rem; + z-index: 50; display: flex; flex-direction: column; - gap: 0.5rem; + gap: 0.75rem; } .action-btn { - font-family: var(--font-sys); - font-size: 11px; - background: var(--win-gray); - color: var(--win-text); - border-top: 2px solid var(--win-btn-light); - border-left: 2px solid var(--win-btn-light); - border-bottom: 2px solid var(--win-btn-dark); - border-right: 2px solid var(--win-btn-dark); - padding: 4px 12px; - cursor: pointer; display: flex; align-items: center; - gap: 6px; - white-space: nowrap; - min-width: 130px; - justify-content: center; + gap: 0.625rem; + color: #fff; + font-family: var(--font-display); + font-weight: 600; + font-size: 0.875rem; + padding: 0.875rem 1.25rem; + border-radius: 0.75rem; + border: none; + box-shadow: 0 20px 25px -5px rgba(148, 163, 184, 0.3); + transition: all 0.2s; + cursor: pointer; } -.action-btn:active { - border-top: 2px solid var(--win-btn-dark); - border-left: 2px solid var(--win-btn-dark); - border-bottom: 2px solid var(--win-btn-light); - border-right: 2px solid var(--win-btn-light); - padding: 5px 11px 3px 13px; +.action-btn:hover { + transform: scale(1.05); } -.action-btn svg { - width: 14px; - height: 14px; +.action-btn--reset { + background: var(--color-slate-600); } -.action-btn--reset svg { color: #444; } -.action-btn--download svg { color: #000080; } - -/* โ”€โ”€ Theme Picker โ†’ repurposed as a "Start" toolbar โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ - -#theme-picker { - position: fixed; - bottom: 0; - left: 0; - right: 0; - z-index: 200; - height: 30px; - background: var(--win-gray); - border-top: 2px solid var(--win-btn-light); - display: flex; - align-items: center; - gap: 4px; - padding: 0 6px; -} - -/* start button */ -#theme-picker::before { - content: "๐ŸชŸ Start"; - font-family: var(--font-sys); - font-size: 11px; - font-weight: bold; - background: var(--win-gray); - border-top: 2px solid var(--win-btn-light); - border-left: 2px solid var(--win-btn-light); - border-bottom: 2px solid var(--win-btn-dark); - border-right: 2px solid var(--win-btn-dark); - padding: 2px 10px; - margin-right: 8px; - cursor: pointer; +.action-btn--reset:hover { + background: var(--color-slate-700); } -/* divider */ -#theme-picker::after { - content: ""; - display: block; - width: 2px; - height: 20px; - border-left: 1px solid var(--win-btn-shadow); - border-right: 1px solid var(--win-btn-light); - margin-right: 8px; +.action-btn--download { + background: var(--color-primary); } -.theme-swatch { - height: 22px; - width: auto; - min-width: 60px; - padding: 2px 8px; - border-top: 2px solid var(--win-btn-light); - border-left: 2px solid var(--win-btn-light); - border-bottom: 2px solid var(--win-btn-dark); - border-right: 2px solid var(--win-btn-dark); - background: var(--win-gray); - cursor: pointer; - font-family: var(--font-sys); - font-size: 10px; - color: var(--win-text); - display: flex; - align-items: center; - gap: 4px; - overflow: visible; - border-radius: 0; - box-shadow: none; +.action-btn--download:hover { + background: var(--color-primary-mid); + box-shadow: 0 25px 50px -12px rgba(91, 142, 245, 0.2); } -.theme-swatch:hover { - transform: none; - filter: brightness(1.05); -} - -.theme-swatch.active { - border-top: 2px solid var(--win-btn-dark); - border-left: 2px solid var(--win-btn-dark); - border-bottom: 2px solid var(--win-btn-light); - border-right: 2px solid var(--win-btn-light); - box-shadow: none; +.action-btn svg { + width: 1rem; + height: 1rem; } -.theme-swatch span { - display: inline-block; - flex: none; - width: 10px; - height: 10px; - border: 1px solid #666; - flex-shrink: 0; +.action-btn--download svg { + color: var(--color-accent); } -/* โ”€โ”€ Invoice Card โ†’ Classic Window โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Invoice Card โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .invoice-card { - background: var(--win-gray); + background: #fff; width: 100%; - max-width: 680px; - border-top: 2px solid var(--win-btn-light); - border-left: 2px solid var(--win-btn-light); - border-bottom: 2px solid var(--win-btn-dark); - border-right: 2px solid var(--win-btn-dark); - border-radius: 0; - box-shadow: 2px 2px 8px rgba(0,0,0,0.5); - overflow: visible; + max-width: 48rem; + box-shadow: 0 25px 50px -12px rgba(203, 213, 225, 0.6); + border-radius: 0.75rem; + overflow: hidden; } -/* โ”€โ”€ Header โ†’ Titlebar + fields โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Header โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .invoice-header { - background: linear-gradient(to right, var(--win-title-from), var(--win-title-to)); - padding: 4px 6px; + background: var(--color-primary); + padding: 2.5rem; display: flex; justify-content: space-between; - align-items: center; - border: none; - border-left: 0; -} - -/* Titlebar text area */ -.invoice-header > div:first-child { - display: flex; - align-items: center; - gap: 8px; - flex: 1; + align-items: flex-start; + border-left: 4px solid var(--color-accent); } .invoice-title { - font-family: var(--font-sys); - font-size: 12px; - font-weight: bold; - color: var(--win-title-text); - letter-spacing: 0; + font-family: var(--font-display); + color: #fff; + font-size: 3rem; + font-weight: 800; + letter-spacing: -0.025em; line-height: 1; - text-shadow: 1px 1px 0 rgba(0,0,0,0.5); } .invoice-number { - font-family: var(--font-sys); - font-size: 11px; - color: rgba(255,255,255,0.85); - margin: 0; + color: var(--color-slate-400); + margin-top: 0.5rem; + font-size: 0.875rem; + font-family: var(--font-display); } -.invoice-number span { - font-weight: bold; -} - -/* Window control buttons */ -.header-right { - display: flex; - align-items: center; - gap: 2px; -} - -/* Override layout for header-right in our new titlebar */ -.invoice-header .header-right { - flex-direction: row; - align-items: center; -} - -/* โ”€โ”€ Sub-header panel below titlebar โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ - -/* We create a second info panel using a wrapping trick */ -.invoice-card .invoice-header { - flex-direction: column; - align-items: stretch; - padding: 0; -} - -/* Title bar row */ -.invoice-card .invoice-header::before { - display: none; /* handled by flex children */ -} - -/* Re-structure: since we can't change HTML much, we restyle the - header's first-child div to look like a proper titlebar row */ - -.invoice-header > div:first-child { - background: linear-gradient(to right, #000080, #1084d0); - padding: 3px 6px; - display: flex; - align-items: center; - gap: 8px; -} - -.invoice-header > .header-right { - background: var(--win-gray); - padding: 8px 10px; - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: flex-start; - gap: 12px; -} - -/* โ”€โ”€ Within titlebar left side โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ - .header-from { - margin-top: 0; - display: flex; - flex-direction: column; - gap: 0; + margin-top: 1.5rem; } .header-label { - font-family: var(--font-sys); - font-size: 10px; - color: var(--win-gray-dark); - text-transform: none; - letter-spacing: 0; - font-weight: bold; - margin-bottom: 1px; -} - -/* Labels inside titlebar */ -.invoice-header > div:first-child .header-label { - color: rgba(255,255,255,0.7); - font-size: 9px; + color: var(--color-slate-400); + font-size: 0.75rem; + text-transform: uppercase; + letter-spacing: 0.1em; + font-weight: 600; + font-family: var(--font-display); } .header-name { - font-family: var(--font-sys); - font-size: 11px; - font-weight: bold; - color: var(--win-text); - margin: 0; - cursor: text; - min-width: 80px; -} - -/* Names inside titlebar */ -.invoice-header > div:first-child .header-name { color: #fff; + font-family: var(--font-display); + font-weight: 600; + font-size: 1rem; + margin-top: 0.25rem; } .header-address { - font-family: var(--font-sys); - font-size: 11px; - color: var(--win-gray-dark); - margin: 0; - cursor: text; -} - -/* Address in titlebar */ -.invoice-header > div:first-child .header-address { - color: rgba(255,255,255,0.75); + color: var(--color-slate-400); + font-size: 0.875rem; + margin-top: 0.125rem; } -/* โ”€โ”€ Contenteditable fields โ†’ Windows inset look โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ - -[contenteditable="true"] { - outline: none; - border-top: 1px solid var(--win-btn-dark); - border-left: 1px solid var(--win-btn-dark); - border-bottom: 1px solid var(--win-btn-light); - border-right: 1px solid var(--win-btn-light); - background: #fff; - padding: 1px 3px; - font-family: var(--font-sys); - font-size: 11px; - color: #000; - min-width: 60px; -} - -[contenteditable="true"]:focus { - background: #fff; - outline: 1px dotted #000; - outline-offset: -2px; -} - -/* In titlebar, editable fields stay white-ish */ -.invoice-header > div:first-child [contenteditable="true"] { - background: rgba(255,255,255,0.15); - border-color: rgba(0,0,0,0.3); - color: #fff; +.header-right { + display: flex; + flex-direction: column; + align-items: flex-end; + gap: 1.25rem; } -/* โ”€โ”€ Date Box โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Date Box โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .date-box { - background: var(--win-gray); - border: none; - border-radius: 0; - padding: 0; - text-align: left; - display: flex; - flex-direction: column; - gap: 2px; + background: var(--color-primary-mid); + border-radius: 0.75rem; + padding: 1rem 1.5rem; + text-align: right; } .date-display { - font-family: var(--font-sys); - font-size: 11px; - font-weight: bold; - color: var(--win-text); - margin: 0; + color: #fff; + font-family: var(--font-display); + font-weight: 700; + font-size: 1.125rem; + margin-top: 0.25rem; cursor: pointer; - border-top: 1px solid var(--win-btn-dark); - border-left: 1px solid var(--win-btn-dark); - border-bottom: 1px solid var(--win-btn-light); - border-right: 1px solid var(--win-btn-light); - background: #fff; - padding: 2px 4px; - min-width: 120px; -} - -.date-display:hover { - background: #fffff0; } .date-input-hidden { @@ -472,71 +232,60 @@ body { pointer-events: none; } -/* โ”€โ”€ Bill To โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Bill To โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .bill-to { - text-align: left; + text-align: right; } -/* โ”€โ”€ Content area โ†’ "client area" in Win2000 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Table โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .invoice-content { - padding: 8px 10px 10px; - background: var(--win-gray); - border-top: 1px solid var(--win-btn-shadow); + padding: 2.5rem; } -/* โ”€โ”€ Table โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ - .invoice-table { width: 100%; border-collapse: collapse; - border-top: 1px solid var(--win-btn-dark); - border-left: 1px solid var(--win-btn-dark); - border-bottom: 1px solid var(--win-btn-light); - border-right: 1px solid var(--win-btn-light); - background: #fff; } .invoice-table thead tr { - background: var(--win-blue-sel); + background: var(--color-accent); } .invoice-table th { - font-family: var(--font-sys); - font-size: 11px; - font-weight: bold; - color: var(--win-blue-sel-text); - text-transform: none; - letter-spacing: 0; - padding: 4px 8px; - text-align: left; - border-bottom: 1px solid var(--win-btn-dark); - border-right: 1px solid rgba(255,255,255,0.2); + font-family: var(--font-display); + color: #fff; + font-size: 0.75rem; + text-transform: uppercase; + letter-spacing: 0.1em; + font-weight: 600; + padding: 0.875rem 1.25rem; } -.invoice-table th:first-child { border-radius: 0; } -.invoice-table th:nth-child(2) { text-align: right; } -.invoice-table th:last-child { border-radius: 0; width: 28px; text-align: center; } +.invoice-table th:first-child { + text-align: left; + border-radius: 0.5rem 0 0 0.5rem; +} -.line-item { - border-bottom: 1px solid #e0e0e0; +.invoice-table th:nth-child(2) { + text-align: right; } -.line-item:nth-child(even) { - background: #f5f5f5; +.invoice-table th:last-child { + text-align: center; + border-radius: 0 0.5rem 0.5rem 0; + width: 2.5rem; } -.line-item:hover { - background: #d0d8e8; +.line-item { + border-bottom: 1px solid var(--color-slate-100); } .line-item td { - padding: 3px 8px; - font-size: 11px; - font-family: var(--font-sys); - color: var(--win-text); - background: transparent; + padding: 1.5rem 1.25rem; + font-size: 0.875rem; + color: var(--color-slate-700); } .line-item td[data-field="amount"] { @@ -545,278 +294,208 @@ body { .line-item td:last-child { text-align: center; - padding: 2px; + padding-left: 0.75rem; + padding-right: 0.75rem; } -.line-item td [contenteditable="true"] { - border: none; - background: transparent; - padding: 0; - min-width: 40px; - width: 100%; - display: block; -} - -.line-item td [contenteditable="true"]:focus { - border-top: 1px solid var(--win-btn-dark); - border-left: 1px solid var(--win-btn-dark); - border-bottom: 1px solid var(--win-btn-light); - border-right: 1px solid var(--win-btn-light); - background: #fff; - outline: none; -} - -/* โ”€โ”€ Remove Row Button โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ - .remove-row { - background: var(--win-gray); - border-top: 1px solid var(--win-btn-light); - border-left: 1px solid var(--win-btn-light); - border-bottom: 1px solid var(--win-btn-dark); - border-right: 1px solid var(--win-btn-dark); - color: var(--win-text); + background: none; + border: none; + color: var(--color-slate-300); cursor: pointer; - padding: 1px 4px; - font-size: 10px; - line-height: 1; - width: 20px; - height: 18px; - display: flex; - align-items: center; - justify-content: center; + transition: color 0.2s; } .remove-row:hover { - background: var(--win-btn-hilite); -} - -.remove-row:active { - border-top: 1px solid var(--win-btn-dark); - border-left: 1px solid var(--win-btn-dark); - border-bottom: 1px solid var(--win-btn-light); - border-right: 1px solid var(--win-btn-light); + color: #ef4444; } .remove-row svg { - width: 10px; - height: 10px; - color: #800000; + width: 1rem; + height: 1rem; } -/* โ”€โ”€ Add Row Button โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Add Row โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .add-row-wrap { - margin-top: 6px; + margin-top: 0.75rem; display: flex; - justify-content: flex-start; + justify-content: center; } #addRowBtn { - font-family: var(--font-sys); - font-size: 11px; - background: var(--win-gray); - color: var(--win-text); - border-top: 2px solid var(--win-btn-light); - border-left: 2px solid var(--win-btn-light); - border-bottom: 2px solid var(--win-btn-dark); - border-right: 2px solid var(--win-btn-dark); - padding: 3px 10px; - cursor: pointer; display: flex; align-items: center; - gap: 5px; + gap: 0.375rem; + color: var(--color-accent); + font-size: 0.875rem; + font-family: var(--font-display); + font-weight: 600; + background: none; + border: none; + cursor: pointer; + transition: color 0.2s; } -#addRowBtn:hover { background: var(--win-btn-hilite); } -#addRowBtn:active { - border-top: 2px solid var(--win-btn-dark); - border-left: 2px solid var(--win-btn-dark); - border-bottom: 2px solid var(--win-btn-light); - border-right: 2px solid var(--win-btn-light); - padding: 4px 9px 2px 11px; +#addRowBtn:hover { + color: var(--color-accent-light); } #addRowBtn svg { - width: 12px; - height: 12px; + width: 1rem; + height: 1rem; } -/* โ”€โ”€ Totals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Totals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .totals { - margin-top: 8px; + margin-top: 1.5rem; display: flex; flex-direction: column; align-items: flex-end; - gap: 2px; - padding: 6px; - background: var(--win-gray); - border-top: 1px solid var(--win-btn-dark); - border-left: 1px solid var(--win-btn-dark); - border-bottom: 1px solid var(--win-btn-light); - border-right: 1px solid var(--win-btn-light); + gap: 0.5rem; } .totals-row { - width: 260px; + width: 18rem; display: flex; justify-content: space-between; - font-size: 11px; - font-family: var(--font-sys); - color: var(--win-text); + font-size: 0.875rem; + color: var(--color-slate-400); } .totals-row span:last-child { - font-weight: bold; - color: #000; + color: var(--color-slate-600); + text-align: right; } .totals-total { - border-top: 1px solid var(--win-btn-shadow); - width: 260px; - margin-top: 4px; - padding-top: 4px; + border-top: 1px solid var(--color-slate-200); + width: 18rem; + margin-top: 0.5rem; + padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; } .totals-total-label { - font-family: var(--font-sys); - font-weight: bold; - color: #000080; - font-size: 12px; + font-family: var(--font-display); + font-weight: 700; + color: var(--color-slate-800); + font-size: 1rem; } .totals-total-value { - font-family: var(--font-sys); - font-weight: bold; - color: #800000; - font-size: 13px; + font-family: var(--font-display); + font-weight: 700; + color: var(--color-accent); + font-size: 1.25rem; } -/* โ”€โ”€ Note โ†’ Windows "info" box โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Note โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .invoice-note { - margin-top: 8px; - background: #ffffd0; - border-top: 1px solid var(--win-btn-dark); - border-left: 1px solid var(--win-btn-dark); - border-bottom: 1px solid var(--win-btn-light); - border-right: 1px solid var(--win-btn-light); - border-radius: 0; - padding: 5px 8px; + margin-top: 2.5rem; + background: var(--color-slate-50); + border: 1px solid var(--color-slate-100); + border-radius: 0.75rem; + padding: 1.25rem 1.5rem; } .invoice-note-title { - font-family: var(--font-sys); - font-size: 11px; - font-weight: bold; - color: #000080; - text-transform: none; - letter-spacing: 0; + font-family: var(--font-display); + color: var(--color-accent); + font-size: 0.75rem; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.1em; } .invoice-note-text { - font-family: var(--font-sys); - font-size: 11px; - color: var(--win-text); - margin-top: 2px; + color: var(--color-slate-500); + font-size: 0.875rem; + margin-top: 0.5rem; } -/* โ”€โ”€ Footer โ†’ Status bar โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Footer โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ .invoice-footer { - padding: 4px 8px; - background: var(--win-gray); - border-top: 2px solid var(--win-btn-light); + padding: 1.5rem 2.5rem; + border-top: 1px solid var(--color-slate-100); display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; - gap: 8px; + flex-direction: column; + gap: 0.375rem; } .footer-contact { - font-family: var(--font-sys); - font-size: 10px; - color: var(--win-text); - border-top: 1px solid var(--win-btn-shadow); - border-left: 1px solid var(--win-btn-shadow); - border-bottom: 1px solid var(--win-btn-light); - border-right: 1px solid var(--win-btn-light); - padding: 1px 4px; - flex: 1; - background: var(--win-gray); + color: var(--color-slate-400); + font-size: 0.75rem; } .footer-notice { - font-family: var(--font-sys); - font-size: 10px; - font-weight: normal; - color: var(--win-gray-dark); - border-top: 1px solid var(--win-btn-shadow); - border-left: 1px solid var(--win-btn-shadow); - border-bottom: 1px solid var(--win-btn-light); - border-right: 1px solid var(--win-btn-light); - padding: 1px 4px; - background: var(--win-gray); -} - -/* โ”€โ”€ Window control buttons (ร— โ–ก _) in title โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ - -.date-box .header-label, -.bill-to .header-label { - color: var(--win-gray-dark); -} - -/* โ”€โ”€ Window Control Buttons โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ - -.win-ctrl { - font-family: var(--font-sys); - font-size: 11px; - font-weight: bold; - background: var(--win-gray); - color: var(--win-text); - border-top: 2px solid var(--win-btn-light); - border-left: 2px solid var(--win-btn-light); - border-bottom: 2px solid var(--win-btn-dark); - border-right: 2px solid var(--win-btn-dark); - width: 16px; - height: 14px; - cursor: pointer; + color: var(--color-accent); + font-size: 0.75rem; + font-weight: 600; + font-family: var(--font-display); +} + +/* โ”€โ”€ Theme Picker โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +#theme-picker { + position: fixed; + top: 2rem; + right: 2rem; + z-index: 50; display: flex; - align-items: center; - justify-content: center; + gap: 0.5rem; +} + +.theme-swatch { + width: 2rem; + height: 2rem; + border-radius: 50%; + border: 2px solid transparent; + cursor: pointer; padding: 0; - line-height: 1; + overflow: hidden; + display: flex; + flex-direction: column; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); + transition: + transform 0.2s, + border-color 0.2s; } -.win-ctrl:active { - border-top: 2px solid var(--win-btn-dark); - border-left: 2px solid var(--win-btn-dark); - border-bottom: 2px solid var(--win-btn-light); - border-right: 2px solid var(--win-btn-light); +.theme-swatch:hover { + transform: scale(1.15); } -.win-ctrl--close { - background: var(--win-gray); - color: #800000; +.theme-swatch.active { + border-color: var(--color-accent); + box-shadow: 0 0 0 2px var(--color-accent); } -.win-ctrl--close:hover { background: #c0392b; color: #fff; } -.win-ctrl--min:hover, -.win-ctrl--max:hover { background: var(--win-btn-hilite); } +.theme-swatch span { + display: block; + flex: 1; +} -/* โ”€โ”€ Print โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ +/* โ”€โ”€ Print โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ @media print { - @page { margin: 0; } + @page { + margin: 0; + } #action-btns, - #theme-picker { display: none !important; } + #theme-picker { + display: none !important; + } - .no-print { display: none !important; } + .no-print { + display: none !important; + } body { background: white !important; @@ -826,6 +505,7 @@ body { .invoice-card { box-shadow: none !important; + border-radius: 0 !important; max-width: 100% !important; width: 100% !important; min-height: 100vh !important; @@ -833,8 +513,13 @@ body { flex-direction: column !important; } - .invoice-content { flex: 1 !important; } - .invoice-footer { margin-top: auto !important; } + .invoice-content { + flex: 1 !important; + } + + .invoice-footer { + margin-top: auto !important; + } * { -webkit-print-color-adjust: exact !important; diff --git a/win2000.css b/win2000.css new file mode 100644 index 0000000..de387cb --- /dev/null +++ b/win2000.css @@ -0,0 +1,534 @@ +/* โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• + Windows 2000 Easter Egg Theme + Activated by typing "win2000" anywhere on the page + โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• */ + +@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;700&display=swap'); + +/* Only apply when body has .win2000 class */ +body.win2000 { + --win-desktop: #008080; + --win-gray: #d4d0c8; + --win-gray-dark: #808080; + --win-gray-darker: #404040; + --win-gray-light: #ffffff; + --win-title-from: #000080; + --win-title-to: #1084d0; + --win-title-text: #ffffff; + --win-btn-face: #d4d0c8; + --win-btn-shadow: #808080; + --win-btn-dark: #404040; + --win-btn-light: #ffffff; + --win-btn-hilite: #e8e4dc; + --win-inset: #808080; + --win-text: #000000; + --win-blue-sel: #000080; + --win-blue-sel-text: #ffffff; + --win-link: #0000ee; + --font-sys: "Pixelify Sans", "MS Sans Serif", Tahoma, Arial, sans-serif; + + font-family: var(--font-sys) !important; + font-size: 12px; + background: var(--win-desktop) !important; + background-image: repeating-linear-gradient( + 45deg, + rgba(0,0,0,0.03) 0px, + rgba(0,0,0,0.03) 1px, + transparent 1px, + transparent 8px + ) !important; + padding: 2rem 1rem 5rem !important; +} + +/* โ”€โ”€ Theme Variations for Win2000 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +body.win2000[data-theme="navy"] { + --win-desktop: #008080; + --win-title-from: #000080; + --win-title-to: #1084d0; + --win-blue-sel: #000080; +} + +body.win2000[data-theme="emerald"] { + --win-desktop: #004d40; + --win-title-from: #004d40; + --win-title-to: #26a69a; + --win-blue-sel: #00695c; +} + +body.win2000[data-theme="sunset"] { + --win-desktop: #5d4037; + --win-title-from: #bf360c; + --win-title-to: #ff9800; + --win-blue-sel: #e65100; +} + +body.win2000[data-theme="rose"] { + --win-desktop: #4a148c; + --win-title-from: #880e4f; + --win-title-to: #ec407a; + --win-blue-sel: #ad1457; +} + +body.win2000[data-theme="slate"] { + --win-desktop: #37474f; + --win-title-from: #263238; + --win-title-to: #607d8b; + --win-blue-sel: #455a64; +} + +/* โ”€โ”€ Action Buttons โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +body.win2000 #action-btns { + bottom: 1.5rem; + right: 1.5rem; + gap: 0.5rem; +} + +body.win2000 .action-btn { + font-family: var(--font-sys); + font-size: 12px; + background: var(--win-gray); + color: var(--win-text); + border-top: 2px solid var(--win-btn-light); + border-left: 2px solid var(--win-btn-light); + border-bottom: 2px solid var(--win-btn-dark); + border-right: 2px solid var(--win-btn-dark); + padding: 4px 12px; + border-radius: 0; + box-shadow: none; + min-width: 130px; + justify-content: center; +} + +body.win2000 .action-btn:hover { + transform: none; + filter: brightness(1.05); +} + +body.win2000 .action-btn:active { + border-top: 2px solid var(--win-btn-dark); + border-left: 2px solid var(--win-btn-dark); + border-bottom: 2px solid var(--win-btn-light); + border-right: 2px solid var(--win-btn-light); +} + +body.win2000 .action-btn svg { + width: 14px; + height: 14px; +} + +body.win2000 .action-btn--reset, +body.win2000 .action-btn--reset:hover { + background: var(--win-gray); + color: var(--win-text); +} + +body.win2000 .action-btn--download, +body.win2000 .action-btn--download:hover { + background: var(--win-gray); + color: var(--win-text); + box-shadow: none; +} + +body.win2000 .action-btn--reset svg { color: #444; } +body.win2000 .action-btn--download svg { color: #000080; } + +/* โ”€โ”€ Theme Picker โ†’ Taskbar โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +body.win2000 #theme-picker { + position: fixed; + top: auto; + bottom: 0; + left: 0; + right: 0; + z-index: 200; + height: 32px; + background: var(--win-gray); + border-top: 2px solid var(--win-btn-light); + border-radius: 0; + display: flex; + align-items: center; + gap: 4px; + padding: 0 6px; +} + +body.win2000 #theme-picker::before { + content: "Start"; + font-family: var(--font-sys); + font-size: 12px; + font-weight: bold; + background: var(--win-gray); + border-top: 2px solid var(--win-btn-light); + border-left: 2px solid var(--win-btn-light); + border-bottom: 2px solid var(--win-btn-dark); + border-right: 2px solid var(--win-btn-dark); + padding: 2px 10px; + margin-right: 8px; + cursor: pointer; +} + +body.win2000 .theme-swatch { + height: 22px; + width: auto; + min-width: 60px; + padding: 2px 8px; + border-top: 2px solid var(--win-btn-light); + border-left: 2px solid var(--win-btn-light); + border-bottom: 2px solid var(--win-btn-dark); + border-right: 2px solid var(--win-btn-dark); + background: var(--win-gray); + cursor: pointer; + font-family: var(--font-sys); + font-size: 11px; + color: var(--win-text); + display: flex; + flex-direction: row; + align-items: center; + gap: 4px; + overflow: visible; + border-radius: 0; + box-shadow: none; +} + +body.win2000 .theme-swatch::after { + font-family: var(--font-sys); + font-size: 10px; +} + +body.win2000 .theme-swatch[data-theme="navy"]::after { content: "Navy"; } +body.win2000 .theme-swatch[data-theme="emerald"]::after { content: "Emerald"; } +body.win2000 .theme-swatch[data-theme="sunset"]::after { content: "Sunset"; } +body.win2000 .theme-swatch[data-theme="rose"]::after { content: "Rose"; } +body.win2000 .theme-swatch[data-theme="slate"]::after { content: "Slate"; } + +body.win2000 .theme-swatch:hover { + transform: none; + filter: brightness(1.05); +} + +body.win2000 .theme-swatch.active { + border-top: 2px solid var(--win-btn-dark); + border-left: 2px solid var(--win-btn-dark); + border-bottom: 2px solid var(--win-btn-light); + border-right: 2px solid var(--win-btn-light); + box-shadow: none; +} + +body.win2000 .theme-swatch span { + display: inline-block; + flex: none; + width: 10px; + height: 10px; + border: 1px solid #666; + flex-shrink: 0; +} + +body.win2000 .theme-swatch span:last-child { + display: none; +} + +/* โ”€โ”€ Invoice Card โ†’ Window โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +body.win2000 .invoice-card { + background: var(--win-gray); + max-width: 680px; + border-top: 2px solid var(--win-btn-light); + border-left: 2px solid var(--win-btn-light); + border-bottom: 2px solid var(--win-btn-dark); + border-right: 2px solid var(--win-btn-dark); + border-radius: 0; + box-shadow: 2px 2px 8px rgba(0,0,0,0.5); + overflow: visible; +} + +/* โ”€โ”€ Header โ†’ Titlebar โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +body.win2000 .invoice-header { + background: linear-gradient(to right, var(--win-title-from), var(--win-title-to)); + padding: 4px 6px; + border: none; + border-left: 0; + flex-direction: row; + align-items: center; + gap: 8px; +} + +body.win2000 .invoice-title { + font-family: var(--font-sys); + font-size: 13px; + font-weight: bold; + color: var(--win-title-text); + letter-spacing: 0; + line-height: 1; + text-shadow: 1px 1px 0 rgba(0,0,0,0.5); +} + +body.win2000 .invoice-number { + font-family: var(--font-sys); + font-size: 12px; + color: rgba(255,255,255,0.85); + margin: 0; + margin-top: 0; +} + +body.win2000 .header-from, +body.win2000 .header-right, +body.win2000 .date-box, +body.win2000 .bill-to { + display: none; +} + +/* โ”€โ”€ Content Area โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +body.win2000 .invoice-content { + padding: 10px 12px 12px; + background: var(--win-gray); +} + +/* โ”€โ”€ Editable Fields โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +body.win2000 [contenteditable="true"] { + outline: none; + border-top: 1px solid var(--win-btn-dark); + border-left: 1px solid var(--win-btn-dark); + border-bottom: 1px solid var(--win-btn-light); + border-right: 1px solid var(--win-btn-light); + background: #fff; + padding: 2px 4px; + font-family: var(--font-sys); + font-size: 12px; + color: #000; +} + +body.win2000 [contenteditable="true"]:focus { + background: #fff; + outline: 1px dotted #000; + outline-offset: -2px; +} + +/* โ”€โ”€ Table โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +body.win2000 .invoice-table { + border-top: 1px solid var(--win-btn-dark); + border-left: 1px solid var(--win-btn-dark); + border-bottom: 1px solid var(--win-btn-light); + border-right: 1px solid var(--win-btn-light); + background: #fff; +} + +body.win2000 .invoice-table thead tr { + background: var(--win-blue-sel); +} + +body.win2000 .invoice-table th { + font-family: var(--font-sys); + font-size: 12px; + font-weight: bold; + color: var(--win-blue-sel-text); + text-transform: none; + letter-spacing: 0; + padding: 4px 8px; + text-align: left; + border-bottom: 1px solid var(--win-btn-dark); + border-right: 1px solid rgba(255,255,255,0.2); +} + +body.win2000 .invoice-table th:first-child, +body.win2000 .invoice-table th:last-child { + border-radius: 0; +} + +body.win2000 .line-item { + border-bottom: 1px solid #e0e0e0; +} + +body.win2000 .line-item:nth-child(even) { + background: #f5f5f5; +} + +body.win2000 .line-item:hover { + background: #d0d8e8; +} + +body.win2000 .line-item td { + padding: 4px 8px; + font-size: 12px; + font-family: var(--font-sys); + color: var(--win-text); +} + +/* โ”€โ”€ Remove Row Button โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +body.win2000 .remove-row { + background: var(--win-gray); + border-top: 1px solid var(--win-btn-light); + border-left: 1px solid var(--win-btn-light); + border-bottom: 1px solid var(--win-btn-dark); + border-right: 1px solid var(--win-btn-dark); + color: var(--win-text); + padding: 1px 4px; + width: 20px; + height: 18px; +} + +body.win2000 .remove-row:hover { + background: var(--win-btn-hilite); + color: var(--win-text); +} + +body.win2000 .remove-row svg { + width: 10px; + height: 10px; + color: #800000; +} + +/* โ”€โ”€ Add Row Button โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +body.win2000 .add-row-wrap { + margin-top: 6px; + justify-content: flex-start; +} + +body.win2000 #addRowBtn { + font-family: var(--font-sys); + font-size: 12px; + background: var(--win-gray); + color: var(--win-text); + border-top: 2px solid var(--win-btn-light); + border-left: 2px solid var(--win-btn-light); + border-bottom: 2px solid var(--win-btn-dark); + border-right: 2px solid var(--win-btn-dark); + padding: 3px 10px; +} + +body.win2000 #addRowBtn:hover { + background: var(--win-btn-hilite); + color: var(--win-text); +} + +body.win2000 #addRowBtn svg { + width: 12px; + height: 12px; + color: var(--win-text); +} + +/* โ”€โ”€ Totals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +body.win2000 .totals { + margin-top: 8px; + gap: 2px; + padding: 6px; + background: var(--win-gray); + border-top: 1px solid var(--win-btn-dark); + border-left: 1px solid var(--win-btn-dark); + border-bottom: 1px solid var(--win-btn-light); + border-right: 1px solid var(--win-btn-light); +} + +body.win2000 .totals-row { + width: 240px; + font-size: 12px; + font-family: var(--font-sys); + color: var(--win-text); +} + +body.win2000 .totals-row span:last-child { + color: #000; +} + +body.win2000 .totals-total { + border-top: 1px solid var(--win-btn-shadow); + width: 240px; + margin-top: 4px; + padding-top: 4px; +} + +body.win2000 .totals-total-label { + font-family: var(--font-sys); + font-weight: bold; + color: #000080; + font-size: 12px; +} + +body.win2000 .totals-total-value { + font-family: var(--font-sys); + font-weight: bold; + color: #800000; + font-size: 13px; +} + +/* โ”€โ”€ Note โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +body.win2000 .invoice-note { + margin-top: 8px; + background: #ffffd0; + border-top: 1px solid var(--win-btn-dark); + border-left: 1px solid var(--win-btn-dark); + border-bottom: 1px solid var(--win-btn-light); + border-right: 1px solid var(--win-btn-light); + border-radius: 0; + padding: 6px 10px; +} + +body.win2000 .invoice-note-title { + font-family: var(--font-sys); + font-size: 12px; + font-weight: bold; + color: #000080; + text-transform: none; + letter-spacing: 0; +} + +body.win2000 .invoice-note-text { + font-family: var(--font-sys); + font-size: 12px; + color: var(--win-text); + margin-top: 2px; +} + +/* โ”€โ”€ Footer โ†’ Status Bar โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +body.win2000 .invoice-footer { + padding: 4px 8px; + background: var(--win-gray); + border-top: 2px solid var(--win-btn-light); + flex-direction: row; + justify-content: space-between; + align-items: center; + gap: 8px; +} + +body.win2000 .footer-contact { + font-family: var(--font-sys); + font-size: 11px; + color: var(--win-text); + border-top: 1px solid var(--win-btn-shadow); + border-left: 1px solid var(--win-btn-shadow); + border-bottom: 1px solid var(--win-btn-light); + border-right: 1px solid var(--win-btn-light); + padding: 1px 4px; + flex: 1; + background: var(--win-gray); +} + +body.win2000 .footer-notice { + font-family: var(--font-sys); + font-size: 11px; + font-weight: normal; + color: var(--win-gray-dark); + border-top: 1px solid var(--win-btn-shadow); + border-left: 1px solid var(--win-btn-shadow); + border-bottom: 1px solid var(--win-btn-light); + border-right: 1px solid var(--win-btn-light); + padding: 1px 4px; + background: var(--win-gray); +} + +/* โ”€โ”€ Print (keep win2000 styles in print if active) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */ + +@media print { + body.win2000 #theme-picker { + display: none !important; + } +}