5fd0f04fdc
modified: client/package.json modified: client/src/components/Footer.tsx new file: client/src/components/LocalizedDateInput.tsx new file: client/src/components/LocalizedTimeInput.tsx modified: client/src/index.css new file: client/src/types/html2pdf.d.ts new file: client/src/utils/dateTimeFormat.ts new file: client/src/utils/receiptPdf.ts modified: server/prisma/seed.ts
826 lines
20 KiB
CSS
826 lines
20 KiB
CSS
/* ═══════════════════════════════════════════
|
|
Harat's Irish Pub — Design System
|
|
Dark pub atmosphere, green & gold accents
|
|
═══════════════════════════════════════════ */
|
|
|
|
/* ─── Reset ──────────────────────────────── */
|
|
*, *::before, *::after {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
font-size: 16px;
|
|
scroll-behavior: smooth;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-body);
|
|
background: var(--color-bg-primary);
|
|
color: var(--color-text-primary);
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
button {
|
|
font: inherit;
|
|
cursor: pointer;
|
|
border: none;
|
|
background: none;
|
|
color: inherit;
|
|
}
|
|
|
|
ul, ol { list-style: none; }
|
|
img { max-width: 100%; display: block; }
|
|
input, select, textarea { font: inherit; }
|
|
|
|
/* ─── Design Tokens ──────────────────────── */
|
|
:root {
|
|
/* Brand Colors */
|
|
--color-green-900: #0a2e1a;
|
|
--color-green-800: #134d2e;
|
|
--color-green-700: #1a6b3f;
|
|
--color-green-600: #228b52;
|
|
--color-green-500: #2eaa66;
|
|
--color-green-400: #4fc882;
|
|
--color-green-300: #7eddaa;
|
|
|
|
--color-gold-600: #a88a30;
|
|
--color-gold-500: #c8a951;
|
|
--color-gold-400: #d4bc6a;
|
|
--color-gold-300: #e0cf8a;
|
|
--color-gold-200: #eee0b0;
|
|
|
|
/* Surfaces */
|
|
--color-bg-primary: #0d0d0d;
|
|
--color-bg-secondary: #151515;
|
|
--color-bg-card: #1a1a1a;
|
|
--color-bg-elevated: #222222;
|
|
--color-bg-input: #1e1e1e;
|
|
--color-bg-hover: #2a2a2a;
|
|
|
|
/* Text */
|
|
--color-text-primary: #f0efe8;
|
|
--color-text-secondary: #a09e94;
|
|
--color-text-muted: #6b6960;
|
|
--color-text-inverse: #0d0d0d;
|
|
|
|
/* Borders */
|
|
--color-border: #2a2a2a;
|
|
--color-border-light: #333333;
|
|
--color-border-focus: var(--color-gold-500);
|
|
|
|
/* Semantic */
|
|
--color-error: #e54d4d;
|
|
--color-error-bg: #2a1515;
|
|
--color-success: #2eaa66;
|
|
--color-success-bg: #152a1a;
|
|
--color-warning: #d4a74a;
|
|
--color-warning-bg: #2a2415;
|
|
|
|
/* Typography */
|
|
--font-display: 'Playfair Display', Georgia, serif;
|
|
--font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
|
|
/* Spacing */
|
|
--space-2xs: 2px;
|
|
--space-xs: 4px;
|
|
--space-sm: 8px;
|
|
--space-md: 16px;
|
|
--space-lg: 24px;
|
|
--space-xl: 32px;
|
|
--space-2xl: 48px;
|
|
--space-3xl: 64px;
|
|
--space-4xl: 96px;
|
|
|
|
/* Radius */
|
|
--radius-xs: 4px;
|
|
--radius-sm: 6px;
|
|
--radius-md: 8px;
|
|
--radius-lg: 12px;
|
|
--radius-xl: 16px;
|
|
--radius-2xl: 24px;
|
|
--radius-full: 9999px;
|
|
|
|
/* Shadows */
|
|
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
|
|
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
|
|
--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
|
|
--shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.8);
|
|
--shadow-glow-green: 0 0 20px rgba(46, 170, 102, 0.15);
|
|
--shadow-glow-gold: 0 0 20px rgba(200, 169, 81, 0.15);
|
|
|
|
/* Transitions */
|
|
--transition-fast: 120ms ease;
|
|
--transition-base: 200ms ease;
|
|
--transition-slow: 350ms ease;
|
|
--transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
|
|
/* Layout */
|
|
--header-height: 72px;
|
|
--max-width: 1280px;
|
|
--sidebar-width: 280px;
|
|
}
|
|
|
|
/* ─── Scrollbar ──────────────────────────── */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
::-webkit-scrollbar-track {
|
|
background: var(--color-bg-primary);
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--color-border-light);
|
|
border-radius: var(--radius-full);
|
|
}
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--color-text-muted);
|
|
}
|
|
|
|
/* ─── Typography ─────────────────────────── */
|
|
.text-display {
|
|
font-family: var(--font-display);
|
|
font-weight: 700;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
h1 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; line-height: 1.1; }
|
|
h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.2; }
|
|
h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
|
|
h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
|
|
.text-sm { font-size: 0.875rem; }
|
|
.text-xs { font-size: 0.75rem; }
|
|
.text-lg { font-size: 1.125rem; }
|
|
|
|
/* ─── Button Base ────────────────────────── */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-sm);
|
|
padding: 12px 24px;
|
|
border-radius: var(--radius-md);
|
|
font-weight: 600;
|
|
font-size: 0.9375rem;
|
|
transition: all var(--transition-base);
|
|
white-space: nowrap;
|
|
min-height: 44px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.btn::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: white;
|
|
opacity: 0;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.btn:active::after {
|
|
opacity: 0.1;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--color-green-600), var(--color-green-500));
|
|
color: white;
|
|
box-shadow: var(--shadow-sm), var(--shadow-glow-green);
|
|
}
|
|
.btn-primary:hover {
|
|
background: linear-gradient(135deg, var(--color-green-500), var(--color-green-400));
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-md), var(--shadow-glow-green);
|
|
}
|
|
|
|
.btn-gold {
|
|
background: linear-gradient(135deg, var(--color-gold-600), var(--color-gold-500));
|
|
color: var(--color-text-inverse);
|
|
box-shadow: var(--shadow-sm), var(--shadow-glow-gold);
|
|
}
|
|
.btn-gold:hover {
|
|
background: linear-gradient(135deg, var(--color-gold-500), var(--color-gold-400));
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-md), var(--shadow-glow-gold);
|
|
}
|
|
|
|
.btn-outline {
|
|
background: transparent;
|
|
color: var(--color-text-primary);
|
|
border: 1px solid var(--color-border-light);
|
|
}
|
|
.btn-outline:hover {
|
|
border-color: var(--color-gold-500);
|
|
color: var(--color-gold-400);
|
|
background: rgba(200, 169, 81, 0.05);
|
|
}
|
|
|
|
.btn-ghost {
|
|
background: transparent;
|
|
color: var(--color-text-secondary);
|
|
}
|
|
.btn-ghost:hover {
|
|
color: var(--color-text-primary);
|
|
background: var(--color-bg-hover);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--color-error);
|
|
color: white;
|
|
}
|
|
.btn-danger:hover {
|
|
opacity: 0.9;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 8px 16px;
|
|
font-size: 0.8125rem;
|
|
min-height: 36px;
|
|
}
|
|
|
|
.btn-lg {
|
|
padding: 16px 32px;
|
|
font-size: 1.0625rem;
|
|
min-height: 52px;
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
.btn-full {
|
|
width: 100%;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
transform: none !important;
|
|
}
|
|
|
|
/* ─── Input ──────────────────────────────── */
|
|
.input-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.input-label {
|
|
font-size: 0.8125rem;
|
|
font-weight: 500;
|
|
color: var(--color-text-secondary);
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.input {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
background: var(--color-bg-input);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-md);
|
|
color: var(--color-text-primary);
|
|
font-size: 0.9375rem;
|
|
transition: border-color var(--transition-base), box-shadow var(--transition-base);
|
|
min-height: 44px;
|
|
}
|
|
|
|
.input:focus {
|
|
outline: none;
|
|
border-color: var(--color-border-focus);
|
|
box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.1);
|
|
}
|
|
|
|
.input::placeholder {
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.input-error {
|
|
border-color: var(--color-error);
|
|
}
|
|
|
|
.error-text {
|
|
font-size: 0.75rem;
|
|
color: var(--color-error);
|
|
}
|
|
|
|
select.input {
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a09e94' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 14px center;
|
|
padding-right: 40px;
|
|
}
|
|
|
|
.localized-picker-input {
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.localized-picker-input__overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 2;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
pointer-events: none;
|
|
color: var(--color-text-primary);
|
|
font-size: 0.9375rem;
|
|
}
|
|
|
|
.localized-picker-input__overlay.is-placeholder {
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.localized-picker-input__native {
|
|
position: relative;
|
|
z-index: 1;
|
|
color: transparent;
|
|
caret-color: transparent;
|
|
}
|
|
|
|
.localized-picker-input__native::-webkit-datetime-edit,
|
|
.localized-picker-input__native::-webkit-datetime-edit-fields-wrapper,
|
|
.localized-picker-input__native::-webkit-datetime-edit-text,
|
|
.localized-picker-input__native::-webkit-datetime-edit-month-field,
|
|
.localized-picker-input__native::-webkit-datetime-edit-day-field,
|
|
.localized-picker-input__native::-webkit-datetime-edit-year-field,
|
|
.localized-picker-input__native::-webkit-datetime-edit-hour-field,
|
|
.localized-picker-input__native::-webkit-datetime-edit-minute-field,
|
|
.localized-picker-input__native::-webkit-datetime-edit-second-field,
|
|
.localized-picker-input__native::-webkit-datetime-edit-ampm-field {
|
|
color: transparent;
|
|
}
|
|
|
|
.localized-picker-input__native::-webkit-calendar-picker-indicator {
|
|
cursor: pointer;
|
|
opacity: 1;
|
|
}
|
|
|
|
.time-picker {
|
|
position: relative;
|
|
}
|
|
|
|
.time-picker__trigger {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
padding-right: 40px;
|
|
background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23a09e94' stroke-width='1.5'/%3E%3Cpath d='M12 7v5l3 2' stroke='%23a09e94' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 14px center;
|
|
}
|
|
|
|
.time-picker__placeholder {
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.time-picker__dropdown {
|
|
position: absolute;
|
|
top: calc(100% + 4px);
|
|
left: 0;
|
|
z-index: 100;
|
|
display: flex;
|
|
min-width: 160px;
|
|
max-width: 100%;
|
|
background: #ffffff;
|
|
border-radius: var(--radius-md);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.time-picker__column {
|
|
flex: 1;
|
|
max-height: 220px;
|
|
overflow-y: auto;
|
|
scroll-snap-type: y mandatory;
|
|
overscroll-behavior: contain;
|
|
}
|
|
|
|
.time-picker__column:first-child {
|
|
border-right: 1px solid #e5e5e5;
|
|
}
|
|
|
|
.time-picker__option {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
text-align: center;
|
|
font-size: 0.9375rem;
|
|
color: #1a1a1a;
|
|
scroll-snap-align: center;
|
|
transition: background-color var(--transition-base);
|
|
}
|
|
|
|
.time-picker__option:hover {
|
|
background: #f0f0f0;
|
|
}
|
|
|
|
.time-picker__option.is-selected {
|
|
background: #0b74de;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.time-picker__option.is-selected:hover {
|
|
background: #0b74de;
|
|
}
|
|
|
|
/* ─── Card ───────────────────────────────── */
|
|
.card {
|
|
background: var(--color-bg-card);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-lg);
|
|
transition: border-color var(--transition-base), box-shadow var(--transition-base);
|
|
}
|
|
|
|
.card-hover:hover {
|
|
border-color: var(--color-border-light);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.card-glass {
|
|
background: rgba(26, 26, 26, 0.8);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
/* ─── Badge ──────────────────────────────── */
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 4px 10px;
|
|
border-radius: var(--radius-full);
|
|
font-size: 0.6875rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.badge-green {
|
|
background: var(--color-success-bg);
|
|
color: var(--color-success);
|
|
}
|
|
|
|
.badge-red {
|
|
background: var(--color-error-bg);
|
|
color: var(--color-error);
|
|
}
|
|
|
|
.badge-gold {
|
|
background: rgba(200, 169, 81, 0.12);
|
|
color: var(--color-gold-400);
|
|
}
|
|
|
|
.badge-gray {
|
|
background: var(--color-bg-elevated);
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
/* ─── Modal / Overlay ────────────────────── */
|
|
.overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
backdrop-filter: blur(4px);
|
|
z-index: 100;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: var(--space-md);
|
|
animation: fadeIn var(--transition-base) ease;
|
|
}
|
|
|
|
.modal {
|
|
background: var(--color-bg-secondary);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-xl);
|
|
width: 100%;
|
|
max-width: 520px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
box-shadow: var(--shadow-xl);
|
|
animation: slideUp var(--transition-slow) ease;
|
|
}
|
|
|
|
.modal-wide {
|
|
max-width: 800px;
|
|
}
|
|
|
|
.modal-header {
|
|
padding: var(--space-lg);
|
|
border-bottom: 1px solid var(--color-border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: var(--space-lg);
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: var(--space-lg);
|
|
border-top: 1px solid var(--color-border);
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.modal-close {
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-md);
|
|
color: var(--color-text-secondary);
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: var(--color-bg-hover);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
/* ─── Tabs ───────────────────────────────── */
|
|
.tabs {
|
|
display: flex;
|
|
gap: var(--space-xs);
|
|
border-bottom: 1px solid var(--color-border);
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none;
|
|
}
|
|
.tabs::-webkit-scrollbar { display: none; }
|
|
|
|
.tab {
|
|
padding: var(--space-sm) var(--space-md);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--color-text-secondary);
|
|
border-bottom: 2px solid transparent;
|
|
transition: all var(--transition-base);
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tab:hover {
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.tab-active {
|
|
color: var(--color-gold-400);
|
|
border-bottom-color: var(--color-gold-500);
|
|
}
|
|
|
|
/* ─── Table (data) ───────────────────────── */
|
|
.data-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.data-table th {
|
|
text-align: left;
|
|
padding: var(--space-sm) var(--space-md);
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--color-text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.data-table td {
|
|
padding: var(--space-sm) var(--space-md);
|
|
font-size: 0.875rem;
|
|
border-bottom: 1px solid var(--color-border);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.data-table tr:hover td {
|
|
background: var(--color-bg-hover);
|
|
}
|
|
|
|
/* ─── Checkbox / Toggle ──────────────────── */
|
|
.checkbox-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.checkbox {
|
|
appearance: none;
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 2px solid var(--color-border-light);
|
|
border-radius: var(--radius-xs);
|
|
background: var(--color-bg-input);
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
position: relative;
|
|
}
|
|
|
|
.checkbox:checked {
|
|
background: var(--color-green-600);
|
|
border-color: var(--color-green-600);
|
|
}
|
|
|
|
.checkbox:checked::after {
|
|
content: '✓';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
color: white;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.toggle {
|
|
position: relative;
|
|
width: 44px;
|
|
height: 24px;
|
|
background: var(--color-bg-elevated);
|
|
border-radius: var(--radius-full);
|
|
cursor: pointer;
|
|
transition: background var(--transition-base);
|
|
border: 1px solid var(--color-border);
|
|
}
|
|
|
|
.toggle.active {
|
|
background: var(--color-green-600);
|
|
border-color: var(--color-green-600);
|
|
}
|
|
|
|
.toggle::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
background: white;
|
|
transition: transform var(--transition-base);
|
|
}
|
|
|
|
.toggle.active::after {
|
|
transform: translateX(20px);
|
|
}
|
|
|
|
/* ─── Skeleton Loader ────────────────────── */
|
|
.skeleton {
|
|
background: linear-gradient(
|
|
90deg,
|
|
var(--color-bg-elevated) 25%,
|
|
var(--color-bg-hover) 50%,
|
|
var(--color-bg-elevated) 75%
|
|
);
|
|
background-size: 200% 100%;
|
|
animation: shimmer 1.5s infinite;
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
/* ─── Toast / Notification ───────────────── */
|
|
.toast-container {
|
|
position: fixed;
|
|
top: calc(var(--header-height) + var(--space-md));
|
|
right: var(--space-md);
|
|
z-index: 200;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.toast {
|
|
padding: var(--space-md) var(--space-lg);
|
|
border-radius: var(--radius-lg);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
box-shadow: var(--shadow-lg);
|
|
animation: slideInRight var(--transition-slow) ease;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
min-width: 280px;
|
|
}
|
|
|
|
.toast-success {
|
|
background: var(--color-success-bg);
|
|
border: 1px solid var(--color-success);
|
|
color: var(--color-success);
|
|
}
|
|
|
|
.toast-error {
|
|
background: var(--color-error-bg);
|
|
border: 1px solid var(--color-error);
|
|
color: var(--color-error);
|
|
}
|
|
|
|
/* ─── Layout Utilities ───────────────────── */
|
|
.container {
|
|
width: 100%;
|
|
max-width: var(--max-width);
|
|
margin: 0 auto;
|
|
padding: 0 var(--space-lg);
|
|
}
|
|
|
|
.page {
|
|
min-height: calc(100vh - var(--header-height));
|
|
padding-top: var(--space-2xl);
|
|
padding-bottom: var(--space-3xl);
|
|
}
|
|
|
|
.flex { display: flex; }
|
|
.flex-col { flex-direction: column; }
|
|
.items-center { align-items: center; }
|
|
.justify-between { justify-content: space-between; }
|
|
.justify-center { justify-content: center; }
|
|
.gap-xs { gap: var(--space-xs); }
|
|
.gap-sm { gap: var(--space-sm); }
|
|
.gap-md { gap: var(--space-md); }
|
|
.gap-lg { gap: var(--space-lg); }
|
|
.gap-xl { gap: var(--space-xl); }
|
|
|
|
.grid {
|
|
display: grid;
|
|
}
|
|
|
|
.grid-2 { grid-template-columns: repeat(2, 1fr); }
|
|
.grid-3 { grid-template-columns: repeat(3, 1fr); }
|
|
.grid-4 { grid-template-columns: repeat(4, 1fr); }
|
|
|
|
@media (max-width: 768px) {
|
|
.grid-2, .grid-3, .grid-4 {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ─── Divider ────────────────────────────── */
|
|
.divider {
|
|
height: 1px;
|
|
background: var(--color-border);
|
|
border: none;
|
|
margin: var(--space-lg) 0;
|
|
}
|
|
|
|
/* ─── Animations ─────────────────────────── */
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from { opacity: 0; transform: translateY(20px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
@keyframes slideInRight {
|
|
from { opacity: 0; transform: translateX(100px); }
|
|
to { opacity: 1; transform: translateX(0); }
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0% { background-position: -200% 0; }
|
|
100% { background-position: 200% 0; }
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
@keyframes scaleIn {
|
|
from { opacity: 0; transform: scale(0.9); }
|
|
to { opacity: 1; transform: scale(1); }
|
|
}
|
|
|
|
.animate-fade-in { animation: fadeIn var(--transition-base) ease; }
|
|
.animate-slide-up { animation: slideUp var(--transition-slow) ease; }
|
|
.animate-scale-in { animation: scaleIn var(--transition-spring); }
|
|
|
|
/* ─── Grain texture ──────────────────────── */
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
z-index: 9999;
|
|
opacity: 0.015;
|
|
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
|
|
}
|