@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap'); :root { --bg-primary: #0a0a12; --bg-secondary: #0f0f1a; --bg-card: #13131f; --bg-card-hover: #1a1a2e; --border: rgba(255, 255, 255, 0.07); --border-hover: rgba(255, 255, 255, 0.15); --text-primary: #e8e8f0; --text-secondary: #a0a0b8; --text-muted: #6b6b82; --purple: #8b5cf6; --purple-dim: rgba(139, 92, 246, 0.12); --cyan: #06b6d4; --cyan-dim: rgba(6, 182, 212, 0.12); --green: #10b981; --green-dim: rgba(16, 185, 129, 0.12); --red: #ef4444; --red-dim: rgba(239, 68, 68, 0.12); --amber: #f59e0b; --amber-dim: rgba(245, 158, 11, 0.12); --gradient-brand: linear-gradient(135deg, #8b5cf6, #06b6d4); --gradient-brand-dim: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(6,182,212,0.15)); --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3); --transition: 0.2s ease; } *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; } /* ─── Layout ─── */ .app-layout { display: flex; min-height: 100vh; } /* ─── Sidebar ─── */ .sidebar { width: 260px; background: var(--bg-secondary); border-right: 1px solid var(--border); padding: 1.5rem 1rem; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; overflow-y: auto; } .sidebar-logo { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.5px; padding: 0 0.5rem; margin-bottom: 2rem; background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; } .sidebar-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.75rem; border-radius: var(--radius-sm); color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: all var(--transition); cursor: pointer; border: none; background: none; width: 100%; text-align: left; } .sidebar-link:hover { background: rgba(255, 255, 255, 0.04); color: var(--text-primary); } .sidebar-link.active { background: var(--purple-dim); color: var(--purple); } .sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; } .sidebar-footer { padding-top: 1rem; border-top: 1px solid var(--border); margin-top: auto; } .sidebar-user { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; } .sidebar-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; color: white; } .sidebar-user-info { overflow: hidden; } .sidebar-user-email { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; } /* ─── Main content ─── */ .main-content { flex: 1; margin-left: 260px; padding: 2rem 2.5rem; min-height: 100vh; } .page-header { margin-bottom: 2rem; } .page-header h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.5px; } .page-header p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; } /* ─── Cards ─── */ .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-card); transition: border-color var(--transition); } .card:hover { border-color: var(--border-hover); } .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; } .card-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.5rem; } .card-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.5px; } /* ─── API Key Card ─── */ .key-display { display: flex; align-items: center; gap: 0.75rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: var(--text-primary); margin: 0.75rem 0; } .key-display .key-text { flex: 1; -webkit-user-select: all; user-select: all; } .key-display .key-copy-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: 4px; transition: all var(--transition); } .key-display .key-copy-btn:hover { color: var(--purple); background: var(--purple-dim); } /* ─── Buttons ─── */ .btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all var(--transition); border: none; font-family: inherit; } .btn-primary { background: var(--gradient-brand); color: white; } .btn-primary:hover { opacity: 0.85; transform: translateY(-1px); } .btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); } .btn-outline:hover { border-color: var(--border-hover); color: var(--text-primary); background: rgba(255, 255, 255, 0.03); } .btn-danger { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.2); } .btn-danger:hover { background: rgba(239, 68, 68, 0.2); } .btn-upgrade { background: linear-gradient(135deg, #f59e0b, #f97316); color: #1a1a2e; font-weight: 700; } .btn-upgrade:hover { opacity: 0.9; transform: translateY(-1px); } /* ─── Progress bars ─── */ .progress-container { margin: 1rem 0; } .progress-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.4rem; } .progress-bar { height: 8px; background: var(--bg-secondary); border-radius: 100px; overflow: hidden; } .progress-fill { height: 100%; border-radius: 100px; background: var(--gradient-brand); transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); } .progress-fill.warning { background: var(--amber); } .progress-fill.danger { background: var(--red); } /* ─── Tier badge ─── */ .tier-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.65rem; border-radius: 100px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; } .tier-badge.free { background: var(--cyan-dim); color: var(--cyan); } .tier-badge.pro { background: var(--purple-dim); color: var(--purple); } .tier-badge.enterprise { background: var(--green-dim); color: var(--green); } /* ─── Code playground ─── */ .code-tabs { display: flex; gap: 2px; margin-bottom: 0; border-bottom: 1px solid var(--border); } .code-tab { padding: 0.5rem 1rem; background: transparent; border: none; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; transition: all var(--transition); font-family: inherit; } .code-tab.active { color: var(--purple); border-bottom-color: var(--purple); } .code-tab:hover { color: var(--text-primary); } .code-block { background: #0d0d17; border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 1.25rem; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; line-height: 1.7; color: var(--text-secondary); overflow-x: auto; white-space: pre; position: relative; } .code-block .code-copy { position: absolute; top: 0.75rem; right: 0.75rem; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); padding: 0.3rem 0.6rem; border-radius: 6px; font-size: 0.7rem; cursor: pointer; transition: all var(--transition); } .code-block .code-copy:hover { color: var(--text-primary); border-color: var(--border-hover); } /* ─── Auth forms ─── */ .auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg-primary); } .auth-card { width: 100%; max-width: 420px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-card); } .auth-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.25rem; background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .auth-card p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; } .form-group { margin-bottom: 1rem; } .form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.35rem; } .form-group input { width: 100%; padding: 0.65rem 0.85rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: inherit; font-size: 0.9rem; transition: border-color var(--transition); outline: none; } .form-group input:focus { border-color: var(--purple); } .form-group input::placeholder { color: var(--text-muted); } .auth-error { background: var(--red-dim); color: var(--red); padding: 0.65rem 0.85rem; border-radius: var(--radius-sm); font-size: 0.8rem; margin-bottom: 1rem; } .auth-switch { text-align: center; margin-top: 1.25rem; font-size: 0.85rem; color: var(--text-muted); } .auth-switch a { color: var(--purple); text-decoration: none; font-weight: 600; cursor: pointer; } .auth-switch a:hover { text-decoration: underline; } /* ─── Utility ─── */ .text-green { color: var(--green); } .text-amber { color: var(--amber); } .text-red { color: var(--red); } .text-purple { color: var(--purple); } .text-cyan { color: var(--cyan); } .text-muted { color: var(--text-muted); } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mb-1 { margin-bottom: 0.5rem; } .flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } /* ─── Animations ─── */ @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } .animate-in { animation: fadeIn 0.4s ease both; } .animate-in:nth-child(2) { animation-delay: 0.05s; } .animate-in:nth-child(3) { animation-delay: 0.1s; } .animate-in:nth-child(4) { animation-delay: 0.15s; }