1071 lines
No EOL
21 KiB
CSS
1071 lines
No EOL
21 KiB
CSS
/* ==========================================================================
|
|
Family Tree Logger - Modern Design System
|
|
========================================================================== */
|
|
|
|
:root {
|
|
/* Color Palette - Dark Theme (Default) */
|
|
--bg-main: #0b0f17;
|
|
--bg-surface: #131b2e;
|
|
--bg-surface-elevated: #1a243d;
|
|
--bg-card: rgba(22, 31, 53, 0.85);
|
|
--bg-glass: rgba(15, 23, 42, 0.75);
|
|
|
|
--border-color: rgba(255, 255, 255, 0.08);
|
|
--border-hover: rgba(255, 255, 255, 0.2);
|
|
--border-highlight: #10b981;
|
|
|
|
--text-primary: #f1f5f9;
|
|
--text-secondary: #94a3b8;
|
|
--text-muted: #64748b;
|
|
|
|
--primary: #10b981;
|
|
--primary-hover: #059669;
|
|
--primary-glow: rgba(16, 185, 129, 0.25);
|
|
|
|
--accent-blue: #38bdf8;
|
|
--accent-rose: #f43f5e;
|
|
--accent-purple: #c084fc;
|
|
--accent-amber: #fbbf24;
|
|
|
|
--danger: #ef4444;
|
|
--danger-bg: rgba(239, 68, 68, 0.15);
|
|
|
|
--grid-dot: rgba(255, 255, 255, 0.06);
|
|
--tree-line: #3b82f6;
|
|
--tree-line-spouse: #f43f5e;
|
|
|
|
--radius-sm: 6px;
|
|
--radius-md: 10px;
|
|
--radius-lg: 16px;
|
|
--radius-full: 9999px;
|
|
|
|
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
--shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
|
|
--shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.5);
|
|
|
|
--font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
--font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
}
|
|
|
|
/* Light Theme Variables */
|
|
body.light-theme {
|
|
--bg-main: #f8fafc;
|
|
--bg-surface: #ffffff;
|
|
--bg-surface-elevated: #f1f5f9;
|
|
--bg-card: rgba(255, 255, 255, 0.95);
|
|
--bg-glass: rgba(255, 255, 255, 0.85);
|
|
|
|
--border-color: rgba(0, 0, 0, 0.08);
|
|
--border-hover: rgba(0, 0, 0, 0.2);
|
|
--border-highlight: #059669;
|
|
|
|
--text-primary: #0f172a;
|
|
--text-secondary: #475569;
|
|
--text-muted: #94a3b8;
|
|
|
|
--primary: #059669;
|
|
--primary-hover: #047857;
|
|
--primary-glow: rgba(5, 150, 105, 0.2);
|
|
|
|
--grid-dot: rgba(0, 0, 0, 0.06);
|
|
--tree-line: #2563eb;
|
|
--tree-line-spouse: #e11d48;
|
|
|
|
--shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
|
|
--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
--shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
/* Base Reset & Layout */
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html, body {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
font-family: var(--font-body);
|
|
background-color: var(--bg-main);
|
|
color: var(--text-primary);
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
/* Top App Header */
|
|
.app-header {
|
|
height: 64px;
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(14px);
|
|
-webkit-backdrop-filter: blur(14px);
|
|
border-bottom: 1px solid var(--border-color);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 1.5rem;
|
|
position: relative;
|
|
z-index: 50;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.brand-icon {
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: var(--radius-md);
|
|
background: linear-gradient(135deg, var(--primary), #0284c7);
|
|
color: #fff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 4px 12px var(--primary-glow);
|
|
}
|
|
|
|
.brand-title {
|
|
font-family: var(--font-heading);
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
line-height: 1.2;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.brand-subtitle {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* View Mode Switcher */
|
|
.view-toggle-group {
|
|
display: flex;
|
|
background: var(--bg-surface-elevated);
|
|
border-radius: var(--radius-full);
|
|
padding: 3px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.toggle-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
background: transparent;
|
|
border: none;
|
|
padding: 0.35rem 0.9rem;
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
border-radius: var(--radius-full);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.toggle-btn:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.toggle-btn.active {
|
|
background: var(--primary);
|
|
color: #ffffff;
|
|
box-shadow: 0 2px 8px var(--primary-glow);
|
|
}
|
|
|
|
/* Header Right Actions */
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.search-box {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.search-icon {
|
|
position: absolute;
|
|
left: 0.75rem;
|
|
color: var(--text-muted);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.search-box input {
|
|
background: var(--bg-surface-elevated);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-full);
|
|
padding: 0.45rem 2rem 0.45rem 2.2rem;
|
|
font-size: 0.825rem;
|
|
color: var(--text-primary);
|
|
width: 220px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.search-box input:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
width: 280px;
|
|
box-shadow: 0 0 0 3px var(--primary-glow);
|
|
}
|
|
|
|
.clear-search-btn {
|
|
position: absolute;
|
|
right: 0.6rem;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
font-size: 1.1rem;
|
|
line-height: 1;
|
|
display: none;
|
|
}
|
|
|
|
.clear-search-btn.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
font-family: var(--font-body);
|
|
font-size: 0.825rem;
|
|
font-weight: 600;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: var(--radius-md);
|
|
cursor: pointer;
|
|
border: 1px solid transparent;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--primary);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--primary-hover);
|
|
box-shadow: 0 4px 12px var(--primary-glow);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-surface-elevated);
|
|
color: var(--text-primary);
|
|
border-color: var(--border-color);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--bg-surface);
|
|
border-color: var(--border-hover);
|
|
}
|
|
|
|
.btn.icon-only {
|
|
padding: 0.5rem;
|
|
border-radius: var(--radius-full);
|
|
width: 36px;
|
|
height: 36px;
|
|
}
|
|
|
|
.btn-danger-outline {
|
|
background: transparent;
|
|
color: var(--danger);
|
|
border-color: var(--danger);
|
|
}
|
|
|
|
.btn-danger-outline:hover {
|
|
background: var(--danger-bg);
|
|
}
|
|
|
|
/* Dropdown Menu */
|
|
.dropdown {
|
|
position: relative;
|
|
}
|
|
|
|
.dropdown-menu {
|
|
position: absolute;
|
|
top: calc(100% + 8px);
|
|
right: 0;
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
box-shadow: var(--shadow-lg);
|
|
padding: 0.35rem;
|
|
min-width: 190px;
|
|
z-index: 100;
|
|
display: none;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.dropdown-menu.show {
|
|
display: flex;
|
|
}
|
|
|
|
.dropdown-item {
|
|
background: transparent;
|
|
border: none;
|
|
text-align: left;
|
|
padding: 0.55rem 0.85rem;
|
|
font-size: 0.825rem;
|
|
color: var(--text-primary);
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
transition: background 0.15s ease;
|
|
}
|
|
|
|
.dropdown-item:hover {
|
|
background: var(--bg-surface-elevated);
|
|
}
|
|
|
|
.dropdown-item.danger {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.dropdown-divider {
|
|
height: 1px;
|
|
background: var(--border-color);
|
|
margin: 0.3rem 0;
|
|
}
|
|
|
|
/* Main Viewport Container */
|
|
.main-viewport {
|
|
width: 100%;
|
|
height: calc(100vh - 64px);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.view-panel {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: none;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.view-panel.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Tree Viewport & Canvas */
|
|
.tree-viewport {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
position: relative;
|
|
cursor: grab;
|
|
user-select: none;
|
|
background-color: var(--bg-main);
|
|
background-image: radial-gradient(circle, var(--grid-dot) 1.5px, transparent 1.5px);
|
|
background-size: 28px 28px;
|
|
}
|
|
|
|
.tree-viewport.panning {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.tree-canvas {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
transform-origin: 0 0;
|
|
will-change: transform;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
/* SVG Connection Lines */
|
|
.tree-svg {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
overflow: visible;
|
|
z-index: 1;
|
|
}
|
|
|
|
.tree-svg path.relation-line {
|
|
fill: none;
|
|
stroke: var(--tree-line);
|
|
stroke-width: 2.5px;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
opacity: 0.75;
|
|
transition: stroke 0.2s, stroke-width 0.2s, opacity 0.2s;
|
|
}
|
|
|
|
.tree-svg path.relation-line.spouse {
|
|
stroke: var(--tree-line-spouse);
|
|
stroke-width: 2.5px;
|
|
stroke-dasharray: 4 4;
|
|
}
|
|
|
|
.tree-svg path.relation-line.highlighted {
|
|
stroke: var(--accent-amber);
|
|
stroke-width: 3.5px;
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Tree Nodes Layer */
|
|
.tree-nodes-layer {
|
|
position: relative;
|
|
z-index: 2;
|
|
padding: 60px;
|
|
min-width: 1000px;
|
|
min-height: 800px;
|
|
}
|
|
|
|
/* Generation Tier Layout */
|
|
.generation-row {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
gap: 40px;
|
|
margin-bottom: 90px;
|
|
position: relative;
|
|
}
|
|
|
|
.generation-label-tag {
|
|
position: absolute;
|
|
left: 20px;
|
|
top: -24px;
|
|
font-size: 0.7rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--text-muted);
|
|
background: var(--bg-surface-elevated);
|
|
padding: 3px 10px;
|
|
border-radius: var(--radius-full);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* Family Units */
|
|
.family-unit {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.couple-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
position: relative;
|
|
}
|
|
|
|
.marriage-symbol {
|
|
width: 24px;
|
|
height: 24px;
|
|
background: var(--bg-surface-elevated);
|
|
border: 1px solid var(--tree-line-spouse);
|
|
color: var(--accent-rose);
|
|
border-radius: var(--radius-full);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.7rem;
|
|
box-shadow: var(--shadow-sm);
|
|
z-index: 5;
|
|
}
|
|
|
|
/* Person Tree Card */
|
|
.person-card {
|
|
width: 215px;
|
|
min-height: 110px;
|
|
background: var(--bg-card);
|
|
backdrop-filter: blur(12px);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
padding: 0.85rem 1rem;
|
|
box-shadow: var(--shadow-md);
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.person-card:hover {
|
|
transform: translateY(-4px);
|
|
border-color: var(--primary);
|
|
box-shadow: var(--shadow-lg), 0 0 20px var(--primary-glow);
|
|
}
|
|
|
|
.person-card.male {
|
|
border-left: 4px solid var(--accent-blue);
|
|
}
|
|
|
|
.person-card.female {
|
|
border-left: 4px solid var(--accent-rose);
|
|
}
|
|
|
|
.person-card.other {
|
|
border-left: 4px solid var(--accent-purple);
|
|
}
|
|
|
|
.person-card.selected {
|
|
border-color: var(--accent-amber) !important;
|
|
box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3), var(--shadow-lg);
|
|
}
|
|
|
|
.person-card.search-match {
|
|
animation: pulseHighlight 1.5s infinite;
|
|
}
|
|
|
|
@keyframes pulseHighlight {
|
|
0%, 100% {
|
|
box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.4), var(--shadow-lg);
|
|
}
|
|
50% {
|
|
box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.8), var(--shadow-lg);
|
|
}
|
|
}
|
|
|
|
.card-top {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.card-name {
|
|
font-family: var(--font-heading);
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
line-height: 1.25;
|
|
color: var(--text-primary);
|
|
word-break: break-word;
|
|
}
|
|
|
|
.status-indicator {
|
|
font-size: 0.65rem;
|
|
padding: 2px 7px;
|
|
border-radius: var(--radius-full);
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.status-indicator.living {
|
|
background: rgba(16, 185, 129, 0.18);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.status-indicator.deceased {
|
|
background: rgba(148, 163, 184, 0.15);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.card-dates {
|
|
margin-top: 0.4rem;
|
|
font-size: 0.775rem;
|
|
color: var(--text-secondary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.date-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.date-symbol {
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.card-lifespan-badge {
|
|
margin-top: 0.4rem;
|
|
font-size: 0.7rem;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Card Quick Hover Actions */
|
|
.card-quick-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 4px;
|
|
margin-top: 0.5rem;
|
|
padding-top: 0.4rem;
|
|
border-top: 1px solid var(--border-color);
|
|
opacity: 0.6;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.person-card:hover .card-quick-actions {
|
|
opacity: 1;
|
|
}
|
|
|
|
.card-action-btn {
|
|
background: var(--bg-surface-elevated);
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-secondary);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.7rem;
|
|
padding: 2px 6px;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.card-action-btn:hover {
|
|
background: var(--primary);
|
|
color: #fff;
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
/* Canvas Floating Controls */
|
|
.canvas-controls {
|
|
position: absolute;
|
|
bottom: 24px;
|
|
right: 24px;
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(12px);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-full);
|
|
padding: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
box-shadow: var(--shadow-lg);
|
|
z-index: 10;
|
|
}
|
|
|
|
.control-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-primary);
|
|
width: 34px;
|
|
height: 34px;
|
|
border-radius: var(--radius-full);
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.control-btn:hover {
|
|
background: var(--bg-surface-elevated);
|
|
}
|
|
|
|
.control-btn.auto-sort-btn {
|
|
width: auto;
|
|
padding: 0 12px;
|
|
font-size: 0.775rem;
|
|
gap: 6px;
|
|
}
|
|
|
|
.control-divider {
|
|
width: 1px;
|
|
height: 18px;
|
|
background: var(--border-color);
|
|
margin: 0 2px;
|
|
}
|
|
|
|
.canvas-hint {
|
|
position: absolute;
|
|
bottom: 24px;
|
|
left: 24px;
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid var(--border-color);
|
|
padding: 6px 14px;
|
|
border-radius: var(--radius-full);
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
z-index: 10;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Registry List View Panel */
|
|
.list-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 2.5rem 1.5rem;
|
|
height: 100%;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.list-header-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.list-header-row h2 {
|
|
font-family: var(--font-heading);
|
|
font-size: 1.6rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.table-card {
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-md);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.table-responsive {
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.registry-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
text-align: left;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.registry-table th {
|
|
background: var(--bg-surface-elevated);
|
|
padding: 0.85rem 1rem;
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
font-size: 0.8rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
border-bottom: 1px solid var(--border-color);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.registry-table th:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.sort-indicator {
|
|
font-size: 0.75rem;
|
|
margin-left: 4px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.registry-table td {
|
|
padding: 1rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
color: var(--text-primary);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.registry-table tr:hover td {
|
|
background: var(--bg-surface-elevated);
|
|
}
|
|
|
|
.table-person-name {
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.gender-tag {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-full);
|
|
font-size: 0.725rem;
|
|
font-weight: 500;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.gender-tag.male {
|
|
background: rgba(56, 189, 248, 0.15);
|
|
color: var(--accent-blue);
|
|
}
|
|
|
|
.gender-tag.female {
|
|
background: rgba(244, 63, 94, 0.15);
|
|
color: var(--accent-rose);
|
|
}
|
|
|
|
.gender-tag.other {
|
|
background: rgba(192, 132, 252, 0.15);
|
|
color: var(--accent-purple);
|
|
}
|
|
|
|
/* Modals */
|
|
.modal-backdrop {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
backdrop-filter: blur(6px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
padding: 1rem;
|
|
animation: fadeIn 0.2s ease;
|
|
}
|
|
|
|
.modal-dialog {
|
|
width: 100%;
|
|
max-width: 520px;
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-lg);
|
|
overflow: hidden;
|
|
animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
.modal-dialog-sm {
|
|
max-width: 440px;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from { transform: translateY(20px) scale(0.98); opacity: 0; }
|
|
to { transform: translateY(0) scale(1); opacity: 1; }
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 1.25rem 1.5rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.modal-header h2, .modal-header h3 {
|
|
font-family: var(--font-heading);
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.close-btn {
|
|
background: transparent;
|
|
border: none;
|
|
font-size: 1.5rem;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.close-btn:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.person-form, .modal-body {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.form-row {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-bottom: 1.1rem;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.4rem;
|
|
margin-bottom: 1.1rem;
|
|
}
|
|
|
|
.form-row .form-group {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.flex-1 {
|
|
flex: 1;
|
|
}
|
|
|
|
.form-group label {
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.form-group label .req {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.form-group input[type="text"],
|
|
.form-group input[type="date"],
|
|
.form-group select,
|
|
.form-group textarea {
|
|
background: var(--bg-surface-elevated);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: 0.6rem 0.85rem;
|
|
color: var(--text-primary);
|
|
font-family: var(--font-body);
|
|
font-size: 0.875rem;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group select:focus,
|
|
.form-group textarea:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px var(--primary-glow);
|
|
}
|
|
|
|
.form-divider {
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--text-muted);
|
|
border-bottom: 1px solid var(--border-color);
|
|
padding-bottom: 0.4rem;
|
|
margin: 1.25rem 0 1rem 0;
|
|
}
|
|
|
|
.custom-checkbox {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.custom-checkbox input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
accent-color: var(--primary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 0.75rem;
|
|
padding-top: 1.25rem;
|
|
border-top: 1px solid var(--border-color);
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.modal-footer.justify-between {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.footer-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Details Modal Specifics */
|
|
.detail-item {
|
|
margin-bottom: 0.85rem;
|
|
}
|
|
|
|
.detail-label {
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.detail-val {
|
|
font-size: 0.95rem;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* Toast Notification */
|
|
.toast-notification {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(100px);
|
|
background: var(--bg-surface-elevated);
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-primary);
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: var(--radius-full);
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
box-shadow: var(--shadow-lg);
|
|
z-index: 2000;
|
|
opacity: 0;
|
|
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.toast-notification.show {
|
|
transform: translateX(-50%) translateY(0);
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Empty State */
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 400px;
|
|
text-align: center;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.empty-state h3 {
|
|
font-size: 1.3rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.empty-state p {
|
|
color: var(--text-secondary);
|
|
max-width: 400px;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 768px) {
|
|
.app-header {
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
.brand-subtitle, .view-toggle-group span, .canvas-hint {
|
|
display: none;
|
|
}
|
|
|
|
.search-box input {
|
|
width: 140px;
|
|
}
|
|
|
|
.search-box input:focus {
|
|
width: 180px;
|
|
}
|
|
|
|
.btn span {
|
|
display: none;
|
|
}
|
|
|
|
.btn {
|
|
padding: 0.5rem;
|
|
}
|
|
} |