/home/techb158/cosmic-risk.abdallabala.com/src/app
NameSizeModeActions
accept-invite/-0755rm
api/-0744rm
dashboard/-0755rm
integrations/-0755rm
login/-0755rm
signup/-0755rm
globals.css106380644editdlrm
layout.jsx2950644editdlrm
page.jsx30650644editdlrm
Edit: /home/techb158/cosmic-risk.abdallabala.com/src/app/globals.css (10638B)
:root { --bg: #f7faf9; --ink: #12201c; --muted: #61716b; --line: #dce7e2; --panel: #ffffff; --accent: #0f7a5f; --accent-strong: #075f49; --warn: #a15c00; --danger: #b42318; --green: #0f7a5f; --blocked: #b42318; --blocked-soft: #fef0ef; } * { box-sizing: border-box; } body { margin: 0; background: var(--bg); color: var(--ink); font-family: Arial, Helvetica, sans-serif; } a { color: inherit; } .shell { min-height: 100vh; } .topbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 18px 28px; border-bottom: 1px solid var(--line); background: var(--panel); } .brand { font-weight: 700; color: var(--accent-strong); } .nav { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 14px; } .nav button { background: none; border: none; color: var(--muted); font-size: 14px; cursor: pointer; padding: 0; } .hero { min-height: 92vh; padding: 64px 28px; display: grid; align-items: center; background: linear-gradient(rgba(247, 250, 249, 0.86), rgba(247, 250, 249, 0.96)), url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1800&q=80"); background-size: cover; background-position: center; } .hero-inner, .content { width: min(1180px, 100%); margin: 0 auto; } .hero h1 { margin: 0 0 18px; max-width: 780px; font-size: clamp(40px, 7vw, 86px); line-height: 0.98; letter-spacing: 0; } .hero p { max-width: 680px; color: var(--muted); font-size: 20px; line-height: 1.5; } .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; } .button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: white; text-decoration: none; font-weight: 700; } .button.secondary { background: white; color: var(--accent-strong); } .content { padding: 28px; } .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; } .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; } .panel h2, .panel h3 { margin-top: 0; } .metric { font-size: 34px; font-weight: 800; color: var(--accent-strong); } .muted { color: var(--muted); } .table { width: 100%; border-collapse: collapse; } .table th, .table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; } .badge { display: inline-flex; border-radius: 999px; padding: 4px 9px; background: #e7f5ef; color: var(--accent-strong); font-size: 12px; font-weight: 700; } @media (max-width: 720px) { .topbar { align-items: flex-start; flex-direction: column; } } /* ── App Shell ── */ .app-shell { display: flex; min-height: 100vh; } .sidebar-toggle { display: none; position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font-size: 18px; cursor: pointer; } .sidebar { width: 220px; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; flex-shrink: 0; } .sidebar-brand { padding: 20px 18px 12px; font-weight: 800; font-size: 18px; color: var(--accent-strong); letter-spacing: -0.03em; } .sidebar-user { padding: 0 18px 16px; border-bottom: 1px solid var(--line); } .sidebar-user-name { font-weight: 600; font-size: 13px; } .sidebar-user-email { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; } .sidebar-nav { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 2px; } .sidebar-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); transition: all 0.15s; } .sidebar-link:hover { background: #eef6f3; color: var(--ink); } .sidebar-link.active { background: #e0f0ea; color: var(--accent-strong); font-weight: 700; } .sidebar-icon { width: 20px; text-align: center; font-size: 16px; } .sidebar-footer { padding: 8px; border-top: 1px solid var(--line); } .sidebar-logout { width: 100%; padding: 10px 12px; border: none; border-radius: 6px; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; text-align: left; } .sidebar-logout:hover { background: #fef2f0; color: var(--danger); } .sidebar-overlay { display: none; } .app-main { flex: 1; min-width: 0; padding: 24px 28px; } .shell-loading { display: flex; align-items: center; justify-content: center; min-height: 100vh; } .spinner { width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } @media (max-width: 768px) { .sidebar-toggle { display: block; } .sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 99; transform: translateX(-100%); transition: transform 0.2s; } .sidebar.open { transform: translateX(0); } .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 98; } .app-main { padding: 16px; } } /* ── Tabs ── */ .tabs { display: flex; gap: 0; border-bottom: 2px solid var(--line); margin-bottom: 24px; } .tab { padding: 10px 20px; border: none; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; } .tab:hover { color: var(--ink); } .tab.active { color: var(--accent-strong); border-bottom-color: var(--accent-strong); } /* ── Dashboard header ── */ .dash-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; } .dash-header h1 { margin: 0; font-size: 24px; } .dash-header .muted { margin: 2px 0 0; font-size: 13px; } .dash-actions { display: flex; gap: 8px; } /* ── Metric panels ── */ .metric-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; } .metric-card h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); } .metric-value { font-size: 32px; font-weight: 800; line-height: 1; } .metric-value.good { color: var(--green, #0f7a5f); } .metric-value.warn { color: var(--warn); } .metric-value.bad { color: var(--danger); } .metric-sub { font-size: 12px; color: var(--muted); margin-top: 4px; } /* ── Interactive table ── */ .table-wrap { overflow-x: auto; } .table th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; } .table td { font-size: 13px; } .table tbody tr:hover { background: #f0f7f4; } .table tbody tr { cursor: pointer; transition: background 0.1s; } .table .sortable { cursor: pointer; user-select: none; } .table .sortable:hover { color: var(--ink); } /* ── Bar ── */ .bar-wrap { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; } .bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s; } /* ── Status badges ── */ .badge.open { background: #fef3e7; color: var(--warn); } .badge.in-mitigation { background: #e7f0ff; color: #0055cc; } .badge.accepted { background: #e7f5ef; color: var(--accent-strong); } .badge.closed { background: #e5e9e7; color: var(--muted); } .badge.pass { background: #e7f5ef; color: var(--accent-strong); } .badge.warning { background: #fef3e7; color: var(--warn); } .badge.blocked { background: #fef0ef; color: var(--danger); } .badge.not-started { background: #f0f2f1; color: var(--muted); } .badge.in-progress { background: #e7f0ff; color: #0055cc; } .badge.done { background: #e7f5ef; color: var(--accent-strong); } .badge.rejected { background: #fef0ef; color: var(--danger); } .badge.approved { background: #e7f5ef; color: var(--accent-strong); } .badge.pending { background: #fef3e7; color: var(--warn); } /* ── Inputs ── */ .input, .select { width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; background: var(--panel); color: var(--ink); } .input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(15,122,95,0.15); } .select { cursor: pointer; } .search-wrap { position: relative; margin-bottom: 16px; } .search-wrap .input { padding-left: 32px; } .search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; } /* ── Modal ── */ .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px; } .modal { background: var(--panel); border-radius: 12px; padding: 24px; width: 100%; max-width: 520px; max-height: 80vh; overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.12); } .modal h2 { margin: 0 0 16px; font-size: 18px; } .modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; } /* ── Toast ── */ .toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; } .toast { padding: 12px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,0.1); animation: slideUp 0.2s ease; } .toast.success { background: #e7f5ef; color: var(--accent-strong); border: 1px solid #b8d9cc; } .toast.error { background: #fef0ef; color: var(--danger); border: 1px solid #f5c6c0; } @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } /* ── Empty state ── */ .empty-state { text-align: center; padding: 48px 24px; color: var(--muted); } .empty-state .empty-icon { font-size: 40px; margin-bottom: 12px; } .empty-state p { margin: 0; } /* ── AI Governance Triangle ── */ .triangle-svg { display: block; width: 100%; max-width: 520px; margin: 0 auto; } .triangle-node { stroke: #fff; stroke-width: 4; } .triangle-node.pass { fill: var(--green); } .triangle-node.warning { fill: #d89d18; } .triangle-node.blocked { fill: var(--blocked); } .node-score { fill: #fff; font-weight: 900; font-size: 18px; } .node-label { fill: var(--ink); font-weight: 800; font-size: 14px; } .triangle-title { font-size: 28px; font-weight: 900; fill: var(--ink); } .triangle-subtitle { font-size: 12px; fill: var(--muted); }