""" core/styles.py All CSS for the Second Brain Gradio app. """ CSS = """ @import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap'); /* ── Reset & base ──────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; } body, .gradio-container { font-family: 'Sora', system-ui, sans-serif !important; background: #060a12 !important; color: #cbd5e1 !important; } .gradio-container { max-width: 1200px !important; margin: 0 auto !important; } .main { padding: 16px !important; } /* ── Auth card ─────────────────────────────────────────── */ #auth-card { max-width: 420px; margin: 48px auto 0; background: #0d1117; border: 1px solid #1e293b; border-radius: 20px; padding: 40px 36px 32px; box-shadow: 0 0 80px rgba(99,102,241,.1); } #brand-logo { font-size: 28px; font-weight: 700; text-align: center; background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 4px; } #brand-sub { text-align: center; color: #334155; font-size: 13px; margin-bottom: 28px; } /* ── Top header ────────────────────────────────────────── */ #top-header { background: #0d1117; border: 1px solid #1e293b; border-radius: 14px; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; } #top-header-brand { font-size: 18px; font-weight: 700; background: linear-gradient(135deg, #a78bfa, #60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } #top-header-user { font-size: 12px; color: #334155; } /* ── Stat cards ────────────────────────────────────────── */ .stat-card { background: #0d1117; border: 1px solid #1e293b; border-radius: 14px; padding: 18px 12px; text-align: center; min-height: 90px; } .stat-num { font-size: 36px; font-weight: 700; line-height: 1; } .stat-label { font-size: 10px; color: #334155; margin-top: 6px; text-transform: uppercase; letter-spacing: .8px; } /* ── Panels ────────────────────────────────────────────── */ .panel { background: #0d1117; border: 1px solid #1e293b; border-radius: 14px; padding: 22px 20px; margin-top: 14px; } .sec-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: #334155; font-weight: 600; margin-bottom: 16px; } /* ── Buttons ───────────────────────────────────────────── */ .btn-primary button { background: linear-gradient(135deg,#6366f1,#8b5cf6) !important; color: #fff !important; font-weight: 600 !important; border: none !important; border-radius: 10px !important; font-family: 'Sora', sans-serif !important; transition: opacity .15s !important; } .btn-primary button:hover { opacity: .85 !important; } .btn-accent button { background: linear-gradient(135deg,#0ea5e9,#6366f1) !important; color: #fff !important; font-weight: 600 !important; border: none !important; border-radius: 10px !important; font-family: 'Sora', sans-serif !important; } .btn-secondary button { background: #161b27 !important; color: #64748b !important; border: 1px solid #1e293b !important; border-radius: 10px !important; font-family: 'Sora', sans-serif !important; } .btn-success button { background: #052e16 !important; color: #4ade80 !important; border: 1px solid #14532d !important; border-radius: 10px !important; font-family: 'Sora', sans-serif !important; } .btn-danger button { background: #1c0606 !important; color: #f87171 !important; border: 1px solid #450a0a !important; border-radius: 10px !important; font-family: 'Sora', sans-serif !important; } /* ── Inputs ────────────────────────────────────────────── */ input, textarea, select { background: #060a12 !important; border: 1px solid #1e293b !important; border-radius: 10px !important; color: #e2e8f0 !important; font-family: 'Sora', sans-serif !important; } input:focus, textarea:focus { border-color: #6366f1 !important; box-shadow: 0 0 0 2px rgba(99,102,241,.18) !important; } label { color: #475569 !important; font-size: 12px !important; font-weight: 500 !important; } /* ── Tabs ──────────────────────────────────────────────── */ .tab-nav button { color: #334155 !important; font-family: 'Sora', sans-serif !important; font-weight: 500 !important; background: transparent !important; border: none !important; border-bottom: 2px solid transparent !important; padding: 10px 18px !important; font-size: 13px !important; } .tab-nav button.selected { color: #a78bfa !important; border-bottom: 2px solid #a78bfa !important; } /* ── Dataframe ─────────────────────────────────────────── */ .dataframe thead th { background: #0d1117 !important; color: #334155 !important; font-size: 10px !important; text-transform: uppercase !important; letter-spacing: .6px !important; padding: 10px 12px !important; font-family: 'Sora', sans-serif !important; border: none !important; } .dataframe tbody td { background: #060a12 !important; color: #94a3b8 !important; font-family: 'JetBrains Mono', monospace !important; font-size: 12px !important; padding: 9px 12px !important; border-bottom: 1px solid #0d1117 !important; } .dataframe tbody tr:hover td { background: #0d1117 !important; } /* ── Chatbot ───────────────────────────────────────────── */ .chatbot { background: #060a12 !important; border: 1px solid #1e293b !important; border-radius: 14px !important; } /* ── Schedule cards ────────────────────────────────────── */ .sched-card { background: #0d1117; border: 1px solid #1e293b; border-left: 3px solid #6366f1; border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; } .sched-time { font-size: 11px; font-family: 'JetBrains Mono',monospace; color: #6366f1; font-weight: 600; } .sched-title { font-size: 14px; font-weight: 600; color: #f1f5f9; margin: 2px 0 4px; } .sched-meta { font-size: 11px; color: #334155; } .sched-why { font-size: 11px; color: #475569; font-style: italic; margin-top: 3px; } /* ── Life area chips ───────────────────────────────────── */ .chip { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin: 3px; } /* ── Status messages ───────────────────────────────────── */ .ok { color: #4ade80; font-size: 13px; } .err { color: #f87171; font-size: 13px; } .inf { color: #60a5fa; font-size: 13px; } /* ── Misc ──────────────────────────────────────────────── */ hr { border-color: #1e293b !important; margin: 16px 0 !important; } .hidden { display: none !important; } """