Files
web-page/src/components/Navbar.css

340 lines
9.2 KiB
CSS

/* ── 사이드바 본체 ───────────────────────────────────────────────────── */
.sidebar {
position: fixed;
left: 0;
top: 0;
bottom: 0;
width: var(--sidebar-w);
z-index: 200;
display: flex;
flex-direction: column;
background: rgba(7, 12, 28, 0.92);
backdrop-filter: blur(20px) saturate(1.5);
-webkit-backdrop-filter: blur(20px) saturate(1.5);
border-right: 1px solid rgba(0, 212, 255, 0.08);
box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5), 1px 0 0 rgba(0, 212, 255, 0.05);
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
overflow: hidden;
}
/* ── 브랜드 섹션 ─────────────────────────────────────────────────────── */
.sidebar__brand {
display: flex;
align-items: center;
gap: 12px;
padding: 20px 16px;
flex-shrink: 0;
}
.sidebar__logo {
width: 38px;
height: 38px;
border-radius: 12px;
object-fit: cover;
flex-shrink: 0;
box-shadow:
0 0 0 1px rgba(0, 212, 255, 0.2),
0 0 12px rgba(0, 212, 255, 0.15),
0 4px 12px rgba(0, 0, 0, 0.4);
}
.sidebar__brand-text {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.sidebar__brand-name {
margin: 0;
font-family: 'Space Grotesk', 'Manrope', sans-serif;
font-weight: 700;
font-size: 15px;
color: var(--text-bright);
letter-spacing: 0.01em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sidebar__brand-sub {
margin: 0;
font-size: 9px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--neon-cyan);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* ── 구분선 ──────────────────────────────────────────────────────────── */
.sidebar__divider {
height: 1px;
background: var(--line, rgba(255, 255, 255, 0.1));
margin: 8px 0;
flex-shrink: 0;
}
/* ── 네비게이션 ──────────────────────────────────────────────────────── */
.sidebar__nav {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
padding: 4px 0;
/* 스크롤바 숨김 */
scrollbar-width: none;
}
.sidebar__nav::-webkit-scrollbar {
display: none;
}
.sidebar__section-label {
margin: 0;
padding: 8px 24px 4px;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.2em;
color: var(--text-muted);
}
/* ── 네비게이션 아이템 ───────────────────────────────────────────────── */
.sidebar__item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 14px;
border-radius: var(--radius-sm, 12px);
margin: 2px 10px;
text-decoration: none;
color: var(--text-dim);
font-size: 14px;
font-weight: 500;
font-family: var(--font-body, 'Manrope', sans-serif);
border: 1px solid transparent;
position: relative;
transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
overflow: hidden;
}
.sidebar__item:hover {
background: rgba(255, 255, 255, 0.05);
color: var(--text, #f0ebe4);
border-color: rgba(255, 255, 255, 0.08);
}
/* 활성 아이템 */
.sidebar__item.is-active {
background: linear-gradient(90deg, rgba(0, 212, 255, 0.12) 0%, rgba(0, 212, 255, 0.04) 100%);
border-color: rgba(0, 212, 255, 0.2);
color: var(--text-bright);
}
/* 활성 아이템 좌측 네온 바 */
.sidebar__item.is-active::before {
content: '';
position: absolute;
left: 0;
top: 20%;
bottom: 20%;
width: 2px;
background: var(--neon-cyan);
border-radius: 0 2px 2px 0;
box-shadow: 0 0 8px var(--neon-cyan), 0 0 16px rgba(0, 212, 255, 0.4);
}
/* ── 아이콘 ──────────────────────────────────────────────────────────── */
.sidebar__item-icon {
display: flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
flex-shrink: 0;
color: inherit;
transition: color 0.2s ease;
}
.sidebar__item.is-active .sidebar__item-icon {
color: var(--neon-cyan);
}
/* ── 라벨 ────────────────────────────────────────────────────────────── */
.sidebar__item-label {
flex: 1;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* ── 도트 인디케이터 ─────────────────────────────────────────────────── */
.sidebar__item-dot {
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--neon-cyan);
box-shadow: 0 0 6px var(--neon-cyan);
flex-shrink: 0;
opacity: 0;
transition: opacity 0.2s ease;
}
.sidebar__item.is-active .sidebar__item-dot {
opacity: 1;
}
/* ── 사이드바 푸터 ───────────────────────────────────────────────────── */
.sidebar__footer {
flex-shrink: 0;
margin-top: auto;
}
.sidebar__footer-content {
padding: 12px 16px 16px;
display: flex;
align-items: center;
justify-content: space-between;
}
.sidebar__status {
display: flex;
align-items: center;
gap: 7px;
}
.sidebar__status-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: #34d399;
box-shadow: 0 0 6px rgba(52, 211, 153, 0.8), 0 0 12px rgba(52, 211, 153, 0.4);
flex-shrink: 0;
animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(52, 211, 153, 0.8), 0 0 12px rgba(52, 211, 153, 0.4); }
50% { opacity: 0.7; box-shadow: 0 0 3px rgba(52, 211, 153, 0.5), 0 0 6px rgba(52, 211, 153, 0.2); }
}
.sidebar__status-text {
font-size: 11px;
color: var(--text-muted);
font-weight: 500;
letter-spacing: 0.02em;
}
.sidebar__version {
margin: 0;
font-size: 10px;
color: var(--text-muted);
font-family: 'JetBrains Mono', 'Fira Code', monospace;
letter-spacing: 0.05em;
opacity: 0.6;
}
/* ── 모바일 토글 버튼 ────────────────────────────────────────────────── */
.sidebar-toggle {
display: none;
position: fixed;
top: 10px;
left: 10px;
z-index: 201;
width: 40px;
height: 40px;
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.12);
background: rgba(7, 12, 28, 0.88);
backdrop-filter: blur(12px) saturate(1.4);
-webkit-backdrop-filter: blur(12px) saturate(1.4);
cursor: pointer;
padding: 0;
align-items: center;
justify-content: center;
transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.sidebar-toggle:hover {
background: rgba(0, 212, 255, 0.1);
border-color: rgba(0, 212, 255, 0.25);
box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4), 0 0 8px rgba(0, 212, 255, 0.15);
}
.sidebar-toggle__icon {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 5px;
width: 18px;
height: 18px;
}
.sidebar-toggle__icon span {
display: block;
width: 16px;
height: 1.5px;
background: var(--text-bright, #ffffff);
border-radius: 2px;
transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
opacity 0.28s ease,
width 0.28s ease;
transform-origin: center;
}
.sidebar-toggle__icon.is-open span:nth-child(1) {
transform: translateY(6.5px) rotate(45deg);
}
.sidebar-toggle__icon.is-open span:nth-child(2) {
opacity: 0;
width: 0;
}
.sidebar-toggle__icon.is-open span:nth-child(3) {
transform: translateY(-6.5px) rotate(-45deg);
}
/* ── 오버레이 ────────────────────────────────────────────────────────── */
.sidebar__overlay {
position: fixed;
inset: 0;
z-index: 199;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}
.sidebar__overlay.is-visible {
opacity: 1;
pointer-events: auto;
}
/* ── 모바일 반응형 ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
.sidebar {
display: none;
}
}