/* ═══════════════════════════════════════════════════════════════════════════ LandveX Finance — Core Styles (Mobile-First) ═══════════════════════════════════════════════════════════════════════════ */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #F8F7F5; --card: #FFFFFF; --border: #EBEBEB; --text: #111111; --text-2: #666666; --text-3: #999999; --accent: #1a1a1a; --amber: #C8763A; --green: #16A34A; --red: #DC2626; --blue: #2563EB; --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04); --r: 12px; --font: 'IBM Plex Sans', -apple-system, Arial, sans-serif; --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); } html { font-family: var(--font); font-size: 14px; background: var(--bg); color: var(--text); -webkit-tap-highlight-color: transparent; } body { min-height: 100vh; padding-bottom: calc(80px + var(--safe-bottom)); } /* Loading */ #loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); font-size: 1rem; color: var(--text-2); z-index: 9999; } #loading::after { content: ''; width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; margin-left: 12px; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* ── Layout ── */ #app { max-width: 100%; margin: 0 auto; } /* ── Topbar ── */ .topbar { position: sticky; top: 0; z-index: 100; background: var(--card); border-bottom: 1px solid var(--border); } .topbar-main { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 56px; } .topbar-tabs { display: flex; gap: 0; padding: 0 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .topbar-tabs::-webkit-scrollbar { display: none; } .brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; } .brand-logo { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; } .brand-name { font-size: .95rem; font-weight: 700; } /* ── Tabs ── */ .tab-btn { background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--text-2); padding: 10px 16px; font-size: .82rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all .15s; font-family: var(--font); } .tab-btn:hover, .tab-btn.active { color: var(--text); border-bottom-color: var(--accent); } .tab-btn.active { font-weight: 600; } /* ── Cards ── */ .card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); margin: 12px 16px; overflow: hidden; } .card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); } .card-title { font-size: 1rem; font-weight: 600; } .card-body { padding: 16px; } /* ── Tables (mobile optimized) ── */ .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } table { width: 100%; border-collapse: collapse; font-size: .85rem; } th { text-align: left; padding: 10px 12px; color: var(--text-2); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; border-bottom: 1px solid var(--border); white-space: nowrap; } td { padding: 12px; border-bottom: 1px solid var(--border); } tr:last-child td { border-bottom: none; } tr:active { background: var(--navy-05); } .num { text-align: right; font-variant-numeric: tabular-nums; font-family: 'IBM Plex Mono', monospace; } .pos { color: var(--green); } .neg { color: var(--red); } /* ── Buttons ── */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 8px; border: none; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s; font-family: var(--font); } .btn-primary { background: var(--accent); color: #fff; } .btn-primary:active { transform: scale(.97); } .btn-secondary { background: var(--navy-05); color: var(--text); } .btn-ghost { background: transparent; color: var(--text-2); } .btn-sm { padding: 6px 12px; font-size: .78rem; } /* ── Forms ── */ input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: .9rem; font-family: var(--font); background: var(--card); color: var(--text); outline: none; } input:focus, select:focus { border-color: var(--accent); } label { display: block; font-size: .78rem; font-weight: 500; color: var(--text-2); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .02em; } .form-group { margin-bottom: 16px; } /* ── Status ── */ .badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 20px; font-size: .72rem; font-weight: 600; } .badge-posted { background: rgba(22,163,74,.1); color: var(--green); } .badge-draft { background: rgba(200,118,58,.1); color: var(--amber); } /* ── Bottom nav (mobile) ── */ .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--border); display: flex; justify-content: space-around; padding: 8px 0 calc(8px + var(--safe-bottom)); z-index: 100; } .nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 12px; background: transparent; border: none; color: var(--text-2); font-size: .7rem; font-family: var(--font); cursor: pointer; } .nav-item.active { color: var(--accent); } .nav-icon { font-size: 1.3rem; } /* ── Skeleton loading ── */ .skeleton { background: linear-gradient(90deg, var(--border) 25%, #f0f0f0 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; } @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } /* ── Desktop (min 768px) ── */ @media (min-width: 768px) { #app { max-width: 1200px; margin: 0 auto; } .bottom-nav { display: none; } body { padding-bottom: 0; } }