/* --- RØSSTAD DESIGN SYSTEM --- */ @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap'); @import url('tree.css'); :root { /* --- PALETTE: Røsstad Green --- */ --color-primary-dark: #0f2f24; /* Deep Forest */ --color-primary: #134e4a; /* Røsstad Teal */ --color-primary-light: #2dd4bf; /* Bright Teal */ --color-accent: #d97706; /* Gold/Bronze */ --color-danger: #be123c; /* Berry Red */ --color-bg: #f0fdf4; /* Soft Mist Green */ --color-surface: #ffffff; /* Pure White */ --color-surface-glass: rgba(255, 255, 255, 0.85); --color-text-main: #1e293b; /* Slate 800 */ --color-text-muted: #64748b; /* Slate 500 */ --color-male: #0ea5e9; /* Sky Blue */ --color-female: #be123c; /* Rose */ /* --- SHADOWS & EFFECTS --- */ --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1); --blur-glass: blur(12px); /* --- SPACING & RADIUS --- */ --radius-sm: 0.5rem; --radius-md: 0.75rem; --radius-lg: 1.5rem; } /* --- GLOBAL RESET --- */ * { box-sizing: border-box; } body { margin: 0; font-family: 'Outfit', sans-serif; background-color: var(--color-bg); color: var(--color-text-main); height: 100vh; overflow: hidden; /* Subtle background pattern */ background-image: radial-gradient(at 0% 0%, rgba(15, 47, 36, 0.05) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(217, 119, 6, 0.05) 0px, transparent 50%); } /* --- UTILITIES --- */ .hidden { display: none !important; } .full-width { width: 100%; } .flex-center { display: flex; justify-content: center; align-items: center; } /* --- LOGIN PAGE --- */ body.login-page { display: flex; justify-content: center; align-items: center; background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%); } .login-container { background: rgba(255, 255, 255, 0.1); backdrop-filter: var(--blur-glass); padding: 3rem; border-radius: var(--radius-lg); width: 100%; max-width: 400px; text-align: center; color: white; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: var(--shadow-lg); } .login-logo { font-size: 4rem; color: var(--color-primary-light); margin-bottom: 1rem; } .login-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem 0; } .login-subtitle { font-size: 0.9rem; opacity: 0.8; margin-bottom: 2rem; font-weight: 300; } .input-field { width: 100%; padding: 1rem; margin-bottom: 1rem; border: none; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.95); font-family: inherit; font-size: 1rem; transition: box-shadow 0.2s; } .input-field:focus { outline: none; box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.5); } .btn-primary { width: 100%; padding: 1rem; border: none; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: white; font-weight: 600; font-size: 1rem; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } .error-message { color: #fda4af; margin-top: 1rem; font-size: 0.9rem; min-height: 1.2em; } /* --- MAIN APP LAYOUT --- */ #app-root { display: flex; flex-direction: column; height: 100vh; } /* Header */ .app-header { background: var(--color-surface-glass); backdrop-filter: blur(10px); padding: 0.8rem 2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0, 0, 0, 0.05); z-index: 100; } .brand-logo { display: flex; align-items: center; gap: 0.8rem; font-size: 1.2rem; font-weight: 700; color: var(--color-primary-dark); } .brand-logo i { color: var(--color-primary); font-size: 1.5rem; } /* Navigation Tabs */ .nav-tabs { display: flex; gap: 0.5rem; background: rgba(0, 0, 0, 0.05); padding: 0.3rem; border-radius: var(--radius-md); } .nav-tab { padding: 0.5rem 1.2rem; border: none; background: transparent; border-radius: var(--radius-sm); color: var(--color-text-muted); font-weight: 600; cursor: pointer; transition: all 0.2s; } .nav-tab.active { background: white; color: var(--color-primary); box-shadow: var(--shadow-sm); } .nav-tab:hover:not(.active) { color: var(--color-primary); background: rgba(255, 255, 255, 0.5); } /* Controls */ .header-controls { display: flex; align-items: center; gap: 1rem; } .icon-btn { background: none; border: none; font-size: 1.5rem; color: var(--color-text-muted); cursor: pointer; transition: color 0.2s; display: flex; } .icon-btn:hover { color: var(--color-primary); } .btn-logout { font-size: 0.9rem; padding: 0.4rem 1rem; border: 1px solid var(--color-primary); color: var(--color-primary); background: transparent; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; } .btn-logout:hover { background: var(--color-primary); color: white; } /* --- VIEW SECTIONS --- */ .view-section { flex: 1; overflow: hidden; position: relative; } /* Tree View */ #tree-container { width: 100%; height: 100%; overflow: auto; display: flex; justify-content: center; align-items: center; padding: 4rem; cursor: grab; } #tree-container:active { cursor: grabbing; } .tree-grid { display: flex; flex-direction: column; align-items: center; gap: 5rem; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); } .tree-row { display: flex; justify-content: center; gap: 3rem; } .tree-row.children { gap: 2rem; flex-wrap: wrap; } /* Person Card */ .card { width: 200px; min-height: 130px; background: var(--color-surface-glass); border: 1px solid white; border-radius: var(--radius-md); padding: 1.2rem; display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow-md); cursor: pointer; transition: all 0.3s; position: relative; } .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--color-primary-light); } .card.focus { transform: scale(1.15); z-index: 10; border: 2px solid var(--color-primary); background: white; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); } .card-avatar { font-size: 2rem; padding: 0.5rem; border-radius: 50%; margin-bottom: 0.5rem; } .card.male .card-avatar { color: var(--color-male); background: #e0f2fe; } .card.female .card-avatar { color: var(--color-female); background: #ffe4e6; } .card-name { font-size: 1rem; font-weight: 700; margin: 0.2rem 0; text-align: center; } .card-dates { font-size: 0.8rem; color: var(--color-text-muted); font-family: monospace; } .card-location { font-size: 0.7rem; margin-top: 0.5rem; padding: 2px 8px; background: rgba(45, 212, 191, 0.15); color: var(--color-primary-dark); border-radius: 10px; display: flex; align-items: center; gap: 4px; } /* Add Buttons (Mini) */ .mini-actions { position: absolute; inset: 0; pointer-events: none; } .btn-mini { pointer-events: auto; position: absolute; width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary); color: white; border: none; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: var(--shadow-md); transition: transform 0.2s; } .btn-mini:hover { transform: scale(1.2); background: var(--color-primary-dark); } .btn-add-child { bottom: -16px; left: 50%; transform: translateX(-50%); } .btn-add-partner { top: 50%; right: -16px; transform: translateY(-50%); } /* Empty Slot */ .slot { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; } .slot-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--color-text-muted); opacity: 0.7; } .btn-slot { width: 50px; height: 50px; border-radius: 50%; border: 2px dashed #cbd5e1; background: rgba(255, 255, 255, 0.5); color: #94a3b8; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; cursor: pointer; transition: all 0.2s; } .btn-slot:hover { border-color: var(--color-primary); color: var(--color-primary); background: white; } /* Map & Timeline */ #map-container { width: 100%; height: 100%; background: #e2e8f0; } .timeline-wrapper { max-width: 800px; margin: 0 auto; padding: 3rem 1rem; overflow-y: auto; height: 100%; } .timeline-event { position: relative; padding-left: 2rem; margin-bottom: 2rem; border-left: 2px solid var(--color-primary-light); } .timeline-event::before { content: ''; position: absolute; left: -6px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--color-primary); } .event-date { font-weight: 700; color: var(--color-primary); font-size: 0.9rem; } .event-card { background: white; padding: 1rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-top: 0.5rem; } /* --- MODAL --- */ .modal-overlay { position: fixed; inset: 0; background: rgba(15, 47, 36, 0.6); backdrop-filter: blur(4px); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; animation: fadeIn 0.2s forwards; } @keyframes fadeIn { to { opacity: 1; } } .modal-content { background: white; width: 90%; max-width: 500px; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg); transform: scale(0.95); animation: popIn 0.3s forwards; } @keyframes popIn { to { transform: scale(1); } } .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; border-bottom: 1px solid #f1f5f9; padding-bottom: 1rem; } .modal-title { font-size: 1.4rem; font-weight: 700; color: var(--color-primary-dark); margin: 0; } .form-group { margin-bottom: 1rem; } .form-label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.4rem; } .form-row { display: flex; gap: 1rem; } /* --- FAB (Floating Action Button) --- */ .fab-btn { position: fixed; bottom: 2rem; right: 2rem; width: 64px; height: 64px; border-radius: 50%; background: var(--color-primary); color: white; border: none; box-shadow: var(--shadow-lg); display: flex; justify-content: center; align-items: center; font-size: 2rem; cursor: pointer; z-index: 500; transition: transform 0.2s, background 0.2s; } .fab-btn:hover { transform: scale(1.1) rotate(90deg); background: var(--color-primary-dark); }