237 lines
5.1 KiB
CSS
237 lines
5.1 KiB
CSS
/* Left sidebar navigation and top bar */
|
|
|
|
/* ── App layout shell ── */
|
|
#app-nav {
|
|
width: var(--nav-width);
|
|
background: var(--nav-bg);
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-shrink: 0;
|
|
height: 100vh;
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
z-index: 50;
|
|
}
|
|
|
|
#app-body {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
margin-left: var(--nav-width);
|
|
height: 100vh;
|
|
}
|
|
|
|
/* ── Logo area ── */
|
|
#nav-logo {
|
|
padding: 14px 20px 12px;
|
|
border-bottom: 1px solid rgba(255,255,255,0.08);
|
|
}
|
|
#nav-logo svg { display: block; }
|
|
.nav-logo-sub {
|
|
font-size: var(--font-size-xs);
|
|
color: var(--nav-text);
|
|
font-weight: 500;
|
|
letter-spacing: 0.02em;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
/* ── Project switcher ── */
|
|
#nav-project-switcher {
|
|
background: rgba(255,255,255,0.06);
|
|
border: 1px solid rgba(255,255,255,0.12);
|
|
border-radius: 6px;
|
|
padding: 8px 10px;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
width: 100%;
|
|
}
|
|
#nav-project-switcher:hover { background: rgba(255,255,255,0.10); }
|
|
|
|
.project-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 4px;
|
|
background: var(--cobalt);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: var(--font-size-xs);
|
|
font-weight: 800;
|
|
color: #fff;
|
|
flex-shrink: 0;
|
|
}
|
|
.project-name {
|
|
font-size: var(--font-size-sm);
|
|
font-weight: 600;
|
|
color: #fff;
|
|
flex: 1;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.project-arrow {
|
|
font-size: 10px;
|
|
color: var(--nav-text);
|
|
flex-shrink: 0;
|
|
}
|
|
.project-name.no-project { color: var(--warning-amber); }
|
|
|
|
/* ── Nav sections ── */
|
|
.nav-section-label {
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: rgba(189,201,217,0.5);
|
|
padding: 16px 20px 6px;
|
|
}
|
|
|
|
#nav-links { list-style: none; flex: 1; overflow-y: auto; }
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 9px 20px;
|
|
color: var(--nav-text);
|
|
cursor: pointer;
|
|
border-left: 3px solid transparent;
|
|
transition: all 0.15s;
|
|
font-size: var(--font-size-base);
|
|
user-select: none;
|
|
text-decoration: none;
|
|
}
|
|
.nav-item:hover {
|
|
background: var(--nav-hover);
|
|
color: var(--nav-text-active);
|
|
}
|
|
.nav-item.active {
|
|
background: var(--nav-active-bg);
|
|
color: var(--nav-text-active);
|
|
border-left-color: var(--nav-active-border);
|
|
}
|
|
.nav-icon {
|
|
font-size: 16px;
|
|
width: 20px;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.nav-label { flex: 1; }
|
|
.nav-badge {
|
|
margin-left: auto;
|
|
background: var(--poppy);
|
|
color: #fff;
|
|
border-radius: 10px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
padding: 1px 6px;
|
|
min-width: 18px;
|
|
text-align: center;
|
|
}
|
|
.nav-badge.amber { background: var(--warning-amber); }
|
|
.nav-badge[data-count="0"] { display: none; }
|
|
|
|
/* ── Nav bottom (customer context) ── */
|
|
#nav-bottom {
|
|
margin-top: auto;
|
|
padding: 12px 0;
|
|
border-top: 1px solid rgba(255,255,255,0.08);
|
|
}
|
|
.nav-customer { padding: 10px 20px; }
|
|
.nav-customer-label {
|
|
font-size: 10px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: rgba(189,201,217,0.5);
|
|
margin-bottom: 4px;
|
|
}
|
|
.nav-customer-name { font-size: var(--font-size-sm); font-weight: 600; color: var(--nav-text-active); }
|
|
.nav-customer-sub { font-size: var(--font-size-xs); color: var(--nav-text); }
|
|
|
|
/* ── Top bar ── */
|
|
#top-bar {
|
|
height: var(--topbar-h);
|
|
background: var(--card-bg);
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 var(--space-lg);
|
|
gap: var(--space-md);
|
|
flex-shrink: 0;
|
|
box-shadow: var(--shadow-sm);
|
|
z-index: 10;
|
|
}
|
|
|
|
.breadcrumb {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: var(--font-size-base);
|
|
color: var(--text-muted);
|
|
}
|
|
.breadcrumb .sep { color: var(--border); }
|
|
.breadcrumb .current { color: var(--text); font-weight: 600; }
|
|
|
|
#topbar-right {
|
|
margin-left: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.conn-pill {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 10px;
|
|
border-radius: var(--radius-pill);
|
|
font-size: var(--font-size-sm);
|
|
font-weight: 500;
|
|
border: 1px solid var(--border);
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
background: var(--card-bg);
|
|
}
|
|
.conn-pill:hover { background: var(--ecru); }
|
|
.conn-dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
.conn-pill.connected .conn-dot { background: var(--success); }
|
|
.conn-pill.disconnected .conn-dot { background: var(--error); }
|
|
.conn-pill.connecting .conn-dot { background: var(--warning-amber); }
|
|
|
|
/* ── Router outlet ── */
|
|
#router-outlet {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: var(--space-lg);
|
|
}
|
|
|
|
/* ── View transitions ── */
|
|
.view-enter {
|
|
animation: fadeIn 0.18s ease;
|
|
}
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(4px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* ── Mobile nav toggle ── */
|
|
@media (max-width: 768px) {
|
|
#app-nav {
|
|
transform: translateX(-100%);
|
|
transition: transform 0.2s;
|
|
}
|
|
#app-nav.open { transform: translateX(0); }
|
|
#app-body { margin-left: 0; }
|
|
}
|