/* ═══════════════════════════════════════════════════════════ BREATHE — Design System ═══════════════════════════════════════════════════════════ */ /* ───────────────────────────────────────────────────────────── LANDING PAGE ───────────────────────────────────────────────────────────── */ /* Root wrapper */ .lp { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; overflow-x: hidden; } /* ── Shared gradient text ── */ .lp-gradient-text { background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 60%, #f472b6 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* ── Nav ─────────────────────────────────────────────────── */ .lp-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 90; background: rgba(var(--nav-bg-rgb, 7,9,15),.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); } .lp-nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; padding: 0 24px; height: 64px; gap: 32px; } .lp-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; } .lp-logo-img { height: 48px; width: auto; display: block; } .lp-nav-links { display: flex; gap: 4px; flex: 1; } .lp-nav-link { padding: 7px 14px; border-radius: var(--r-sm); color: var(--muted); font-size: .88rem; font-weight: 500; transition: var(--t); text-decoration: none; } .lp-nav-link:hover { color: var(--text); background: var(--surface2); } .lp-nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; } /* Nav buttons */ .lp-btn-ghost { padding: 8px 18px; border: 1px solid var(--border2); border-radius: var(--r-sm); color: var(--muted2); font-size: .88rem; font-weight: 500; background: transparent; text-decoration: none; transition: var(--t); } .lp-btn-ghost:hover { color: var(--text); border-color: var(--accent); } .lp-btn-solid { padding: 8px 18px; border-radius: var(--r-sm); border: none; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: .88rem; font-weight: 600; text-decoration: none; transition: opacity var(--t), box-shadow var(--t); box-shadow: 0 4px 14px rgba(91,156,246,.3); } .lp-btn-solid:hover { opacity: .88; box-shadow: 0 6px 20px rgba(91,156,246,.45); } /* ── Hero ─────────────────────────────────────────────────── */ .lp-hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; padding: 120px 24px 80px; } /* Rings */ .lp-rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; } .lp-ring { position: absolute; border-radius: 50%; animation: lp-breathe 6s ease-in-out infinite; } .lp-ring-1 { width: 160px; height: 160px; border: 1.5px solid rgba(91,156,246,.5); animation-delay: 0s; } .lp-ring-2 { width: 300px; height: 300px; border: 1px solid rgba(91,156,246,.28); animation-delay: .8s; } .lp-ring-3 { width: 460px; height: 460px; border: 1px solid rgba(167,139,250,.18);animation-delay: 1.6s; } .lp-ring-4 { width: 640px; height: 640px; border: 1px solid rgba(167,139,250,.1); animation-delay: 2.4s; } .lp-ring-5 { width: 860px; height: 860px; border: 1px solid rgba(91,156,246,.06); animation-delay: 3.2s; } @keyframes lp-breathe { 0%,100% { transform: scale(.94); opacity: .6; } 50% { transform: scale(1.06); opacity: .2; } } /* Radial glow behind hero */ .lp-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(91,156,246,.1) 0%, transparent 70%); pointer-events: none; } .lp-hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; } .lp-hero-badge { display: inline-block; margin-bottom: 24px; padding: 6px 16px; border-radius: 20px; background: rgba(91,156,246,.1); border: 1px solid rgba(91,156,246,.25); color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .04em; } .lp-hero-h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; color: var(--text); margin-bottom: 22px; } .lp-hero-sub { font-size: clamp(.95rem, 2vw, 1.15rem); color: var(--muted2); line-height: 1.75; max-width: 580px; margin: 0 auto 36px; } .lp-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; } /* Hero CTA buttons */ .lp-btn-hero-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: var(--r-sm); border: none; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 1rem; font-weight: 700; text-decoration: none; box-shadow: 0 6px 28px rgba(91,156,246,.4); transition: opacity var(--t), transform var(--t), box-shadow var(--t); } .lp-btn-hero-primary:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 10px 36px rgba(91,156,246,.55); } .lp-btn--xl { padding: 16px 40px; font-size: 1.05rem; } .lp-btn-hero-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: var(--r-sm); border: 1px solid var(--border2); color: var(--muted2); font-size: 1rem; font-weight: 500; text-decoration: none; transition: var(--t); background: transparent; } .lp-btn-hero-ghost:hover { color: var(--text); border-color: var(--accent); background: rgba(91,156,246,.05); } .lp-btn-arrow { transition: transform var(--t); } .lp-btn-hero-primary:hover .lp-btn-arrow { transform: translateX(4px); } /* ── Stats bar ─────────────────────────────────────────────── */ .lp-stats { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 24px; } .lp-stat { text-align: center; padding: 8px 40px; } .lp-stat-num { font-size: 1.7rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; } .lp-stat-lbl { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; } .lp-stat-div { width: 1px; height: 44px; background: var(--border); flex-shrink: 0; } /* ── Sections ──────────────────────────────────────────────── */ .lp-section { max-width: 1100px; margin: 0 auto; padding: 96px 24px; text-align: center; } .lp-section--alt { background: var(--surface); max-width: 100%; padding: 96px 24px; } .lp-section--alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; } .lp-section-label { font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; } .lp-section-h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--text); margin-bottom: 14px; } .lp-section-sub { color: var(--muted2); font-size: 1rem; max-width: 520px; margin: 0 auto 56px; line-height: 1.7; } /* ── Feature cards ─────────────────────────────────────────── */ .lp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; } .lp-feat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px 24px; text-align: left; transition: border-color var(--t), transform var(--t), box-shadow var(--t); } .lp-feat-card:hover { border-color: var(--fc, var(--accent)); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.4); } .lp-feat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 18px; } .lp-feat-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; } .lp-feat-desc { font-size: .875rem; color: var(--muted); line-height: 1.7; } /* ── How it works ──────────────────────────────────────────── */ .lp-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin-top: 56px; position: relative; max-width: 800px; margin-left: auto; margin-right: auto; } .lp-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; padding: 0 16px; } .lp-step-n { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(91,156,246,.15), 0 4px 18px rgba(91,156,246,.3); margin-bottom: 20px; z-index: 1; } .lp-step-line { position: absolute; top: 28px; left: calc(50% + 36px); right: calc(-50% + 36px); height: 1px; background: linear-gradient(90deg, var(--accent), var(--accent2)); opacity: .35; } .lp-step-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); } .lp-step-desc { font-size: .875rem; color: var(--muted); line-height: 1.65; } /* ── Stress levels ─────────────────────────────────────────── */ .lp-levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 56px; } .lp-level-card { background: var(--lb, rgba(91,156,246,.08)); border: 1px solid rgba(255,255,255,.06); border-top: 3px solid var(--lc, var(--accent)); border-radius: var(--r); padding: 22px 18px; text-align: left; transition: transform var(--t), box-shadow var(--t); } .lp-level-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.3); } .lp-level-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .lp-level-badge { padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 700; } .lp-level-range { font-size: .75rem; color: var(--muted); } .lp-level-desc { font-size: .82rem; color: var(--muted2); line-height: 1.55; margin-bottom: 16px; } .lp-level-bar-track { height: 4px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; } .lp-level-bar-fill { height: 100%; width: 100%; border-radius: 2px; } /* ── CTA section ───────────────────────────────────────────── */ .lp-cta { position: relative; text-align: center; padding: 120px 24px; background: var(--surface); border-top: 1px solid var(--border); overflow: hidden; } .lp-cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 300px; background: radial-gradient(ellipse, rgba(91,156,246,.15) 0%, transparent 70%); pointer-events: none; } .lp-cta-h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; position: relative; } .lp-cta-sub { color: var(--muted2); font-size: 1rem; margin-bottom: 36px; position: relative; } /* ── Footer ────────────────────────────────────────────────── */ .lp-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 28px 40px; border-top: 1px solid var(--border); background: var(--bg); } .lp-footer-logo { display: flex; align-items: center; } .lp-footer-logo-img { height: 32px; width: auto; } .lp-footer-copy { font-size: .8rem; color: var(--muted); } .lp-footer-links { display: flex; gap: 20px; } .lp-footer-link { font-size: .82rem; color: var(--muted); transition: color var(--t); text-decoration: none; } .lp-footer-link:hover { color: var(--text); } /* ── Landing page responsive ───────────────────────────────── */ @media (max-width: 1024px) { .lp-features { grid-template-columns: repeat(2, 1fr); } .lp-levels { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 768px) { .lp-nav-links { display: none; } .lp-hero { padding: 100px 20px 60px; } .lp-stats { gap: 0; } .lp-stat { padding: 8px 20px; } .lp-stat-div { display: none; } .lp-steps { flex-direction: column; align-items: center; gap: 32px; } .lp-step-line { display: none; } .lp-levels { grid-template-columns: repeat(2, 1fr); } .lp-footer { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; } } @media (max-width: 540px) { .lp-features { grid-template-columns: 1fr; } .lp-levels { grid-template-columns: 1fr; } .lp-nav-cta .lp-btn-ghost { display: none; } .lp-section { padding: 64px 20px; } .lp-cta { padding: 80px 20px; } } :root, [data-theme="dark"] { --bg: #07090f; --surface: #0d1420; --surface2: #121c2e; --surface3: #192436; --border: #1a2840; --border2: #243554; --accent: #5b9cf6; --accent2: #a78bfa; --glow: rgba(91,156,246,.2); --text: #e2e8f0; --muted: #64748b; --muted2: #94a3b8; --success: #2dd4a5; --warning: #fbbf24; --danger: #f87171; --minimal: #2dd4a5; --mild: #86efac; --moderate: #fbbf24; --severe: #fb923c; --critical: #f87171; --r: 16px; --r-sm: 10px; --r-xs: 6px; --sh: 0 8px 40px rgba(0,0,0,.55); --sh-sm:0 4px 20px rgba(0,0,0,.35); --t: 200ms cubic-bezier(.4,0,.2,1); --nav-bg-rgb: 7,9,15; } [data-theme="light"] { /* Palette: FFDDDA · FFF4CB · CBEDD4 · E3D7FF · D0EAFF · FFF9F2 */ --bg: #FFF9F2; /* warm cream — page background */ --surface: #FFFFFF; /* pure white — cards / modals */ --surface2: #FFDDDA; /* rose petal — hover / secondary surface */ --surface3: #FFF4CB; /* soft yellow — tertiary / highlight */ --border: #F0C8C4; /* rose border (FFDDDA darkened) */ --border2: #C4E8D0; /* mint border (CBEDD4 darkened) */ --accent: #6A9FD8; /* D0EAFF deepened — interactive blue */ --accent2: #9B8BD4; /* E3D7FF deepened — interactive lavender */ --glow: rgba(208,234,255,.45); --text: #1a1228; /* near-black with warm-purple tint */ --muted: #7a6e80; --muted2: #5c5266; --success: #2ea868; /* CBEDD4 deepened */ --warning: #c98a0a; /* FFF4CB deepened */ --danger: #d94f4f; /* FFDDDA deepened */ --minimal: #2ea868; --mild: #52c48a; --moderate: #c98a0a; --severe: #e07030; --critical: #d94f4f; --sh: 0 8px 40px rgba(255,221,218,.55); --sh-sm: 0 4px 20px rgba(227,215,255,.35); --nav-bg-rgb: 255,249,242; } *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; } body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; min-height: 100vh; } a { text-decoration: none; } button { font-family: inherit; cursor: pointer; } /* ── Scrollbar ─────────────────────────────────────────────── */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: var(--bg); } ::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; } /* ── Loaders ───────────────────────────────────────────────── */ .full-loader { display: flex; align-items: center; justify-content: center; min-height: 100vh; } .page-loader { display: flex; align-items: center; justify-content: center; min-height: 40vh; } .spinner { width: 32px; height: 32px; border: 3px solid var(--border2); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* ───────────────────────────────────────────────────────────── AUTH SCREEN ───────────────────────────────────────────────────────────── */ .auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); position: relative; overflow: hidden; } /* Breathing rings animation */ .breath-rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; } .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(91,156,246,.18); animation: breathe 5s ease-in-out infinite; } .ring-1 { width: 180px; height: 180px; animation-delay: 0s; border-color: rgba(91,156,246,.35); } .ring-2 { width: 320px; height: 320px; animation-delay: .7s; border-color: rgba(91,156,246,.2); } .ring-3 { width: 480px; height: 480px; animation-delay: 1.4s; border-color: rgba(167,139,250,.12); } .ring-4 { width: 660px; height: 660px; animation-delay: 2.1s; border-color: rgba(167,139,250,.07); } @keyframes breathe { 0%,100% { transform: scale(.95); opacity: .5; } 50% { transform: scale(1.05); opacity: .2; } } .auth-card { position: relative; z-index: 1; background: rgba(13,20,32,.9); backdrop-filter: blur(24px); border: 1px solid var(--border2); border-radius: var(--r); padding: 44px 40px; width: 100%; max-width: 420px; box-shadow: var(--sh), 0 0 80px rgba(91,156,246,.1); } .auth-brand { text-align: center; margin-bottom: 28px; } .auth-logo { height: 100px; width: auto; display: block; margin: 0 auto 8px; } .auth-title { font-size: 1.9rem; font-weight: 800; letter-spacing: .08em; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .auth-subtitle { color: var(--muted); font-size: .85rem; margin-top: 4px; } .auth-tabs { display: flex; background: var(--bg); border-radius: var(--r-sm); padding: 4px; margin-bottom: 24px; } .auth-tab { flex: 1; padding: 9px; border: none; border-radius: 7px; background: transparent; color: var(--muted); font-size: .9rem; font-weight: 500; transition: var(--t); } .auth-tab--active { background: var(--surface2); color: var(--text); box-shadow: var(--sh-sm); } .auth-form { display: flex; flex-direction: column; gap: 14px; } /* ───────────────────────────────────────────────────────────── FORM ELEMENTS ───────────────────────────────────────────────────────────── */ .field { display: flex; flex-direction: column; gap: 6px; } .field label { font-size: .78rem; font-weight: 600; color: var(--muted2); text-transform: uppercase; letter-spacing: .05em; } .field label small { text-transform: none; font-weight: 400; color: var(--muted); } input[type=text], input[type=email], input[type=password], input[type=number], select, textarea { width: 100%; padding: 11px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); font-size: .92rem; font-family: inherit; outline: none; transition: border-color var(--t), box-shadow var(--t); } input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,156,246,.14); } input::placeholder { color: var(--muted); } select option { background: var(--surface2); } textarea { resize: vertical; } .form-error { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.35); border-radius: var(--r-sm); color: var(--danger); padding: 10px 14px; font-size: .88rem; margin-bottom: 4px; } /* ── Buttons ───────────────────────────────────────────────── */ .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 24px; border: none; border-radius: var(--r-sm); background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: .95rem; font-weight: 600; transition: opacity var(--t), transform var(--t), box-shadow var(--t); box-shadow: 0 4px 18px rgba(91,156,246,.35); letter-spacing: .01em; } .btn-primary:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(91,156,246,.5); } .btn-primary:active { opacity: 1; transform: translateY(0); } .btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; } .btn--full { width: 100%; } .btn--lg { padding: 13px 32px; font-size: 1rem; } .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 22px; border: 1px solid var(--accent); border-radius: var(--r-sm); color: var(--accent); font-size: .9rem; font-weight: 500; background: transparent; transition: var(--t); } .btn-secondary:hover { background: rgba(91,156,246,.1); border-color: var(--accent2); } .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border: 1px solid var(--border2); border-radius: var(--r-sm); color: var(--muted2); font-size: .88rem; font-weight: 500; background: transparent; transition: var(--t); } .btn-ghost:hover { color: var(--text); border-color: var(--accent); background: rgba(91,156,246,.05); } .btn-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; } /* ───────────────────────────────────────────────────────────── APP SHELL ───────────────────────────────────────────────────────────── */ .app-shell { display: flex; min-height: 100vh; } /* Mobile bar */ .mobile-bar { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 56px; background: var(--surface); border-bottom: 1px solid var(--border); align-items: center; gap: 14px; padding: 0 16px; } .hamburger { background: none; border: none; color: var(--text); font-size: 1.3rem; } .mobile-brand { font-weight: 700; font-size: 1rem; color: var(--accent); letter-spacing: .05em; } /* Sidebar */ .sidebar { width: 248px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; } .sidebar-top { flex: 1; padding: 20px 12px 0; overflow-y: auto; } .sidebar-bottom { padding: 12px; border-top: 1px solid var(--border); } .sidebar-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); } .brand-logo { height: 52px; width: auto; display: block; } .mobile-brand-logo { height: 32px; width: auto; display: block; } .mobile-theme-toggle { background: none; border: none; font-size: 1.2rem; cursor: pointer; padding: 4px 8px; border-radius: var(--r-xs); transition: var(--t); line-height: 1; } .mobile-theme-toggle:hover { background: var(--surface2); } .brand-name { font-size: .95rem; font-weight: 800; color: var(--accent); letter-spacing: .06em; } .brand-sub { font-size: .68rem; color: var(--muted); margin-top: 1px; } .sidebar-nav { display: flex; flex-direction: column; gap: 2px; } .nav-section-label { font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 12px 4px; margin-top: 4px; } .nav-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--muted); font-size: .88rem; font-weight: 500; transition: var(--t); position: relative; border-left: 2px solid transparent; } .nav-link:hover { background: var(--surface2); color: var(--text); border-left-color: var(--border2); } .nav-link--active { background: rgba(91,156,246,.1); color: var(--accent); border-left-color: var(--accent); font-weight: 600; } .nav-link--active .nav-icon { filter: drop-shadow(0 0 5px var(--accent)); } .nav-icon { font-size: 1rem; flex-shrink: 0; } .user-chip { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .user-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; color: #fff; flex-shrink: 0; border: 2px solid rgba(91,156,246,.3); } .user-meta { min-width: 0; } .user-name { font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .user-email { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .logout-btn { width: 100%; padding: 8px 12px; background: none; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--muted); font-size: .82rem; transition: var(--t); display: flex; align-items: center; justify-content: center; gap: 6px; } .logout-btn:hover { color: var(--danger); border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.05); } /* Theme toggle */ .theme-toggle { width: 100%; padding: 8px 12px; margin-bottom: 6px; background: none; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--muted); font-size: .82rem; transition: var(--t); display: flex; align-items: center; justify-content: center; gap: 8px; } .theme-toggle:hover { color: var(--text); border-color: var(--accent); background: rgba(91,156,246,.06); } .theme-toggle-icon { font-size: 1rem; line-height: 1; } /* Main area */ .main-area { flex: 1; overflow-y: auto; min-width: 0; } /* ───────────────────────────────────────────────────────────── PAGE LAYOUT ───────────────────────────────────────────────────────────── */ .page { max-width: 1080px; margin: 0 auto; padding: 36px 32px; animation: pageIn .25s ease; } .page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; } .page-title { font-size: 1.7rem; font-weight: 800; color: var(--text); letter-spacing: -.01em; } .page-sub { color: var(--muted); font-size: .88rem; margin-top: 4px; } @keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } } /* ───────────────────────────────────────────────────────────── CARDS ───────────────────────────────────────────────────────────── */ .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; margin-bottom: 20px; box-shadow: var(--sh-sm); transition: border-color var(--t), box-shadow var(--t); } .card:hover { border-color: var(--border2); } .card-title { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; } .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } /* ───────────────────────────────────────────────────────────── STAT CARDS ───────────────────────────────────────────────────────────── */ .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; } .stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 18px; transition: border-color var(--t), transform var(--t), box-shadow var(--t); position: relative; overflow: hidden; } .stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent2)); opacity: 0; transition: opacity var(--t); } .stat-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.4); } .stat-card:hover::before { opacity: 1; } .stat-icon { font-size: 1.5rem; margin-bottom: 12px; } .stat-value { font-size: 1.7rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 6px; letter-spacing: -.02em; } .stat-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; } .trend--up { color: var(--danger) !important; } .trend--down { color: var(--success) !important; } .trend--flat { color: var(--muted) !important; } /* ───────────────────────────────────────────────────────────── DASHBOARD — RECENT LIST ───────────────────────────────────────────────────────────── */ .recent-list { display: flex; flex-direction: column; gap: 6px; } .recent-item { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; background: var(--surface2); border-radius: var(--r-sm); cursor: pointer; border: 1px solid transparent; transition: var(--t); } .recent-item:hover { border-color: var(--border2); background: var(--surface3); transform: translateX(3px); } .recent-left { display: flex; align-items: center; gap: 12px; } .level-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 6px currentColor; } .recent-label { font-size: .88rem; font-weight: 600; } .recent-date { font-size: .75rem; color: var(--muted); margin-top: 2px; } .recent-score { font-size: .9rem; font-weight: 700; } .empty-text { color: var(--muted); font-size: .9rem; text-align: center; padding: 24px 0; } /* ───────────────────────────────────────────────────────────── EMPTY STATE ───────────────────────────────────────────────────────────── */ .empty-dashboard { text-align: center; padding: 80px 24px; background: var(--surface); border: 1px dashed var(--border2); border-radius: var(--r); } .empty-icon { font-size: 3.5rem; margin-bottom: 16px; display: block; } .empty-dashboard h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; } .empty-dashboard p { color: var(--muted); margin-bottom: 24px; max-width: 360px; margin-left: auto; margin-right: auto; line-height: 1.6; } /* ───────────────────────────────────────────────────────────── ASSESSMENT FORM ───────────────────────────────────────────────────────────── */ .section-card { margin-bottom: 20px; } .section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); } .section-head h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 3px; } .section-icon-lg { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; } .section-desc { font-size: .85rem; color: var(--muted); } .badge-optional { margin-left: auto; padding: 3px 10px; border-radius: 20px; font-size: .73rem; font-weight: 600; background: rgba(100,116,139,.12); color: var(--muted); border: 1px solid rgba(100,116,139,.25); flex-shrink: 0; } /* Sliders */ .slider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-bottom: 18px; } .slider-field { display: flex; flex-direction: column; gap: 6px; } .slider-header { display: flex; justify-content: space-between; align-items: center; } .slider-header label { font-size: .78rem; font-weight: 600; color: var(--muted2); text-transform: uppercase; letter-spacing: .05em; } .slider-value { font-size: .85rem; font-weight: 700; color: var(--accent); min-width: 48px; text-align: right; } .slider-range { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin-top: 1px; } input[type=range] { -webkit-appearance: none; width: 100%; height: 4px; background: var(--border2); border-radius: 2px; outline: none; padding: 0; border: none; box-shadow: none; } input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 3px rgba(91,156,246,.2); transition: box-shadow var(--t); } input[type=range]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 5px rgba(91,156,246,.3); } input[type=range]:focus { box-shadow: none; } .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; } /* ───────────────────────────────────────────────────────────── RESULT PAGE ───────────────────────────────────────────────────────────── */ .result-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; } .result-main { text-align: center; } .result-side { } .result-actions { display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; } /* Gauge */ .gauge-wrap { position: relative; width: 200px; height: 200px; margin: 12px auto 8px; } .gauge-svg { width: 100%; height: 100%; } .gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } .gauge-pct { font-size: 2.2rem; font-weight: 800; line-height: 1; } .gauge-lbl { font-size: .85rem; font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; } /* Breakdown */ .breakdown-list { display: flex; flex-direction: column; gap: 8px; } .breakdown-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--surface2); border-radius: var(--r-sm); } .breakdown-item--main { border: 1px solid var(--border2); background: var(--surface3); } .breakdown-key { font-size: .82rem; color: var(--muted); } .breakdown-right { display: flex; align-items: center; gap: 8px; } .breakdown-label { font-size: .88rem; font-weight: 600; } .breakdown-score { font-size: .82rem; color: var(--muted2); } .modality-badge { padding: 3px 10px; border-radius: 20px; font-size: .76rem; font-weight: 600; background: var(--surface3); color: var(--muted2); border: 1px solid var(--border); text-transform: capitalize; } .muted { color: var(--muted); } /* Advice box */ .advice-box { padding: 16px 18px; border-radius: var(--r-sm); border-left: 4px solid var(--accent); background: rgba(91,156,246,.07); font-size: .9rem; line-height: 1.7; color: var(--muted2); position: relative; } /* Detail grid */ .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; } .detail-item { background: var(--surface2); padding: 10px 14px; border-radius: var(--r-sm); } .detail-key { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; } .detail-val { font-size: .92rem; font-weight: 600; } .detail-note { margin-bottom: 12px; } .detail-note-label { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; font-weight: 600; } .detail-note p { background: var(--surface2); padding: 10px 14px; border-radius: var(--r-sm); font-size: .9rem; line-height: 1.6; } /* ───────────────────────────────────────────────────────────── DASHBOARD LAYOUT (main + activity side panel) ───────────────────────────────────────────────────────────── */ .dash-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; } .dash-main { min-width: 0; } .dash-side { position: sticky; top: 24px; } /* ───────────────────────────────────────────────────────────── ACTIVITY PANEL ───────────────────────────────────────────────────────────── */ .activity-panel { padding: 20px; } .activity-list { display: flex; flex-direction: column; gap: 6px; } .activity-item { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border); transition: border-color var(--t); } .activity-item:hover { border-color: var(--ac, var(--accent)); } .activity-header { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; background: none; border: none; cursor: pointer; text-align: left; color: var(--text); } .activity-header:hover { background: var(--surface2); } .activity-icon { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1rem; } .activity-meta { flex: 1; min-width: 0; } .activity-title { display: block; font-size: .88rem; font-weight: 600; color: var(--text); } .activity-dur { display: block; font-size: .73rem; color: var(--muted); margin-top: 1px; } .activity-chevron { font-size: 1.1rem; color: var(--muted); transition: transform var(--t); line-height: 1; } .activity-chevron--open { transform: rotate(90deg); color: var(--ac, var(--accent)); } .activity-steps { list-style: none; padding: 0 12px 12px 12px; background: var(--surface2); counter-reset: step; display: flex; flex-direction: column; gap: 6px; } .activity-steps li { counter-increment: step; font-size: .8rem; color: var(--muted2); line-height: 1.5; padding-left: 22px; position: relative; } .activity-steps li::before { content: counter(step); position: absolute; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--ac, var(--accent)); color: #fff; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; top: 1px; } /* ───────────────────────────────────────────────────────────── HISTORY PAGE ───────────────────────────────────────────────────────────── */ .history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; margin-bottom: 20px; } .history-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; cursor: pointer; transition: border-color var(--t), transform var(--t), box-shadow var(--t); border-top: 3px solid var(--level-color, var(--border)); position: relative; overflow: hidden; } .history-card::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); background: radial-gradient(ellipse at top left, rgba(91,156,246,.05) 0%, transparent 60%); pointer-events: none; opacity: 0; transition: opacity var(--t); } .history-card:hover { border-color: var(--level-color, var(--border2)); transform: translateY(-3px); box-shadow: 0 10px 36px rgba(0,0,0,.45); } .history-card:hover::after { opacity: 1; } .hc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; } .hc-badge { padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 700; } .hc-score { font-size: 1.3rem; font-weight: 800; color: var(--text); } .hc-bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; } .hc-bar-wrap { display: flex; flex-direction: column; gap: 3px; } .hc-bar-label{ font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } .hc-bar-track{ height: 5px; background: var(--surface3); border-radius: 3px; overflow: hidden; } .hc-bar-fill { height: 100%; border-radius: 3px; transition: width 1s cubic-bezier(.4,0,.2,1); } .hc-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; } .hc-modality { font-size: .73rem; color: var(--muted2); background: var(--surface2); padding: 2px 8px; border-radius: 10px; text-transform: capitalize; } .hc-date { font-size: .74rem; color: var(--muted); } /* Pagination */ .pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; } .page-btn { padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--r-xs); background: var(--surface); color: var(--muted); font-size: .85rem; transition: var(--t); } .page-btn:hover, .page-btn--active { border-color: var(--accent); color: var(--accent); background: rgba(91,156,246,.08); } .page-btn:disabled { opacity: .4; cursor: not-allowed; } /* ───────────────────────────────────────────────────────────── MODAL ───────────────────────────────────────────────────────────── */ .modal-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.75); backdrop-filter: blur(10px); animation: fadeIn .15s ease; } .modal-box { position: relative; background: var(--surface); border: 1px solid var(--border2); border-radius: var(--r); padding: 28px 30px; width: 90%; max-width: 520px; max-height: 85vh; overflow-y: auto; box-shadow: var(--sh), 0 0 60px rgba(0,0,0,.5); animation: slideUp .2s ease; } .modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted); font-size: 1.1rem; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background var(--t), color var(--t); } .modal-close:hover { color: var(--text); background: var(--surface2); } .modal-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; letter-spacing: -.01em; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } } /* ───────────────────────────────────────────────────────────── MOBILE ───────────────────────────────────────────────────────────── */ .sidebar-backdrop { display: none; } @media (max-width: 860px) { .main-area { padding-top: 56px; } .mobile-bar { display: flex; } .sidebar { position: fixed; left: -240px; top: 0; height: 100vh; z-index: 60; transition: left var(--t); } .sidebar--open { left: 0; box-shadow: var(--sh); } .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.5); } .stat-grid { grid-template-columns: repeat(2, 1fr); } .two-col { grid-template-columns: 1fr; } .result-layout { grid-template-columns: 1fr; } .page { padding: 20px 16px; } .history-grid { grid-template-columns: 1fr; } .detail-grid { grid-template-columns: 1fr; } /* Dashboard: stack side panel below main on tablet */ .dash-layout { grid-template-columns: 1fr; } .dash-side { position: static; } } @media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr 1fr; } .slider-grid { grid-template-columns: 1fr; } .cat-grid { grid-template-columns: 1fr; } } /* ═══════════════════════════════════════════════ PROFILE PAGE ═══════════════════════════════════════════════ */ .profile-page { max-width: 720px; margin: 0 auto; padding: 32px 24px 60px; } .profile-header-bar { margin-bottom: 32px; } .profile-header-bar .page-title { font-size: 1.8rem; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 4px; } .profile-header-bar .page-sub { color: var(--muted); font-size: .9rem; } .profile-form { display: flex; flex-direction: column; gap: 28px; } .profile-section { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; } .section-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 18px; letter-spacing: .03em; } /* Avatar upload */ .avatar-upload-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; } .avatar-large { position: relative; width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, #1a2840, #1e3060); border: 2px solid var(--border); cursor: pointer; overflow: hidden; flex-shrink: 0; transition: border-color .2s; } .avatar-large:hover { border-color: var(--accent); } .avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; } .avatar-initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; color: var(--accent); letter-spacing: .05em; } .avatar-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; opacity: 0; transition: opacity .2s; } .avatar-large:hover .avatar-overlay { opacity: 1; } .avatar-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } .avatar-hint { font-size: .75rem; color: var(--muted); } .btn-ghost-danger { background: transparent; border: 1px solid #ef4444; color: #ef4444; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-size: .82rem; transition: background .2s; } .btn-ghost-danger:hover { background: rgba(239,68,68,.1); } /* Profile grid (2-col) */ .profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 540px) { .profile-grid { grid-template-columns: 1fr; } } .form-select { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: .88rem; outline: none; transition: border-color .2s; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; } .form-select:focus { border-color: var(--accent); } .form-select option { background: #0d1420; } .form-textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: .88rem; font-family: inherit; resize: vertical; outline: none; transition: border-color .2s; box-sizing: border-box; } .form-textarea:focus { border-color: var(--accent); } .char-count { text-align: right; font-size: .75rem; color: var(--muted); margin-top: 4px; } .form-hint { color: var(--muted); font-size: .8rem; font-weight: 400; } /* Privacy card */ .profile-privacy {} .privacy-card { display: flex; align-items: flex-start; gap: 16px; background: rgba(91,156,246,.06); border: 1px solid rgba(91,156,246,.18); border-radius: 12px; padding: 16px; } .privacy-icon { font-size: 1.5rem; flex-shrink: 0; padding-top: 2px; } .privacy-text { flex: 1; } .privacy-text strong { display: block; margin-bottom: 4px; color: var(--text); font-size: .92rem; } .privacy-text p { font-size: .82rem; color: var(--muted); line-height: 1.5; margin: 0; } .anon-notice { margin-top: 12px; padding: 10px 14px; background: rgba(167,139,250,.08); border: 1px solid rgba(167,139,250,.25); border-radius: 10px; font-size: .83rem; color: var(--accent2); } /* Toggle switch */ .toggle-switch { display: inline-flex; cursor: pointer; flex-shrink: 0; margin-top: 4px; } .toggle-switch input { display: none; } .toggle-track { width: 44px; height: 24px; background: var(--border); border-radius: 999px; position: relative; transition: background .25s; } .toggle-switch input:checked + .toggle-track { background: var(--accent); } .toggle-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .25s; box-shadow: 0 1px 4px rgba(0,0,0,.4); } .toggle-switch input:checked + .toggle-track .toggle-thumb { transform: translateX(20px); } /* Actions row */ .profile-actions { display: flex; justify-content: flex-end; gap: 12px; } /* Sidebar avatar img support */ .user-chip-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; width: 100%; border-radius: 10px; padding: 8px; transition: background .15s; } .user-chip-link:hover { background: rgba(255,255,255,.05); } .user-avatar--img { object-fit: cover; border-radius: 50%; width: 34px; height: 34px; flex-shrink: 0; } /* form-error / form-success (if not already defined) */ .form-error { color: #ef4444; font-size: .85rem; padding: 8px 12px; background: rgba(239,68,68,.08); border-radius: 8px; } .form-success { color: #22c55e; font-size: .85rem; padding: 8px 12px; background: rgba(34,197,94,.08); border-radius: 8px; } /* Sidebar brand link */ .sidebar-brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; border-radius: 10px; padding: 6px 8px; margin: -6px -8px; transition: background .15s; } .sidebar-brand-link:hover { background: rgba(255,255,255,.05); } .mobile-brand-link { text-decoration: none; color: inherit; font-weight: 600; font-size: 1rem; } /* ═══════════════════════════════════════════════ BREATHE HUB PAGE ═══════════════════════════════════════════════ */ .breathe-hub { max-width: 960px; margin: 0 auto; padding: 32px 24px 60px; } .breathe-hub-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; } .breathe-back-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 500; padding: 8px 20px; border: 1px solid var(--border); border-radius: 999px; transition: color .15s, border-color .15s, background .15s; } .breathe-back-btn:hover { color: var(--text); border-color: var(--accent); background: rgba(91,156,246,.07); } .breathe-hub-header { text-align: center; margin-bottom: 48px; } .breathe-hub-rings { position: relative; width: 100px; height: 100px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; } .hub-ring { position: absolute; border-radius: 50%; border: 2px solid var(--accent); opacity: .2; animation: hubPulse 3s ease-in-out infinite; } .hub-ring-1 { width: 60px; height: 60px; animation-delay: 0s; } .hub-ring-2 { width: 80px; height: 80px; animation-delay: .6s; opacity: .15; } .hub-ring-3 { width: 100px; height: 100px; animation-delay: 1.2s; opacity: .08; } @keyframes hubPulse { 0%, 100% { transform: scale(1); opacity: .2; } 50% { transform: scale(1.12); opacity: .35; } } .hub-glyph { width: 70px; height: 70px; object-fit: contain; position: relative; z-index: 1; } .breathe-hub-title { font-size: 2.8rem; font-weight: 900; letter-spacing: .2em; background: linear-gradient(135deg, var(--accent), var(--accent2), #f472b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; } .breathe-hub-sub { color: var(--muted2); font-size: 1rem; max-width: 400px; margin: 0 auto; line-height: 1.6; } /* ── Deep Breath Widget ────────────────────────────────────────────────── */ .dbw { display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 0 auto 52px; max-width: 340px; } .dbw-orb-wrap { position: relative; width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; } .dbw-orb { width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 38% 38%, rgba(255,74,38,.22), rgba(123,74,190,.18)); display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; box-shadow: 0 0 32px rgba(123,74,190,.25), 0 0 64px rgba(255,74,38,.12); } .dbw-logo { width: 72px; height: 72px; object-fit: contain; pointer-events: none; user-select: none; } .dbw-ring { position: absolute; border-radius: 50%; border: 1.5px solid; z-index: 1; transition: transform 4s cubic-bezier(.4,0,.2,1), opacity .5s; } .dbw-ring-1 { width: 140px; height: 140px; border-color: rgba(232,92,136,.35); opacity: .4; } .dbw-ring-2 { width: 175px; height: 175px; border-color: rgba(123,74,190,.22); opacity: .25; } /* ring expansion matches orb phase */ .dbw-ring-1.dbw-ring--0 { transform: scale(1.18); opacity: .55; transition: transform 4s cubic-bezier(.4,0,.2,1); } .dbw-ring-2.dbw-ring--0 { transform: scale(1.12); opacity: .35; transition: transform 4s cubic-bezier(.4,0,.2,1); } .dbw-ring-1.dbw-ring--1 { transform: scale(1.18); opacity: .55; } .dbw-ring-2.dbw-ring--1 { transform: scale(1.12); opacity: .35; } .dbw-ring-1.dbw-ring--2 { transform: scale(1); opacity: .4; transition: transform 6s cubic-bezier(.4,0,.2,1); } .dbw-ring-2.dbw-ring--2 { transform: scale(1); opacity: .25; transition: transform 6s cubic-bezier(.4,0,.2,1); } .dbw-ring-1.dbw-ring--3 { transform: scale(1); opacity: .4; } .dbw-ring-2.dbw-ring--3 { transform: scale(1); opacity: .25; } .dbw-arc { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; transition: stroke-dashoffset 1s linear; } .dbw-arc circle:nth-child(2) { transition: stroke-dashoffset 1s linear; } .dbw-info { text-align: center; } .dbw-phase { font-size: 1.2rem; font-weight: 700; letter-spacing: .12em; background: linear-gradient(135deg, #FF4A26, #7B4ABE); -webkit-background-clip: text; -webkit-text-fill-color: transparent; min-height: 1.5em; } .dbw-tick { font-size: 2.8rem; font-weight: 900; line-height: 1.1; color: var(--text); min-height: 1.1em; } .dbw-counter { font-size: .85rem; color: var(--muted2); margin-top: 4px; } .dbw-controls { display: flex; gap: 10px; } .dbw-btn { padding: 10px 28px; border-radius: 999px; border: none; font-size: .92rem; font-weight: 600; cursor: pointer; transition: opacity .15s, transform .1s; } .dbw-btn:active { transform: scale(.96); } .dbw-btn--start { background: linear-gradient(135deg, #FF4A26, #7B4ABE); color: #fff; } .dbw-btn--stop { background: rgba(255,74,38,.15); color: #FF4A26; border: 1px solid rgba(255,74,38,.4); } .dbw-btn--reset { background: var(--surface2); color: var(--muted); border: 1px solid var(--border); } /* ── Box Breathing Page ────────────────────────────────────────────────── */ .box-breathing-page { max-width: 540px; margin: 0 auto; padding: 40px 24px 60px; display: flex; flex-direction: column; align-items: center; } .box-breathing-header { text-align: center; margin-bottom: 36px; width: 100%; } .box-breathing-title { font-size: 2rem; font-weight: 900; letter-spacing: .18em; background: linear-gradient(135deg, #FF4A26, #7B4ABE); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 12px 0 8px; } .box-breathing-sub { color: var(--muted2); font-size: .92rem; line-height: 1.6; } .box-breathing-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin-top: 8px; } .bbt-card { display: flex; align-items: flex-start; gap: 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; } .bbt-icon { font-size: 1.5rem; flex-shrink: 0; } .bbt-label { font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: 2px; } .bbt-desc { font-size: .78rem; color: var(--muted2); line-height: 1.4; } @media (max-width: 420px) { .box-breathing-tips { grid-template-columns: 1fr; } } /* Cards grid */ .breathe-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; } .breathe-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px 20px; text-align: left; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; } .breathe-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--cc, var(--accent)); opacity: 0; transition: opacity .2s; } .breathe-card::after { content: ''; position: absolute; inset: 0; border-radius: 18px; background: radial-gradient(ellipse at top left, color-mix(in srgb, var(--cc, var(--accent)) 15%, transparent) 0%, transparent 65%); pointer-events: none; opacity: 0; transition: opacity .2s; } .breathe-card:hover { transform: translateY(-4px); border-color: var(--cc, var(--accent)); box-shadow: 0 10px 36px rgba(0,0,0,.4), 0 0 0 1px var(--cc, var(--accent))33; } .breathe-card:hover::before { opacity: 1; } .breathe-card:hover::after { opacity: 1; } .bc-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; position: relative; z-index: 1; } .bc-body { flex: 1; position: relative; z-index: 1; } .bc-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 2px; } .bc-tagline { font-size: .8rem; color: var(--muted); margin-bottom: 8px; font-style: italic; } .bc-desc { font-size: .84rem; color: var(--muted2); line-height: 1.6; margin: 0; } .bc-local-note { display: block; margin-top: 8px; font-size: .76rem; color: var(--success); background: rgba(45,212,165,.08); padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(45,212,165,.2); } .bc-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid; width: fit-content; position: relative; z-index: 1; letter-spacing: .02em; } /* Guided modal */ .guided-modal { max-width: 460px; padding: 40px 36px; } .guided-header { text-align: center; margin-bottom: 24px; } .guided-icon { font-size: 2.8rem; display: block; margin-bottom: 10px; } .guided-header h2 { font-size: 1.4rem; font-weight: 800; margin: 0; letter-spacing: -.01em; } .guided-progress { display: flex; gap: 7px; justify-content: center; margin-bottom: 32px; } .progress-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border2); transition: background .2s, transform .2s, width .2s; } .progress-dot--active { transform: scale(1.4); width: 20px; border-radius: 4px; } .progress-dot--done { opacity: .8; } .guided-step { text-align: center; min-height: 90px; margin-bottom: 32px; padding: 0 8px; } .guided-step-label { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; } .guided-step-desc { color: var(--muted2); font-size: .93rem; line-height: 1.65; } .guided-actions { display: flex; gap: 10px; justify-content: center; } .btn-outline { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border: 1px solid var(--border2); border-radius: var(--r-sm); background: transparent; color: var(--muted2); font-size: .9rem; font-weight: 500; cursor: pointer; transition: var(--t); } .btn-outline:hover { color: var(--text); border-color: var(--border2); background: var(--surface2); } /* ═══════════════════════════════════════════════ GRATITUDE JOURNAL PAGE ═══════════════════════════════════════════════ */ .gratitude-page { max-width: 840px; margin: 0 auto; padding: 32px 24px 60px; } .tab-toggle { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 4px; flex-shrink: 0; } .tab-btn { padding: 8px 18px; border-radius: 9px; border: none; background: transparent; color: var(--muted); font-size: .87rem; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: background .2s, color .2s; white-space: nowrap; } .tab-btn--active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 600; box-shadow: 0 2px 10px rgba(91,156,246,.35); } .tab-count { background: rgba(255,255,255,.18); border-radius: 999px; padding: 1px 7px; font-size: .73rem; } .gratitude-write { display: flex; flex-direction: column; gap: 18px; } .gratitude-card {} .gratitude-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; } .gratitude-item-row { display: flex; align-items: center; gap: 10px; } .gratitude-num { font-size: 1.1rem; font-weight: 700; color: var(--accent); width: 20px; flex-shrink: 0; } .gratitude-input { flex: 1; } .gratitude-mood-row { margin-top: 4px; } .mood-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .mood-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; min-width: 60px; } .mood-btn:hover { transform: translateY(-2px); border-color: var(--border2); } .mood-btn--active { border-color: var(--accent); background: rgba(91,156,246,.12); transform: translateY(-2px); } .mood-emoji { font-size: 1.4rem; } .mood-label { font-size: .7rem; color: var(--muted); } .mood-btn--active .mood-label { color: var(--accent); font-weight: 600; } .gratitude-actions { display: flex; gap: 10px; margin-top: 8px; } .gratitude-tips { background: rgba(251,191,36,.05); border-color: rgba(251,191,36,.2); } .tips-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: .85rem; line-height: 1.9; } /* Entry grid */ .gratitude-history {} .gentry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; } .gentry-card { padding: 18px; transition: border-color var(--t), transform var(--t), box-shadow var(--t); border-left: 3px solid var(--accent2) !important; } .gentry-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.35); } .gentry-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; } .gentry-date { font-size: .77rem; color: var(--muted); flex: 1; } .gentry-mood { font-size: .78rem; background: rgba(91,156,246,.1); color: var(--accent); padding: 3px 9px; border-radius: 999px; } .gentry-delete { background: none; border: none; cursor: pointer; font-size: .9rem; opacity: .5; transition: opacity .15s; } .gentry-delete:hover { opacity: 1; } .gentry-items { margin: 0 0 10px; padding-left: 18px; color: var(--text); font-size: .85rem; line-height: 1.8; } .gentry-content { font-size: .85rem; color: var(--muted); line-height: 1.6; margin: 0 0 6px; white-space: pre-wrap; } .gentry-content--clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .gentry-expand { background: none; border: none; color: var(--accent); font-size: .78rem; cursor: pointer; padding: 0; } .pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; } .page-info { font-size: .85rem; color: var(--muted); } .empty-state { text-align: center; padding: 60px 20px; } .empty-state .empty-icon { font-size: 2.8rem; margin-bottom: 12px; } .empty-state h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 6px; } .empty-state p { color: var(--muted); font-size: .9rem; margin-bottom: 20px; } /* ═══════════════════════════════════════════════ TO-DO PAGE ═══════════════════════════════════════════════ */ .todo-page { max-width: 680px; margin: 0 auto; padding: 32px 24px 60px; } .local-storage-notice { display: flex; align-items: flex-start; gap: 12px; background: rgba(45,212,165,.06); border: 1px solid rgba(45,212,165,.25); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; } .lsn-icon { font-size: 1.4rem; flex-shrink: 0; } .local-storage-notice strong { display: block; color: #2dd4a5; font-size: .88rem; margin-bottom: 2px; } .local-storage-notice p { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.5; } .todo-add-card { padding: 18px; } .todo-add-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .todo-input { flex: 1; min-width: 200px; } .todo-add-btn { flex-shrink: 0; } .todo-priority-select { display: flex; gap: 6px; flex-wrap: wrap; } .priority-pill { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: .78rem; cursor: pointer; transition: all .15s; white-space: nowrap; } .todo-meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0; } .todo-stats { display: flex; gap: 8px; align-items: center; flex: 1; } .todo-stat { font-size: .82rem; color: var(--muted); } .todo-stat-sep { color: var(--border); } .todo-filters { display: flex; gap: 4px; } .filter-pill { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: .78rem; cursor: pointer; transition: all .15s; } .filter-pill--active { background: var(--accent); border-color: var(--accent); color: #fff; } .todo-list { display: flex; flex-direction: column; gap: 8px; } .todo-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; transition: border-color var(--t), opacity var(--t), transform var(--t); } .todo-item:hover { border-color: var(--border2); transform: translateX(3px); } .todo-item--done { opacity: .5; } .todo-item--done:hover { transform: none; } .todo-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border2); background: transparent; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s, transform .15s; } .todo-check:hover { border-color: var(--success); transform: scale(1.1); } .check-tick { color: #fff; font-size: .75rem; font-weight: 700; } .todo-text-col { flex: 1; min-width: 0; } .todo-text { display: block; font-size: .88rem; color: var(--text); word-break: break-word; } .todo-item--done .todo-text { text-decoration: line-through; } .todo-created { font-size: .72rem; color: var(--muted); } .todo-pri-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .todo-delete { background: none; border: none; cursor: pointer; font-size: .85rem; opacity: .4; flex-shrink: 0; transition: opacity .15s; } .todo-delete:hover { opacity: 1; } @media (max-width: 600px) { .breathe-cards { grid-template-columns: 1fr; } .gentry-grid { grid-template-columns: 1fr; } .tab-toggle { flex-wrap: wrap; } }