Files
nexus/public/assets/css/app.css
2026-03-04 22:35:27 +01:00

366 lines
7.9 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap');
:root {
--bg: #f5f7fb;
--panel: #ffffff;
--panel-2: #eef2ff;
--text: #111827;
--muted: #5b6475;
--accent: #ff5a3d;
--accent-2: #00b3a4;
--line: #d7dceb;
--shadow: 0 18px 36px rgba(20, 32, 64, 0.15);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
font-family: "Space Grotesk", "Segoe UI", sans-serif;
background: radial-gradient(1200px 500px at 10% -10%, rgba(255, 90, 61, 0.15), transparent 60%),
radial-gradient(900px 500px at 90% 10%, rgba(0, 179, 164, 0.12), transparent 55%),
var(--bg);
color: var(--text);
min-height: 100vh;
display: flex;
flex-direction: column;
}
.bg-orb {
position: fixed;
width: 420px;
height: 420px;
border-radius: 50%;
filter: blur(90px);
opacity: 0.35;
z-index: 0;
pointer-events: none;
}
.orb-a { top: -140px; left: -100px; background: #ff5a3d; }
.orb-b { bottom: -180px; right: -120px; background: #00b3a4; }
.card {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 18px;
box-shadow: var(--shadow);
}
.main-content > .card {
border: none;
box-shadow: none;
background: transparent;
}
.site-header {
position: sticky;
top: 0;
z-index: 20;
margin: 18px 24px 8px;
padding: 10px 16px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
.logo-wrap { display: flex; align-items: center; }
.site-logo { height: 80px; width: auto; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.12)); }
.header-nav {
display: flex;
align-items: center;
gap: 12px;
}
.nav-link {
color: var(--text);
text-decoration: none;
padding: 8px 14px;
border-radius: 10px;
border: 1px solid transparent;
font-weight: 600;
transition: all 180ms ease;
}
.nav-link:hover {
border-color: var(--line);
background: var(--panel-2);
}
.dropdown { position: relative; display: inline-flex; }
.dropdown-toggle { background: transparent; }
.dropdown-menu {
position: absolute;
top: 110%;
right: 0;
min-width: 220px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 12px;
box-shadow: var(--shadow);
padding: 8px;
display: none;
z-index: 30;
}
.dropdown-menu-right { right: 0; left: auto; }
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-item {
display: block;
padding: 8px 10px;
border-radius: 10px;
color: var(--text);
text-decoration: none;
font-weight: 600;
}
.dropdown-item:hover { background: var(--panel-2); }
.dropdown-divider { height: 1px; background: var(--line); margin: 6px 4px; }
.dropdown-header { padding: 6px 10px; font-size: 0.85rem; color: var(--muted); }
.avatar-btn { background: transparent; border: none; padding: 0; cursor: pointer; }
.avatar {
width: 34px;
height: 34px;
border-radius: 50%;
background: var(--accent);
color: #ffffff;
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: 700;
}
.module-subnav {
margin: 0 24px 4px;
padding: 8px 12px;
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.layout-body {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
padding: 0 24px 24px;
transition: grid-template-columns 260ms ease;
}
.layout-body.sidebar-open {
grid-template-columns: 260px 1fr;
}
.sidebar {
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
position: sticky;
top: 120px;
height: fit-content;
transform: translateX(-12px);
opacity: 0;
pointer-events: none;
transition: transform 260ms ease, opacity 260ms ease;
}
.layout-body.sidebar-open .sidebar {
transform: translateX(0);
opacity: 1;
pointer-events: auto;
}
.sidebar-toggle {
align-self: flex-start;
background: var(--panel-2);
border: 1px solid var(--line);
border-radius: 10px;
padding: 6px 10px;
cursor: pointer;
font-weight: 700;
}
.sidebar-items .nav-link { display: block; }
.sidebar-fab {
position: fixed;
left: 24px;
bottom: 24px;
width: 52px;
height: 52px;
border-radius: 50%;
background: var(--panel);
border: 1px solid var(--line);
box-shadow: var(--shadow);
font-weight: 800;
z-index: 60;
}
.main-content {
min-height: 60vh;
background: var(--panel);
background-image: none;
border-radius: 18px;
box-shadow: var(--shadow);
padding: 16px;
position: relative;
z-index: 1;
}
.main-content > .card {
background: transparent;
border: none;
box-shadow: none;
padding: 0;
border-radius: 0;
}
.site-footer {
margin: 0 24px 18px;
padding: 10px 16px;
color: var(--muted);
display: flex;
justify-content: space-between;
font-size: 0.85rem;
margin-top: auto;
}
.debug-fab {
position: fixed;
right: 24px;
bottom: 24px;
width: 52px;
height: 52px;
border-radius: 50%;
background: var(--accent);
color: #ffffff;
display: inline-flex;
align-items: center;
justify-content: center;
text-decoration: none;
font-size: 22px;
box-shadow: 0 16px 32px rgba(255, 90, 61, 0.28);
z-index: 50;
border: none;
cursor: pointer;
}
.debug-modal {
position: fixed;
inset: 0;
display: none;
z-index: 80;
}
.debug-modal.is-open { display: block; }
.debug-modal__backdrop {
position: absolute;
inset: 0;
background: rgba(10, 12, 20, 0.35);
}
.debug-modal__panel {
position: relative;
max-width: 980px;
width: calc(100% - 40px);
margin: 60px auto;
padding: 16px;
}
.debug-modal__header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.debug-modal__close {
background: transparent;
border: none;
font-size: 20px;
cursor: pointer;
}
.debug-modal__body {
display: grid;
grid-template-columns: 220px 1fr;
gap: 16px;
}
.debug-modal__list ul {
list-style: none;
padding: 0;
margin: 8px 0 0;
display: grid;
gap: 6px;
}
.debug-modal__list a {
text-decoration: none;
color: var(--text);
padding: 6px 8px;
border-radius: 8px;
display: block;
}
.debug-modal__list a:hover { background: var(--panel-2); }
.debug-modal__content pre {
background: var(--panel-2);
padding: 10px;
border-radius: 8px;
max-height: 520px;
overflow: auto;
white-space: pre-wrap;
}
@media (max-width: 800px) {
.debug-modal__body { grid-template-columns: 1fr; }
}
.muted { color: var(--muted); }
.pill {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border-radius: 999px;
border: 1px solid var(--line);
color: var(--muted);
background: rgba(255,255,255,0.6);
font-size: 0.85rem;
}
.card input,
.card textarea,
.card select {
background: #ffffff;
border: 1px solid var(--line);
color: var(--text);
padding: 10px 12px;
border-radius: 10px;
font-family: inherit;
}
.cta-button {
background: linear-gradient(120deg, var(--accent), #ff9f45);
border: none;
color: #ffffff;
font-weight: 700;
padding: 10px 18px;
border-radius: 12px;
cursor: pointer;
box-shadow: 0 14px 30px rgba(255, 90, 61, 0.35);
}
/* Minimal utility support (tables + spacing) */
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.text-left { text-align: left; }
.text-sm { font-size: 0.9rem; }
.text-xs { font-size: 0.75rem; }
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
.font-medium { font-weight: 600; }
.font-mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.bg-gray-900 { background: var(--panel-2); }
.bg-gray-800 { background: var(--panel); }
.divide-y > * + * { border-top: 1px solid var(--line); }
.border-gray-700 { border-color: var(--line); }
@media (max-width: 900px) {
.site-header { margin: 12px; }
.layout-body { padding: 0 12px 12px; }
.module-subnav { margin: 0 12px 8px; }
.site-footer { margin: 0 12px 12px; }
.header-nav { flex-wrap: wrap; justify-content: flex-end; }
}