/* ════════════════════════════════════════════════════════════════════ YAZ Islands — Shared styles for top-level island pages (Home, Events, Domains, Analytics, Settings, Assist) Prefix: is- (island) All design tokens come from tokens.css. ════════════════════════════════════════════════════════════════════ */ /* ── Layout ── */ .is-wrap { max-width: 1400px; margin: 0 auto; padding: 2rem 2.5rem; } /* ── Page Header ── */ .is-header { margin-bottom: 2rem; } .is-header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; } .is-title { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 0 0 0.25rem; line-height: 1.3; } .is-subtitle { font-size: 0.875rem; color: var(--text-muted); margin: 0; } /* ── Title with icon ── */ .is-title-icon { display: flex; align-items: center; gap: 0.75rem; } .is-title-icon svg { width: 28px; height: 28px; color: var(--primary); flex-shrink: 0; } /* ── Section label (uppercase, sub-group) ── */ .is-section-label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin: 0 0 0.625rem; } .is-section-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 0.75rem; } /* ── Group spacing ── */ .is-group { margin-bottom: 1.75rem; } .is-group-item { margin-bottom: 1.5rem; } /* ── Vertical list (replaces inline flex-column gap styles) ── */ .is-list { display: flex; flex-direction: column; gap: 0.625rem; } /* ── Filter bar with top margin when used inside header ── */ .is-header .is-filters { margin-top: 0.75rem; } /* ── Card Grid ── */ .is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; } .is-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .is-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; } .is-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; } /* ── Large screen grid expansion ── */ @media (min-width: 1280px) { .is-wrap { max-width: 100%; padding: 2rem 2rem; } } @media (min-width: 1440px) { .is-wrap { max-width: 100%; padding: 2rem 2.5rem; } .is-grid-3 { grid-template-columns: repeat(4, 1fr); } .is-grid-4 { grid-template-columns: repeat(5, 1fr); } } @media (min-width: 1920px) { .is-wrap { max-width: 100%; padding: 2.5rem 3rem; } .is-grid-2 { grid-template-columns: repeat(3, 1fr); } .is-grid-3 { grid-template-columns: repeat(5, 1fr); } .is-grid-4 { grid-template-columns: repeat(6, 1fr); } } @media (max-width: 640px) { .is-grid { grid-template-columns: 1fr; } .is-grid-2 { grid-template-columns: 1fr; } .is-grid-3 { grid-template-columns: repeat(2, 1fr); } .is-grid-4 { grid-template-columns: repeat(2, 1fr); } } /* ── Card (universal base) ── */ .is-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); text-decoration: none; color: var(--text); transition: border-color var(--duration-fast) var(--ease-default), box-shadow var(--duration-normal) var(--ease-spring), transform var(--duration-normal) var(--ease-spring); } /* Vertically centered card variant (for list rows) */ .is-card--middle { align-items: center; } .is-card:hover { border-color: var(--primary); box-shadow: var(--shadow-xl); text-decoration: none; color: var(--text); transform: translateY(-3px); will-change: transform; } .is-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-subtle); color: var(--text); text-decoration: none; } .is-card-link { display: flex; align-items: center; gap: 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 1rem 1.25rem; text-decoration: none; color: var(--text); transition: border-color var(--duration-fast) var(--ease-default), box-shadow var(--duration-normal) var(--ease-spring), transform var(--duration-normal) var(--ease-spring); } .is-card-link:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); color: var(--text); text-decoration: none; transform: translateY(-2px); will-change: transform; } .is-card-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-subtle); color: var(--text); text-decoration: none; } /* ── Card Icon ── */ .is-icon { width: 44px; height: 44px; border-radius: var(--radius, 8px); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; font-size: 1rem; font-weight: 700; transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) var(--ease-spring); } .is-icon svg { width: 22px; height: 22px; stroke: white; fill: none; } /* ── Icon color variants (light-background icons, not gradient) ── */ .is-icon--primary { background: var(--primary-subtle); color: var(--primary); } .is-icon--error { background: var(--error-subtle); color: var(--error); } .is-icon--success { background: var(--success-subtle); color: var(--success); } .is-icon--warning { background: var(--warning-subtle); color: var(--warning); } .is-icon--muted { background: var(--surface-active); color: var(--text-muted); } .is-icon--neutral { background: var(--surface-hover); color: var(--text-muted); } /* SVG icons in color variants inherit the parent color */ .is-icon--primary svg, .is-icon--error svg, .is-icon--success svg, .is-icon--warning svg, .is-icon--muted svg, .is-icon--neutral svg { stroke: currentColor; } /* Gradient icon — set --grad-from and --grad-to via inline CSS vars */ .is-icon--gradient { background: linear-gradient(135deg, var(--grad-from, var(--primary)), var(--grad-to, var(--primary-hover))); color: white; } .is-icon--gradient svg { stroke: white; fill: none; } .is-icon--gradient i[data-lucide] { color: white; } /* ── Inline stat value inside is-card-link ── */ .is-card-val { font-size: var(--text-lg); font-weight: 700; flex-shrink: 0; margin-left: auto; color: var(--text); } .is-card-val--primary { color: var(--primary); } .is-card-val--error { color: var(--error); } .is-card-val--success { color: var(--success); } .is-card-val--warning { color: var(--warning); } .is-card-val--muted { color: var(--text-muted); } .is-card:hover .is-icon, .is-card-link:hover .is-icon { transform: scale(1.08); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); will-change: transform; } .is-icon-lg { width: 48px; height: 48px; border-radius: 0.625rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.25rem; } .is-icon-lg svg { width: 24px; height: 24px; } /* ── Card body ── */ .is-body { flex: 1; min-width: 0; } .is-name { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0; } .is-by { font-size: 0.75rem; color: var(--text-muted); margin: 0.125rem 0 0; } .is-desc { font-size: 0.875rem; color: var(--text-muted); margin: 0.375rem 0 0; line-height: 1.5; } /* ── Domain tag ── */ .is-tag { display: inline-block; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.125rem 0.375rem; border-radius: 4px; margin-top: 0.375rem; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); color: var(--primary); } /* ── Arrow indicator ── */ .is-arrow { align-self: center; flex-shrink: 0; color: var(--text-muted); width: var(--icon-sm, 16px); height: var(--icon-sm, 16px); opacity: 0.25; transition: opacity var(--duration-fast) var(--ease-default), transform var(--duration-normal) var(--ease-spring), color var(--duration-fast) var(--ease-default); } .is-card:hover .is-arrow, .is-card:focus-visible .is-arrow, .is-card-link:hover .is-arrow, .is-card-link:focus-visible .is-arrow { opacity: 1; transform: translateX(5px); color: var(--primary); } /* ── Stat cards ── */ .is-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem; text-align: center; position: relative; overflow: hidden; } .is-stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary); border-radius: 0.75rem 0.75rem 0 0; opacity: 0.5; } .is-stat-value { font-size: 1.875rem; font-weight: 700; color: var(--text); line-height: 1; } .is-stat-label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-top: 0.375rem; } .is-stat-trend { font-size: 0.75rem; font-weight: 600; margin-top: 0.375rem; } .is-stat-trend--up { color: var(--success); } .is-stat-trend--down { color: var(--error); } /* ── Tabs ── */ .is-tabs { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); } .is-tab { padding: 0.75rem 1.125rem; font-size: 0.9375rem; font-weight: 500; color: var(--text-muted); border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; transition: color var(--duration-fast) var(--ease-default), border-color var(--duration-fast) var(--ease-default); } .is-tab:hover { color: var(--text); } /* .active kept for backward compat; prefer .is-active */ .is-tab.active, .is-tab.is-active { color: var(--primary); border-bottom-color: var(--primary); } /* ── Panel (tab content) ── */ .is-panel { display: none; } .is-panel.active { display: block; } /* ── Filter bar ── */ .is-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; } .is-search { flex: 1; min-width: 180px; padding: 0.625rem 1rem; font-size: 0.9375rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--bg); color: var(--text); outline: none; transition: border-color 0.12s; } .is-search:focus { border-color: var(--primary); } .is-filter-btn { padding: 0.375rem 0.875rem; font-size: 0.8125rem; font-weight: 500; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--surface); color: var(--text-muted); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: border-color 0.12s, color 0.12s, background 0.12s; } .is-filter-btn:hover { border-color: var(--primary); color: var(--text); } .is-filter-btn.active { border-color: var(--primary); color: var(--text); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); } /* ── Urgency / semantic filter button variants ── */ .is-filter-btn--urgent { border-color: var(--error-subtle); color: var(--error); } .is-filter-btn--urgent:hover { border-color: var(--error); background: var(--error-subtle); } .is-filter-btn--urgent.active { background: var(--error); color: #fff; border-color: var(--error); } .is-filter-btn--semi-urgent { border-color: var(--warning-subtle); color: var(--warning); } .is-filter-btn--semi-urgent:hover { border-color: var(--warning); background: var(--warning-subtle); } .is-filter-btn--semi-urgent.active { background: var(--warning); color: #fff; border-color: var(--warning); } /* ── select styled as filter button ── */ select.is-filter-btn { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 1.75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.625rem center; } /* ── Section count badge ── */ .is-section-count { display: inline-flex; align-items: center; justify-content: center; font-size: 0.6875rem; font-weight: 700; padding: 0 0.4rem; min-width: 1.25rem; height: 1.25rem; border-radius: 999px; background: var(--border); color: var(--text-muted); margin-left: 0.375rem; } /* ── Empty state ── */ .is-empty { text-align: center; padding: 3.5rem 1.5rem; color: var(--text-muted); font-size: 0.9375rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); } .is-empty-icon { width: 48px; height: 48px; margin: 0 auto 0.875rem; opacity: 0.25; display: flex; align-items: center; justify-content: center; } .is-empty-icon svg, .is-empty-icon i { width: 48px; height: 48px; } .is-empty-title { font-size: 0.9375rem; font-weight: 600; color: var(--text); margin-bottom: 0.375rem; } .is-empty-desc { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; } /* ── Event feed (used in events island) ── */ .ev-card-icon svg { width: 22px; height: 22px; } .ev-card-title strong { font-weight: 700; } .ev-card-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; } .ev-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); opacity: 0.4; } .ev-card-time { font-size: 0.8125rem; color: var(--text-muted); flex-shrink: 0; margin-left: auto; white-space: nowrap; } /* ── App tile (colored gradient) ── */ .is-app { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1rem; border-radius: 0.875rem; text-decoration: none; color: white; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); transition: opacity var(--duration-fast) var(--ease-default), transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) var(--ease-default); min-height: 110px; } .is-app:hover { opacity: 0.95; color: white; text-decoration: none; transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 8px 20px rgba(0,0,0,0.15); will-change: transform; } .is-app:active { opacity: 0.9; transform: translateY(-1px); color: white; } .is-app:focus-visible { outline: 2px solid rgba(255,255,255,0.8); outline-offset: 2px; color: white; } .is-app-icon { font-size: 1.75rem; margin-bottom: 0.5rem; } .is-app-name { font-size: 0.875rem; font-weight: 600; } .is-app-sub { font-size: 0.75rem; opacity: 0.7; margin-top: 0.125rem; letter-spacing: 0.01em; } .is-app-desc { font-size: 0.8125rem; opacity: 0.75; margin-top: 0.125rem; } /* ── Operator workspace card ── */ .is-workspace-card { display: flex; align-items: center; gap: 1rem; padding: 0.875rem 1.25rem; /* Override via --ws-from / --ws-to CSS custom properties when needed */ background: linear-gradient(135deg, var(--ws-from, #1a4a6b), var(--ws-to, #0d7377)); border-radius: var(--radius-lg, 12px); text-decoration: none; color: white; transition: opacity var(--duration-fast) var(--ease-default), box-shadow var(--duration-normal) var(--ease-default); box-shadow: var(--shadow-md); } .is-workspace-card:hover { opacity: 0.92; color: white; text-decoration: none; box-shadow: var(--shadow-lg); } .is-workspace-avatar { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1.5px solid rgba(255,255,255,0.25); } .is-workspace-body { flex: 1; min-width: 0; } .is-workspace-name { font-size: 0.9375rem; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .is-workspace-role { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-top: 0.125rem; } .is-workspace-arrow { flex-shrink: 0; } /* ── Quick Actions bar ── */ .is-actions { display: flex; gap: 0.625rem; flex-wrap: wrap; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; } .is-action { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 600; border-radius: var(--radius-md); text-decoration: none; cursor: pointer; border: none; white-space: nowrap; line-height: 1; transition: opacity var(--duration-fast) var(--ease-default), background var(--duration-fast) var(--ease-default), color var(--duration-fast) var(--ease-default), border-color var(--duration-fast) var(--ease-default), box-shadow var(--duration-fast) var(--ease-default); min-height: 36px; /* Touch-friendly: 44px on mobile via media query below */ user-select: none; } .is-action:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; } .is-action-primary { background: var(--text); color: var(--bg); } .is-action-primary:hover { opacity: 0.85; color: var(--bg); text-decoration: none; } .is-action-primary:active { opacity: 0.75; } .is-action-secondary { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); } .is-action-secondary:hover { border-color: var(--primary); color: var(--text); text-decoration: none; } .is-action-secondary:active { background: var(--surface); } /* ── Skeleton loading states ── */ .is-skeleton { background: linear-gradient( 90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75% ); background-size: 200% 100%; animation: is-shimmer 1.6s ease-in-out infinite; border-radius: var(--radius-lg, 12px); border: 1px solid var(--border); } @keyframes is-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } .is-skeleton-card { height: 78px; } .is-skeleton-title { height: 20px; width: 55%; border-radius: 4px; margin-bottom: 0.5rem; } .is-skeleton-text { height: 14px; width: 75%; border-radius: 4px; } .is-skeleton-text--sm { height: 12px; width: 45%; border-radius: 4px; } @media (prefers-reduced-motion: reduce) { .is-skeleton { animation: none; background: var(--surface-hover); } } /* ── Mobile ── */ @media (max-width: 640px) { .is-wrap { padding: 1rem 1rem; } .is-header-row { flex-direction: column; align-items: flex-start; } .is-filters { width: 100%; } .is-search { min-width: 0; } .is-app { min-height: 88px; padding: 1rem; } .is-app-name { font-size: 0.8125rem; } .is-action { min-height: 44px; } } @media (max-width: 480px) { .is-grid-3 { grid-template-columns: repeat(2, 1fr); } .is-grid-4 { grid-template-columns: repeat(2, 1fr); } .is-card { padding: 1rem; gap: 0.75rem; } .is-icon { width: 38px; height: 38px; } .is-icon svg { width: 18px; height: 18px; } } /* ════════════════════════════════════════════════════════════════ Island Hydration States & Smooth Delivery — v2.0.0 Driven entirely by data-island-state attribute (set by yaz-islands.js). No class toggling; JS only writes the attribute, CSS handles visuals. ════════════════════════════════════════════════════════════════ */ /* ── Paint-budget optimisation: skip off-screen rendering ── */ /* Applied only to below-fold strategies to avoid eager islands getting phantom intrinsic-size boxes visible on load */ [data-island="lazy"], [data-island="idle"] { content-visibility : auto; contain-intrinsic-block-size: 120px; /* safe default; prevents CLS */ } /* Release containment once hydrated — real dimensions take over */ [data-island="lazy"][data-island-state="hydrating"], [data-island="lazy"][data-island-state="ready"], [data-island="lazy"][data-island-state="error"], [data-island="idle"][data-island-state="hydrating"], [data-island="idle"][data-island-state="ready"], [data-island="idle"][data-island-state="error"] { content-visibility : visible; } /* ── Pending: invisible until strategy fires ── */ [data-island][data-island-state="pending"] { /* Container is visible — inner .is-skeleton children provide shimmer */ } /* ── Hydrating: subtle dimming shows activity without layout shift ── */ [data-island][data-island-state="hydrating"] { opacity : 0.55; transition : opacity 120ms ease; } /* ── Ready: smooth entrance animation ── */ @keyframes _island-in { from { opacity: 0; } to { opacity: 1; } } [data-island][data-island-state="ready"] { animation : _island-in 80ms ease both; } /* ── Error: thin red stripe at top ── */ [data-island][data-island-state="error"] { border-top : 2px solid var(--error, #ef4444); opacity : 0.7; } /* ── Staggered children: JS injects --stagger-i (0…N) per child ── */ /* Works on any [data-stagger] container, island or not */ [data-stagger] > * { animation-delay : calc(var(--stagger-i, 0) * 20ms); } /* Islands with staggered children: each child gets its own entrance */ [data-island][data-island-state="ready"][data-stagger] > *, [data-stagger][data-island-state="ready"] > * { animation : _island-in 80ms ease both; animation-delay : calc(var(--stagger-i, 0) * 20ms); } /* ── Grid + list containers: stagger is-card / is-card-link siblings ── */ /* Add data-stagger to .is-grid or .is-list to animate children in */ .is-grid[data-stagger] > *, .is-list[data-stagger] > * { animation-delay : calc(var(--stagger-i, 0) * 20ms); } /* ── Reduced motion: honour user system preference ── */ @media (prefers-reduced-motion: reduce) { [data-island][data-island-state="ready"], [data-island][data-island-state="hydrating"], [data-stagger] > *, [data-island][data-island-state="ready"][data-stagger] > * { animation : none !important; transition : none !important; } } /* ── Modal overlay ── */ .is-overlay { display: none; position: fixed; inset: 0; z-index: var(--z-overlay, 190); align-items: center; justify-content: center; padding: 1rem; background: rgba(0,0,0,.45); } .is-overlay.active { display: flex; } .is-modal { background: var(--surface); border-radius: var(--radius-lg, 12px); box-shadow: 0 8px 32px rgba(0,0,0,.18); width: 100%; max-width: 28rem; padding: 1.5rem; color: var(--text); } .is-modal h2 { font-size: 1.125rem; font-weight: 700; margin: 0 0 1rem; color: var(--text); } .is-modal label { display: block; font-size: 0.75rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.25rem; } .is-modal input, .is-modal select { width: 100%; padding: 0.5rem 0.75rem; font-size: 0.875rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--bg); color: var(--text); outline: none; } .is-modal input:focus, .is-modal select:focus { border-color: var(--primary); } .is-modal-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; } .is-modal-actions button { flex: 1; padding: 0.625rem; font-size: 0.875rem; font-weight: 600; border-radius: var(--radius-md); border: 1px solid var(--border); cursor: pointer; transition: opacity var(--duration-fast) var(--ease-default); } .is-modal-actions .is-btn-primary { background: var(--primary); color: white; border-color: var(--primary); } .is-modal-actions .is-btn-cancel { background: var(--surface); color: var(--text-muted); } /* ── Result panel ── */ .is-result { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 1.25rem; margin-bottom: 1rem; } .is-result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; } .is-result-title { font-size: 1rem; font-weight: 700; color: var(--text); } .is-result-badge { font-size: 0.625rem; padding: 2px 8px; border-radius: 999px; font-weight: 600; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); } .is-result-close { background: none; border: none; color: var(--text-muted); font-size: 1.25rem; cursor: pointer; padding: 0.25rem; } .is-result-body { font-size: 0.8125rem; color: var(--text); line-height: 1.5; } /* ── Inline badge (risk levels, priorities) ── */ .is-badge { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; line-height: 1; } .is-badge--success { background: var(--c-success-50, #d1fae5); color: var(--c-success-700, #065f46); } .is-badge--warning { background: var(--c-warning-50, #fef3c7); color: var(--c-warning-700, #92400e); } .is-badge--error { background: var(--c-error-50, #fee2e2); color: var(--c-error-700, #991b1b); } .is-badge--info { background: var(--c-info-50, #dbeafe); color: var(--c-info-700, #1e40af); } .is-badge--primary { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); } .is-badge--muted { background: var(--surface-hover, #f0f1f5); color: var(--text-muted); } /* ── Disclaimer / Notice ── */ .is-notice { display: flex; gap: 0.75rem; padding: 0.875rem 1rem; border-radius: 0.75rem; font-size: 0.8125rem; line-height: 1.5; border: 1px solid var(--border); } .is-notice--warning { background: var(--c-warning-50, #fef3c7); border-color: var(--c-warning-200, #fde68a); color: var(--c-warning-800, #78350f); } .is-notice-icon { font-size: 1.125rem; flex-shrink: 0; margin-top: 0.125rem; } /* ── Indicator dot ── */ .is-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .is-dot--live { background: var(--success); animation: is-pulse 2s infinite; } .is-dot--off { background: var(--text-muted); opacity: 0.4; } @keyframes is-pulse { 0%,100% { opacity:1 } 50% { opacity:0.4 } } /* ── Checkbox inline ── */ .is-checkbox { display: flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--text); cursor: pointer; } /* ── Step card (non-link, centered, for How-It-Works sections) ── */ .is-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 1.5rem 1.25rem; text-align: center; display: flex; flex-direction: column; align-items: center; } .is-step-title { font-size: 0.9375rem; font-weight: 600; color: var(--text); margin-bottom: 0.375rem; } .is-step-desc { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.55; } /* ════════════════════════════════════════════════════════════════ Staff Lookup — /staff island page Prefix: staff- (scoped to staff lookup only) ════════════════════════════════════════════════════════════════ */ /* ── Search card ── */ .staff-search-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 1.25rem 1.5rem; margin-bottom: 2rem; } .staff-search-form { width: 100%; } .staff-search-row { display: flex; gap: 0.625rem; align-items: stretch; } .staff-search-field { position: relative; flex: 1; display: flex; align-items: center; } .staff-search-at { position: absolute; left: 0.875rem; font-size: 1rem; font-weight: 700; color: var(--primary); pointer-events: none; select: none; line-height: 1; z-index: 1; } .staff-search-input { width: 100%; padding: 0.65rem 0.875rem 0.65rem 2rem; font-size: 1rem; font-weight: 500; font-family: inherit; background: var(--bg); color: var(--text); border: 1.5px solid var(--border); border-radius: 0.5rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s; -webkit-appearance: none; } .staff-search-input::placeholder { color: var(--text-muted); font-weight: 400; } .staff-search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); } .staff-search-btn { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.65rem 1.25rem; font-size: 0.875rem; font-weight: 600; border-radius: var(--radius-md); border: none; cursor: pointer; background: var(--primary); color: #fff; white-space: nowrap; transition: opacity var(--duration-fast) var(--ease-default), transform var(--duration-fast) var(--ease-default); } .staff-search-btn i[data-lucide], .staff-search-btn svg { width: var(--icon-sm, 16px); height: var(--icon-sm, 16px); flex-shrink: 0; } .staff-search-btn:hover { opacity: 0.88; transform: translateY(-1px); } .staff-search-btn:active { transform: translateY(0); } .staff-search-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; } /* ── Loading dots (htmx-indicator) ── */ .staff-loading { display: none; justify-content: center; gap: 0.4rem; padding: 0.75rem 0 0; } .staff-loading.htmx-request { display: flex; } .staff-loading-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: 0.6; animation: staff-bounce 1s ease-in-out infinite; } .staff-loading-dot:nth-child(2) { animation-delay: 0.15s; } .staff-loading-dot:nth-child(3) { animation-delay: 0.3s; } @keyframes staff-bounce { 0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } } /* ── Hint (initial empty state) ── */ .staff-hint { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 3rem 1rem; text-align: center; color: var(--text-muted); } .staff-hint-icon { opacity: 0.35; } .staff-hint-icon i[data-lucide], .staff-hint-icon svg { width: 28px; height: 28px; } .staff-hint-text { font-size: 0.9375rem; font-weight: 500; margin: 0; } .staff-hint-sub { font-size: 0.8125rem; margin: 0; opacity: 0.7; } /* ── Not-found state ── */ .staff-not-found { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 2.5rem 1rem; text-align: center; color: var(--text-muted); } .staff-not-found-icon { opacity: 0.4; } .staff-not-found-title { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0; } .staff-not-found-sub { font-size: 0.875rem; margin: 0; } /* ── Profile card ── */ .staff-profile { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); margin-bottom: 1.5rem; } .staff-avatar { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #764ba2)); user-select: none; } .staff-info { flex: 1; min-width: 0; } .staff-name { font-size: 1.125rem; font-weight: 700; color: var(--text); margin: 0 0 0.375rem; } .staff-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; } .staff-position { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; } /* ── Role badge ── */ .staff-role-badge { display: inline-block; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.18rem 0.5rem; border-radius: 4px; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); } .staff-role-admin { background: color-mix(in srgb,#c2883b 12%,var(--surface)); color: #c2883b; } .staff-role-surgeon { background: color-mix(in srgb,#5c8c9a 12%,var(--surface)); color: #5c8c9a; } .staff-role-nurse { background: color-mix(in srgb,#56a066 12%,var(--surface)); color: #56a066; } /* ── Dept / username inline chips ── */ .staff-dept { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: var(--text-muted); } .staff-username { font-size: 0.75rem; color: var(--text-muted); font-style: italic; } /* ── Two-column sections grid ── */ .staff-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .staff-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 1.25rem; } .staff-section .is-section-label { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 1rem; } /* ── Count badge on section label ── */ .staff-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 0.375rem; font-size: 0.625rem; font-weight: 700; border-radius: 999px; background: color-mix(in srgb, var(--text-muted) 15%, transparent); color: var(--text-muted); } .staff-count--alert { background: color-mix(in srgb,#c2883b 18%,transparent); color: #c2883b; } /* ── Schedule / review list ── */ .staff-list { display: flex; flex-direction: column; gap: 0.5rem; } .staff-schedule-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: 0.5rem; border: 1px solid var(--border); background: var(--bg); } .staff-review-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: 0.5rem; border: 1px solid var(--border); background: var(--bg); text-decoration: none; color: var(--text); transition: border-color 0.14s, transform 0.14s; } .staff-review-item:hover { border-color: var(--primary); transform: translateY(-1px); text-decoration: none; color: var(--text); } .staff-review-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-color: var(--primary); } .staff-review-icon { width: 28px; height: 28px; border-radius: 0.375rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); } /* ── Schedule date chip ── */ .staff-schedule-date { font-size: 0.6875rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; min-width: 56px; padding: 0.2rem 0.375rem; border-radius: 4px; background: color-mix(in srgb, var(--text-muted) 10%, transparent); text-align: center; } .staff-schedule-body { flex: 1; min-width: 0; } .staff-schedule-proc { font-size: 0.875rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .staff-schedule-patient { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.125rem; } /* ── Urgency/status badge ── */ .staff-badge { flex-shrink: 0; font-size: 0.5625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.2rem 0.4rem; border-radius: 4px; white-space: nowrap; background: color-mix(in srgb, var(--text-muted) 12%, transparent); color: var(--text-muted); } .staff-badge--emergency { background: color-mix(in srgb,#dc2626 15%,transparent); color: #dc2626; } .staff-badge--urgent { background: color-mix(in srgb,#ea580c 15%,transparent); color: #ea580c; } .staff-badge--elective { background: color-mix(in srgb,var(--primary) 12%,transparent); color: var(--primary); } .staff-badge--high { background: color-mix(in srgb,#c2883b 15%,transparent); color: #c2883b; } .staff-badge--medium { background: color-mix(in srgb,#56a066 15%,transparent); color: #56a066; } .staff-badge--low { background: color-mix(in srgb,var(--text-muted) 12%,transparent); color: var(--text-muted); } .staff-badge--scheduled { background: color-mix(in srgb,var(--primary) 12%,transparent); color: var(--primary); } .staff-badge--pre_op_prep { background: color-mix(in srgb,#56a066 15%,transparent); color: #56a066; } /* ── Empty section state ── */ .staff-empty { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 2rem 1rem; text-align: center; color: var(--text-muted); opacity: 0.6; font-size: 0.8125rem; } /* ── Responsive ── */ @media (max-width: 640px) { .staff-sections { grid-template-columns: 1fr; } .staff-search-row { flex-direction: column; } .staff-search-btn { width: 100%; justify-content: center; } .staff-profile { flex-direction: column; text-align: center; } .staff-avatar { align-self: center; } .staff-meta { justify-content: center; } } /* ════════════════════════════════════════════════════════════════ Research — study card details ════════════════════════════════════════════════════════════════ */ .research-hypothesis { font-size: 0.8125rem; color: var(--text-muted); font-style: italic; line-height: 1.5; border-left: 2px solid color-mix(in srgb, var(--primary) 30%, transparent); padding-left: 0.625rem; margin: 0.375rem 0 0; } .metric--before { color: #f59e0b; font-weight: 700; } .metric--after { color: #10b981; font-weight: 700; } /* ── Pagination ── */ .is-pagination { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 1rem 0 0.5rem; } .is-page-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.375rem 0.875rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--surface); color: var(--text); font-size: 0.8125rem; font-weight: 500; cursor: pointer; text-decoration: none; transition: border-color 0.12s, background 0.12s, color 0.12s; } .is-page-btn:hover { border-color: var(--primary); color: var(--primary); } .is-page-btn[disabled], .is-page-btn.disabled { opacity: 0.4; pointer-events: none; } .is-page-btn:focus-visible { outline: var(--focus-ring, 2px solid var(--primary)); outline-offset: 2px; } .is-page-info { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; } /* ── Forced-colors (Windows High Contrast) ───────────────────────────────── Ensure island components remain usable in high-contrast OS modes. ──────────────────────────────────────────────────────────────────────────── */ @media (forced-colors: active) { .is-card, .is-card-link { border: 1px solid ButtonText; } .is-action { border: 1px solid ButtonText; } .is-app { border: 1px solid ButtonText; background: ButtonFace; } .is-search { border: 1px solid ButtonText; background: Field; color: FieldText; } .is-page-btn { border: 1px solid ButtonText; } }