diff --git a/package-lock.json b/package-lock.json index 66d3ebe..1c691da 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "filecodeboxfronted", - "version": "0.0.0", + "version": "2.7.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "filecodeboxfronted", - "version": "0.0.0", + "version": "2.7.0", "dependencies": { "@tailwindcss/typography": "^0.5.16", "axios": "^1.13.2", diff --git a/package.json b/package.json index ea88377..7aa670a 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,15 @@ { "name": "filecodeboxfronted", - "version": "0.0.0", + "version": "2.7.0", "private": true, "type": "module", "scripts": { "dev": "vite", + "test:ui": "node --test tests/uiSystem.test.mjs tests/uiSystem.integration.test.mjs", + "test:trash": "node --experimental-strip-types --test tests/trashPresentation.test.mjs tests/trashPresentation.integration.test.mjs", + "test:trash:coverage": "node --experimental-strip-types --test --experimental-test-coverage --test-coverage-include=src/utils/trashPresentation.ts tests/trashPresentation.test.mjs", + "test:motion": "node --experimental-strip-types --test tests/detailMotion.test.mjs", + "test:motion:coverage": "node --experimental-strip-types --test --experimental-test-coverage --test-coverage-include=src/utils/detailMotion.ts tests/detailMotion.test.mjs", "build": "run-s check:architecture type-check build-only", "preview": "vite preview", "build-only": "vite build", diff --git a/src/App.vue b/src/App.vue index bf17389..a1f5942 100644 --- a/src/App.vue +++ b/src/App.vue @@ -54,10 +54,8 @@ const { linear-gradient(90deg, rgba(103, 135, 145, 0.12), rgba(162, 172, 154, 0.1)); } -.dark { - background: - linear-gradient(135deg, #10191e 0%, #17252b 48%, #223036 100%), - linear-gradient(90deg, rgba(113, 153, 168, 0.12), rgba(117, 143, 132, 0.08)); +.app-container.dark { + background: var(--fcb-bg); } .fade-enter-active, @@ -73,13 +71,12 @@ const { .transfer-fade-enter-active, .transfer-fade-leave-active { transition: - opacity 0.2s ease, - transform 0.2s ease; + opacity 0.28s ease; } .transfer-fade-enter-from { opacity: 0; - transform: translateY(8px); + } .transfer-fade-leave-active { @@ -91,7 +88,7 @@ const { .transfer-fade-leave-to { opacity: 0; - transform: translateY(-6px); + } .loading-overlay { diff --git a/src/assets/style/controls.css b/src/assets/style/controls.css new file mode 100644 index 0000000..7b1e9df --- /dev/null +++ b/src/assets/style/controls.css @@ -0,0 +1,200 @@ +/* Action motion is independent of transforms used for positioned icons. */ +.fcb-action { + --fcb-action-bg: var(--fcb-button-secondary-bg); + --fcb-action-hover: var(--fcb-button-secondary-hover); + --fcb-action-text: var(--fcb-button-secondary-text); + --fcb-action-border: var(--fcb-button-secondary-border); + --fcb-action-shadow: -3px -3px 8px rgb(255 255 255 / 70%), 3px 4px 9px rgb(107 132 146 / 15%); + transition: translate 300ms ease, transform 300ms ease, box-shadow 300ms ease, + background-color 300ms ease, border-color 300ms ease, color 300ms ease, opacity 300ms ease !important; + touch-action: manipulation; +} +.dark .fcb-action { --fcb-action-shadow: -3px -3px 8px rgb(24 31 44 / 35%), 3px 4px 9px rgb(108 129 164 / 12%); } +@media (hover: hover) and (pointer: fine) { + .fcb-action:not(:disabled):not([aria-disabled="true"]):hover { + translate: 0 -2px; + box-shadow: var(--fcb-action-shadow) !important; + } + .fcb-action:not(:disabled):active { translate: 0 0; } +} +.fcb-action:disabled, .fcb-action[aria-disabled="true"] { translate: none; } +/* Only color roles override utility classes. Component spacing stays contextual. */ +.fcb-button-primary, .fcb-action:is(.bg-indigo-500,.bg-indigo-600,.bg-blue-500,.bg-blue-600,[class*="from-indigo-"],[class*="from-purple-"],[class*="bg-[#7198a6]"],[class*="bg-[#5f8796]"]) { + --fcb-action-bg: var(--fcb-button-primary-bg); --fcb-action-hover: var(--fcb-button-primary-hover); + --fcb-action-text: var(--fcb-button-primary-text); --fcb-action-border: var(--fcb-button-primary-border); +} +.fcb-button-secondary { + --fcb-action-bg: var(--fcb-button-secondary-bg); --fcb-action-hover: var(--fcb-button-secondary-hover); + --fcb-action-text: var(--fcb-button-secondary-text); --fcb-action-border: var(--fcb-button-secondary-border); +} +.fcb-button-success, .fcb-action:is(.bg-green-50,.bg-green-100,.bg-green-500,.bg-green-600,[class*="bg-[#6f9688]"]) { + --fcb-action-bg: var(--fcb-button-success-bg); --fcb-action-hover: var(--fcb-button-success-hover); + --fcb-action-text: var(--fcb-button-success-text); --fcb-action-border: var(--fcb-button-success-border); +} +.fcb-button-danger, .fcb-action:is(.bg-red-50,.bg-red-100,.bg-red-500,.bg-red-600,.bg-red-700) { + --fcb-action-bg: var(--fcb-button-danger-bg); --fcb-action-hover: var(--fcb-button-danger-hover); + --fcb-action-text: var(--fcb-button-danger-text); --fcb-action-border: var(--fcb-button-danger-border); +} +.fcb-button-outline, .fcb-action:is(.bg-purple-50,.bg-purple-100) { + --fcb-action-bg: var(--fcb-button-outline-bg); --fcb-action-hover: var(--fcb-button-outline-hover); + --fcb-action-text: var(--fcb-button-outline-text); --fcb-action-border: var(--fcb-button-outline-border); +} +.fcb-action { + background-color: var(--fcb-action-bg) !important; + color: var(--fcb-action-text) !important; + border-color: var(--fcb-action-border) !important; +} +.fcb-action:is([class*="fcb-button-"],[class*="from-indigo-"],[class*="from-purple-"]) { background-image: none !important; } +.fcb-action:not(:disabled):hover { background-color: var(--fcb-action-hover) !important; } +.fcb-action svg { flex-shrink: 0; } +.fcb-icon-action { padding-inline: 0 !important; } +.fcb-icon-action > svg { margin-inline: 0 !important; } + +@media (max-width: 639px) { + :root { + --fcb-control-size: clamp(36px, 9.5vw, 40px); + --fcb-control-font: clamp(12px, 3.35vw, 14px); + --fcb-control-px: clamp(8px, 2.5vw, 12px); + } + .fcb-action:not(.fcb-content-action) { + min-height: var(--fcb-control-size) !important; + height: auto; + padding-block: 6px !important; + padding-inline: var(--fcb-control-px) !important; + font-size: var(--fcb-control-font) !important; + line-height: 1.4; + border-radius: 14px; + } + .fcb-action:not(.fcb-content-action) svg { + width: clamp(14px, 4vw, 17px); + height: clamp(14px, 4vw, 17px); + } + .fcb-action:not(.fcb-content-action) svg[class*="mr-"] { margin-right: 5px; } + .fcb-action:not(.fcb-content-action) svg[class*="ml-"] { margin-left: 5px; } + .fcb-icon-action { + width: var(--fcb-control-size) !important; + height: var(--fcb-control-size) !important; + min-width: var(--fcb-control-size) !important; + padding: 0 !important; + } + .fcb-icon-action > svg { margin-inline: 0 !important; } + .fcb-pagination-controls { gap: 4px; } + .fcb-pagination-controls .fcb-action { min-width: 0; padding-inline: 7px !important; white-space: nowrap; } + .fcb-page-size { + min-height: var(--fcb-control-size) !important; + min-width: 0; + width: auto; + padding-inline: 5px !important; + font-size: var(--fcb-control-font); + } + .fcb-metric-card { min-width: 0; padding: 10px 8px !important; border-radius: 16px; } + .fcb-metric-card > div:first-child { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 12px; } + .fcb-metric-card > p { font-size: 11px; overflow-wrap: anywhere; } + .fcb-summary-grid > div { border-radius: 16px; } + .fcb-summary-grid p { font-size: 11px; } +} +@media (prefers-reduced-motion: reduce) { + .fcb-action { transition-duration: .01ms !important; } + .fcb-action:not(:disabled):not([aria-disabled="true"]):hover { translate: none; } +} + +.fcb-content-action { --fcb-action-bg: transparent; --fcb-action-hover: transparent; --fcb-action-text: inherit; } +/* Match the selected pagination item without requiring dark text on a dark fill. */ +.fcb-action[aria-current="page"] { outline: 2px solid var(--fcb-button-primary-border); outline-offset: 1px; font-weight: 700; } + +@media (max-width: 639px) { + .fcb-pagination-controls { column-gap: 6px; } + .fcb-page-size { justify-self: start; width: 5.1rem; border-radius: 12px; } + .fcb-pagination-controls .fcb-page-nav { + width: var(--fcb-control-size); + height: var(--fcb-control-size); + min-width: var(--fcb-control-size); + padding: 0 !important; + border: 1px solid var(--fcb-border); + border-radius: 12px; + } + .fcb-page-nav:disabled { opacity: .45; box-shadow: none; } + .fcb-page-counter { min-width: 3rem; font-size: 12px; color: var(--fcb-text); } +} + +@media (max-width: 639px) { + .fcb-action:not(.fcb-content-action) :is(.text-sm, .text-base, .text-lg) { font-size: inherit; } +} + +/* Button-like checkbox labels keep native multi-selection and keyboard access. */ +.fcb-choice:has(input:focus-visible) .fcb-choice-face { outline: 3px solid var(--fcb-primary); outline-offset: 3px; } +.fcb-choice:has(input:disabled) .fcb-choice-face { translate: none !important; opacity: .5; cursor: not-allowed; } + +/* Native semantics with theme-aware checkbox surfaces (including mixed state). */ +input[type="checkbox"]:not(.sr-only) { + appearance: none; + -webkit-appearance: none; + display: inline-block; + width: 20px; + height: 20px; + min-width: 20px; + margin: 0; + vertical-align: middle; + border: 1px solid var(--fcb-button-secondary-border); + border-radius: 6px; + background-color: var(--fcb-surface); + background-position: center; + background-repeat: no-repeat; + background-size: 15px 15px; + box-shadow: inset 1px 1px 3px rgb(107 132 146 / 12%); + cursor: pointer; + transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease; +} +input[type="checkbox"]:not(.sr-only):is(:checked,:indeterminate) { + background-color: var(--fcb-button-primary-bg); + border-color: var(--fcb-button-primary-border); + box-shadow: none; +} +input[type="checkbox"]:not(.sr-only):checked { + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-8' fill='none' stroke='%23304f60' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); +} +input[type="checkbox"]:not(.sr-only):indeterminate { + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h12' stroke='%23304f60' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); +} +.dark input[type="checkbox"]:not(.sr-only):checked { + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-8' fill='none' stroke='%23dfedf4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); +} +.dark input[type="checkbox"]:not(.sr-only):indeterminate { + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h12' stroke='%23dfedf4' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); +} +input[type="checkbox"]:not(.sr-only):disabled { cursor: not-allowed; opacity: .45; } +@media (forced-colors: active) { input[type="checkbox"]:not(.sr-only) { appearance: auto; background-image: none; } } + +/* Input accessories stay inside the field and never act like floating cards. */ +.fcb-action.fcb-input-action, +.fcb-action.fcb-input-action:not(:disabled):hover { + position: absolute; + inset-block: 4px; + right: 5px; + width: 36px; + min-width: 36px; + min-height: 0 !important; + height: auto; + padding: 0 !important; + border: 0; + border-radius: 10px; + background: transparent !important; + color: var(--fcb-text-muted) !important; + box-shadow: none !important; + translate: none !important; + transform: none !important; +} +.fcb-action.fcb-input-action:not(:disabled):hover { color: var(--fcb-text) !important; } +.fcb-filter-grid { align-items: end; } +.fcb-filter-grid :is(input,select) { height: 40px; min-height: 40px; font-size: 14px; } +.fcb-filter-grid .fcb-action { min-height: 40px; } +@media (max-width: 639px) { + .fcb-filter-grid :is(input,select), .fcb-filter-grid .fcb-action { height: var(--fcb-control-size); min-height: var(--fcb-control-size); font-size: var(--fcb-control-font); } +} +/* Clickable list content is not a floating action card. */ +.fcb-action.fcb-content-action, +.fcb-action.fcb-content-action:not(:disabled):not([aria-disabled="true"]):hover { + translate: none !important; + transform: none !important; + box-shadow: none !important; +} diff --git a/src/assets/style/main.css b/src/assets/style/main.css index f06012e..58a651c 100644 --- a/src/assets/style/main.css +++ b/src/assets/style/main.css @@ -1,8 +1,10 @@ @import 'tailwindcss/base'; @import 'tailwindcss/components'; @import 'tailwindcss/utilities'; +@import './controls.css'; html { + color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; @@ -85,34 +87,15 @@ textarea { box-shadow: 0 16px 34px rgba(114, 143, 150, 0.26); } -.fcb-interactive-row { - position: relative; - z-index: 0; - transition: - background-color 180ms ease, - border-color 180ms ease, - box-shadow 180ms ease, - transform 180ms ease; -} +/* List rows use the same pastel highlight timing and palette as cards. */ -.fcb-interactive-row:hover { - z-index: 1; - box-shadow: inset 3px 0 0 rgba(95, 135, 150, 0.7), 0 10px 22px rgba(86, 118, 126, 0.16); - transform: translateY(-1px); -} - -.dark .theme-2026-card { - border-color: rgba(68, 86, 94, 0.82); - background: - linear-gradient(135deg, rgba(34, 49, 56, 0.96), rgba(24, 35, 42, 0.92)), - radial-gradient(circle at 14% 10%, rgba(102, 142, 156, 0.18), transparent 32%); - box-shadow: 0 16px 36px rgba(4, 10, 14, 0.34); -} .dark .theme-2026-card-hover:hover { border-color: rgba(113, 153, 168, 0.68); box-shadow: 0 20px 44px rgba(4, 10, 14, 0.46); } +.fcb-secondary-card { transition: all 300ms ease !important; box-shadow: -8px -8px 20px rgba(255,255,255,.8), 8px 8px 20px rgba(163,177,198,.5) !important; } +.fcb-secondary-card:hover { transform: translateY(-2px); background: #f0f4f8 !important; box-shadow: -10px -10px 25px rgba(255,255,255,.9), 10px 10px 25px rgba(163,177,198,.6) !important; } .data-table-2026 thead th { background: rgba(236, 244, 246, 0.76); @@ -124,10 +107,6 @@ textarea { opacity 180ms ease; } -.data-table-2026 tbody tr:hover { - background: rgba(226, 236, 238, 0.46); -} - .data-table-2026 tbody tr.is-selected { background: rgba(213, 228, 230, 0.72); } @@ -140,270 +119,182 @@ textarea { background: rgba(31, 45, 52, 0.82); } -.dark .data-table-2026 tbody tr:hover { - background: rgba(45, 71, 81, 0.42); -} - .dark .data-table-2026 tbody tr.is-selected-dark { background: rgba(42, 64, 72, 0.68); } -.bg-indigo-50, -.bg-blue-50 { - background-color: #dce8eb !important; +/* Serenity-inspired soft pastel motion and surfaces. */ +:root { + --fcb-pastel-sage: #9fc9bd; + --fcb-pastel-blue: #a9c7d8; + --fcb-pastel-lavender: #c5bddb; + --fcb-surface: #f2f6f8; + --fcb-shadow-soft: 0 12px 28px rgba(112, 137, 151, 0.16), -8px -8px 20px rgba(255,255,255,.72); +} +body { background: var(--fcb-surface); } +.theme-2026-card, +.theme-2026-card-hover { + border-color: rgba(170, 194, 201, .62) !important; + box-shadow: var(--fcb-shadow-soft) !important; +} +.theme-2026-card-hover:hover { + transform: translateY(-2px); + box-shadow: 0 16px 34px rgba(112, 137, 151, .22), -8px -8px 20px rgba(255,255,255,.78) !important; +} +button, a { -webkit-tap-highlight-color: transparent; } +.fcb-lifecycle-list { overflow: visible; will-change: height; } +.fcb-lifecycle-row { will-change: opacity; } +.fcb-lifecycle-card { transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease !important; } +.fcb-lifecycle-card:hover { transform: translateY(-2px) !important; box-shadow: 0 12px 24px rgba(112, 137, 151, .2) !important; } +@media (prefers-reduced-motion: reduce) { + .theme-2026-card-hover:hover { transform: none; } } -.bg-indigo-100, -.bg-blue-100 { - background-color: #d1e0e3 !important; +/* 2026 Serenity neumorphic system */ +:root { + --fcb-bg: #edf3f5; + --fcb-surface: #f7fafb; + --fcb-surface-muted: #e7eef1; + --fcb-text: #405466; + --fcb-text-muted: #607580; + --fcb-border: #cbdde3; + --fcb-primary: #7198a6; + --fcb-primary-dark: #628b9b; + --fcb-mint: #a8d0c2; + --fcb-lilac: #c3bdd4; + --fcb-peach: #f0c9b8; + --fcb-shadow-out: 12px 14px 28px rgba(115, 139, 151, .18), -9px -9px 22px rgba(255,255,255,.88); + --fcb-shadow-in: inset 3px 3px 8px rgba(147, 165, 174, .2), inset -3px -3px 8px rgba(255,255,255,.9); +} +html, body, #app { background: var(--fcb-bg); color: var(--fcb-text); } +.app-container.light { background: radial-gradient(circle at 15% 10%, #f8fbfc 0, transparent 34%), linear-gradient(135deg,#e8f0f2,#f4f7f6 58%,#edf3f5); } +.theme-2026-card, .theme-2026-card-hover, +.fcb-lifecycle-card, .feature-card, .therapist-card, .resource-card { + background: var(--fcb-bg) !important; + border-color: transparent !important; + box-shadow: -8px -8px 20px rgba(255,255,255,.8), 8px 8px 20px rgba(163,177,198,.5) !important; + transition: all 300ms ease !important; +} +.theme-2026-card-hover:hover, +.fcb-lifecycle-card:hover, .feature-card:hover, .therapist-card:hover, .resource-card:hover { + transform: translateY(-4px) !important; + border-color: transparent !important; + box-shadow: -10px -10px 25px rgba(255,255,255,.9), 10px 10px 25px rgba(163,177,198,.6) !important; +} +/* Nested cards use the demo's lighter 2px lift; outer cards keep 4px. */ +.theme-2026-card .theme-2026-card-hover:hover, +.theme-2026-card-hover.fcb-lifecycle-card:hover, +.theme-2026-card-hover .fcb-secondary-card:hover { + transform: translateY(-2px) !important; } -.bg-indigo-500, -.bg-blue-500, -.bg-cyan-500 { - background-color: #6f98a6 !important; +/* Keep every dashboard card on the same 300ms pastel hover curve. */ +.theme-2026-card-hover { + transition: all 300ms ease !important; +} +.theme-2026-card-hover:hover { + background: #f0f4f8 !important; + border-color: transparent !important; + box-shadow: -10px -10px 25px rgba(255,255,255,.9), 10px 10px 25px rgba(163,177,198,.6) !important; +} +.dark .theme-2026-card-hover:hover { + background: #2f414a !important; + box-shadow: -10px -10px 25px rgba(69,88,99,.45), 10px 10px 25px rgba(10,18,23,.55) !important; +} +input:not([type=file]):not([type=checkbox]):not([type=radio]), select:not(.native-date-part), textarea { background: var(--fcb-surface) !important; color: var(--fcb-text) !important; border-color: var(--fcb-border) !important; box-shadow: var(--fcb-shadow-in); } +button, a { border-radius: 14px; } +button:not(:disabled), a { cursor: pointer; } +.fcb-lifecycle-card { background: var(--fcb-bg) !important; } +.loading-overlay { background: rgba(225,235,238,.72) !important; backdrop-filter: blur(8px); } +.loading-spinner { border-color: #d5e5e7 !important; border-top-color: var(--fcb-primary) !important; } +@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .theme-2026-card-hover:hover, .fcb-lifecycle-card:hover { transform: none !important; } } + +.fcb-lifecycle-row { transition: opacity 420ms cubic-bezier(.22,1,.36,1); } +.fcb-lifecycle-list, .fcb-expand-content { overflow: hidden; } + +/* List highlighting stays inside the hovered row. */ + +/* Final specificity: health cards are inner cards, so they lift 2px. */ +.theme-2026-card .fcb-health-card:hover, +.fcb-health-card:hover { + transform: translateY(-2px) !important; } -.bg-indigo-600, -.bg-blue-600, -.bg-cyan-600 { - background-color: #5f8796 !important; +/* Health buttons inherit the same transition as adjacent cards. */ +@media (prefers-reduced-motion: reduce) { + .theme-2026-card .fcb-health-card:hover { + transform: none !important; + } } -.bg-indigo-700, -.bg-blue-700, -.bg-cyan-700 { - background-color: #527887 !important; +/* Matching dark surfaces retain the same pastel families with readable contrast. */ +.dark { + color-scheme: dark; + --fcb-bg: #252b34; + --fcb-surface: #2c3440; + --fcb-surface-muted: #333d49; + --fcb-text: #dfebee; + --fcb-text-muted: #adbec6; + --fcb-border: #495765; + --fcb-shadow-in: inset 3px 3px 8px rgba(9,20,25,.28), inset -3px -3px 8px rgba(75,98,109,.12); +} +/* Dark neumorphism uses soft grey-blue light, not black rims. */ +.dark .theme-2026-card, .dark .theme-2026-card-hover, .dark .fcb-lifecycle-card { + box-shadow: -8px -8px 20px rgba(102,119,146,.16), 8px 8px 20px rgba(24,31,44,.55) !important; +} +.dark .theme-2026-card::before { display: none; } +.dark .theme-2026-card-hover:hover, .dark .fcb-secondary-card:hover { + background: #2d3541 !important; + box-shadow: -10px -10px 25px rgba(102,119,146,.21), 10px 10px 25px rgba(24,31,44,.62) !important; +} +.fcb-summary-grid .fcb-secondary-card:hover { transform: translateY(-2px) !important; } +button.theme-2026-card-hover:disabled:hover { transform: none !important; } +@media (prefers-reduced-motion: reduce), (hover: none) { + .fcb-summary-grid .fcb-secondary-card:hover { transform: none !important; } +} +.dark :is(.shadow-sm, .shadow-md, .shadow-lg, .shadow-xl) { + --tw-shadow-color: rgba(35, 46, 65, .24); + --tw-shadow: var(--tw-shadow-colored); } -.bg-green-50 { - background-color: #e1eee8 !important; +/* Light: upper-left light, lower-right shade. Dark reverses this direction. */ +:root { + --fcb-card-shadow: -8px -8px 20px rgba(255,255,255,.85), 8px 8px 20px rgba(163,177,198,.38); + --fcb-card-shadow-hover: -10px -10px 25px rgba(255,255,255,.92), 10px 10px 25px rgba(163,177,198,.48); +} +.dark { + --fcb-card-shadow: -8px -8px 20px rgba(24,31,44,.55), 8px 8px 20px rgba(102,119,146,.16); + --fcb-card-shadow-hover: -10px -10px 25px rgba(24,31,44,.62), 10px 10px 25px rgba(102,119,146,.21); +} +:is(.fcb-surface, .theme-2026-card, .theme-2026-card-hover, .fcb-lifecycle-card, .fcb-secondary-card), +.dark :is(.fcb-surface, .theme-2026-card, .theme-2026-card-hover, .fcb-lifecycle-card, .fcb-secondary-card) { + box-shadow: var(--fcb-card-shadow) !important; +} +:is(.theme-2026-card-hover, .fcb-lifecycle-card, .fcb-secondary-card):hover, +.dark :is(.theme-2026-card-hover, .fcb-lifecycle-card, .fcb-secondary-card):hover { + box-shadow: var(--fcb-card-shadow-hover) !important; +} +/* Large content sections retain their position while their children animate. */ +section.theme-2026-card:hover { transform: none !important; } + +.fcb-surface { background: var(--fcb-bg) !important; border-color: var(--fcb-border) !important; } +/* Matte faces: directional shadows provide depth without a painted gradient. */ +.theme-2026-card::before { display: none; } + +.fcb-static-container:hover { transform: none !important; translate: none !important; } +.fcb-surface .theme-2026-card-hover:hover { transform: translateY(-2px) !important; } +@media (prefers-reduced-motion: reduce), (hover: none) { + .fcb-surface .theme-2026-card-hover:hover { transform: none !important; } } -.bg-green-100 { - background-color: #d4e5dd !important; +/* Lists highlight without frames, elevation or movement. Keyboard focus stays visible. */ +:root { --fcb-row-hover: #dcebef; } +.dark { --fcb-row-hover: #303d4a; } +.fcb-list-row, .fcb-interactive-row, .data-table-2026 tbody tr { + transition: background-color 300ms ease !important; } - -.bg-green-500, -.bg-green-600 { - background-color: #6f9688 !important; -} - -.bg-green-700 { - background-color: #5f8377 !important; -} - -.bg-red-50 { - background-color: #f1e2e5 !important; -} - -.bg-red-100 { - background-color: #e8d3d7 !important; -} - -.bg-red-500, -.bg-red-600 { - background-color: #9b6a72 !important; -} - -.bg-red-700 { - background-color: #895c63 !important; -} - -.bg-purple-50 { - background-color: #e7e2ea !important; -} - -.bg-purple-100 { - background-color: #ddd6e2 !important; -} - -.bg-purple-500, -.bg-pink-500 { - background-color: #8c8294 !important; -} - -.bg-purple-600, -.bg-pink-600 { - background-color: #7b7284 !important; -} - -.text-indigo-200, -.text-blue-200 { - color: #d8e8eb !important; -} - -.text-indigo-300, -.text-blue-300 { - color: #b8d4dc !important; -} - -.text-indigo-400, -.text-blue-400, -.text-cyan-400 { - color: #8fb2bf !important; -} - -.text-indigo-500, -.text-blue-500, -.text-cyan-500 { - color: #6f98a6 !important; -} - -.text-indigo-600, -.text-blue-600, -.text-cyan-600 { - color: #5f8796 !important; -} - -.text-indigo-700, -.text-blue-700 { - color: #3f6a77 !important; -} - -.text-green-300, -.text-green-400 { - color: #b6d6ca !important; -} - -.text-green-500, -.text-green-600, -.text-green-700 { - color: #5f8377 !important; -} - -.text-red-200, -.text-red-300, -.text-red-400 { - color: #e5c5ca !important; -} - -.text-red-500, -.text-red-600, -.text-red-700 { - color: #8b5962 !important; -} - -.text-purple-300, -.text-purple-400 { - color: #d4c8dc !important; -} - -.text-purple-500, -.text-purple-600, -.text-purple-700 { - color: #6f6379 !important; -} - -.border-indigo-100, -.border-blue-100 { - border-color: #cfe1e4 !important; -} - -.border-indigo-300, -.border-blue-300 { - border-color: #9db6bd !important; -} - -.border-indigo-400, -.border-indigo-500, -.border-blue-500 { - border-color: #8fb2bf !important; -} - -.border-indigo-600 { - border-color: #5f8796 !important; -} - -.border-red-100 { - border-color: #e8d3d7 !important; -} - -.border-red-200, -.border-red-500 { - border-color: #c9a4aa !important; -} - -.focus\:ring-indigo-500:focus, -.focus\:ring-blue-500:focus, -.focus\:ring-cyan-500:focus, -.focus\:ring-purple-500:focus { - --tw-ring-color: #8fb2bf !important; -} - -.focus\:border-indigo-500:focus, -.focus\:border-cyan-500:focus { - border-color: #8fb2bf !important; -} - -.hover\:bg-indigo-100:hover, -.hover\:bg-blue-100:hover { - background-color: #cfe1e4 !important; -} - -.hover\:bg-indigo-500:hover, -.hover\:bg-blue-500:hover, -.hover\:bg-cyan-500:hover { - background-color: #6f98a6 !important; -} - -.hover\:bg-indigo-600:hover, -.hover\:bg-blue-600:hover, -.hover\:bg-cyan-600:hover { - background-color: #527887 !important; -} - -.hover\:bg-indigo-700:hover, -.hover\:bg-blue-700:hover, -.hover\:bg-cyan-700:hover { - background-color: #466b78 !important; -} - -.hover\:bg-green-100:hover { - background-color: #d4e5dd !important; -} - -.hover\:bg-green-400:hover, -.hover\:bg-green-600:hover, -.hover\:bg-green-700:hover { - background-color: #5f8377 !important; -} - -.hover\:bg-red-100:hover { - background-color: #e8d3d7 !important; -} - -.hover\:bg-red-400:hover, -.hover\:bg-red-600:hover, -.hover\:bg-red-700:hover { - background-color: #895c63 !important; -} - -.hover\:border-indigo-500:hover { - border-color: #8fb2bf !important; -} - -.from-indigo-500, -.from-indigo-600, -.from-cyan-500, -.from-cyan-600 { - --tw-gradient-from: #5f8796 var(--tw-gradient-from-position) !important; - --tw-gradient-to: rgba(95, 135, 150, 0) var(--tw-gradient-to-position) !important; - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; -} - -.via-purple-500, -.via-purple-600 { - --tw-gradient-to: rgba(140, 130, 148, 0) var(--tw-gradient-to-position) !important; - --tw-gradient-stops: - var(--tw-gradient-from), - #8c8294 var(--tw-gradient-via-position), - var(--tw-gradient-to) !important; -} - -.to-purple-500, -.to-purple-600, -.to-pink-500, -.to-pink-600 { - --tw-gradient-to: #6f9688 var(--tw-gradient-to-position) !important; +.fcb-list-row:hover, .fcb-interactive-row:hover, .data-table-2026 tbody tr:hover { + background-color: var(--fcb-row-hover) !important; + box-shadow: none !important; + transform: none !important; } diff --git a/src/components/common/AdaptiveValue.vue b/src/components/common/AdaptiveValue.vue new file mode 100644 index 0000000..feb14fd --- /dev/null +++ b/src/components/common/AdaptiveValue.vue @@ -0,0 +1,28 @@ + + {{ value }} + + diff --git a/src/components/common/AlertComponent.vue b/src/components/common/AlertComponent.vue index 53d69fd..620918f 100644 --- a/src/components/common/AlertComponent.vue +++ b/src/components/common/AlertComponent.vue @@ -18,16 +18,16 @@
{{ alert.message }}
+{{ alert.message }}