/* ============================================
   nav.css — 공통 상단 네비게이션
   ============================================ */

/* ===== TOP NAV ===== */
.top-nav {
  position: sticky; top: 0; z-index: 50;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  height: 54px;
}
.nav-left  { display: flex; align-items: center; gap: 0; height: 100%; }
.nav-right { display: flex; align-items: center; gap: 8px; }

/* 브랜드 */
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  padding-right: 20px; border-right: 1px solid #e2e8f0; height: 100%;
  text-decoration: none;
}
.nav-brand-logo  { width: 30px; height: 30px; object-fit: contain; }
.nav-brand-texts { display: flex; flex-direction: column; }
.nav-brand-name  { font-size: 13px; font-weight: 800; color: #1e3a8a; letter-spacing: -.01em; line-height:1.2; }
.nav-brand-sub   { font-size: 10px; color: #64748b; font-weight: 500; }

/* 메뉴 탭 */
.nav-tabs { display: flex; align-items: center; height: 100%; gap: 2px; padding-left: 12px; }
.nav-tab {
  display: flex; align-items: center; gap: 6px; height: 100%;
  padding: 0 14px; font-size: 13px; font-weight: 500; color: #64748b;
  border-bottom: 2.5px solid transparent; text-decoration: none;
  transition: color .15s, border-color .15s; white-space: nowrap;
}
.nav-tab:hover { color: #1e293b; }
.nav-tab.active { color: #1d4ed8; border-bottom-color: #1d4ed8; font-weight: 600; }
.nav-tab i { font-size: 12.5px; }
.nav-tab .tab-badge {
  font-size: 9.5px; font-weight: 600;
  padding: 1px 5px; border-radius: 20px; margin-left: 2px;
}
.nav-tab.meta-tab.active  { color: #1d4ed8; border-bottom-color: #1d4ed8; }
.nav-tab.meta-tab  .tab-badge { background: #dbeafe; color: #1d4ed8; }
.nav-tab.naver-tab.active { color: #03c75a; border-bottom-color: #03c75a; }
.nav-tab.naver-tab .tab-badge { background: #dcfce7; color: #16a34a; }
.nav-tab.copy-tab.active { color: #8b5cf6; border-bottom-color: #8b5cf6; }
.nav-tab.copy-tab  .tab-badge { background: #ede9fe; color: #7c3aed; }
.nav-tab.copy-tab .copy-badge { background: #ede9fe; color: #7c3aed; }

/* 우측 사용자 영역 */
.nav-user-area { display: flex; align-items: center; gap: 8px; }
.nav-user-info {
  display: flex; align-items: center; gap: 6px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 5px 10px;
}
.nav-user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.nav-user-name  { font-size: 12.5px; font-weight: 600; color: #374151; }
.nav-user-role  {
  font-size: 10px; padding: 1px 6px; border-radius: 20px; font-weight: 600;
}
.nav-user-role.admin { background: #fef3c7; color: #d97706; }
.nav-user-role.user  { background: #ede9fe; color: #7c3aed; }

.nav-admin-btn {
  display: flex; align-items: center; gap: 5px;
  background: #fef3c7; color: #d97706;
  border: 1px solid #fde68a; border-radius: 8px;
  padding: 5px 10px; font-size: 12px; font-weight: 600;
  text-decoration: none; transition: all .15s;
}
.nav-admin-btn:hover { background: #fde68a; }

.nav-input-group {
  display: flex; align-items: center; gap: 6px;
  padding-left: 8px; border-left: 1px solid #e2e8f0;
}
.nav-date-input {
  width: 86px; padding: 5px 8px;
  border: 1px solid #e2e8f0; border-radius: 7px;
  font-size: 12px; color: #374151; outline: none;
  background: #f8fafc; text-align: center; font-weight: 500;
}
.nav-date-input:focus { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.12); }
.nav-add-btn {
  display: flex; align-items: center; gap: 4px;
  background: #6366f1; color: white; border: none; border-radius: 7px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: background .15s; white-space: nowrap;
}
.nav-add-btn:hover { background: #4f46e5; }
.nav-export-btn {
  display: flex; align-items: center; gap: 4px;
  background: white; color: #64748b; border: 1px solid #e2e8f0;
  border-radius: 7px; padding: 5px 10px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: background .15s;
}
.nav-export-btn:hover { background: #f8fafc; }
.nav-search-wrap {
  display: flex; align-items: center; gap: 6px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 7px; padding: 5px 10px;
}
.nav-search-wrap i { color: #94a3b8; font-size: 11px; }
.nav-search-wrap input {
  border: none; background: transparent; outline: none;
  font-size: 12.5px; color: #374151; width: 160px;
}
.nav-search-wrap input::placeholder { color: #94a3b8; }
.nav-logout-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; color: #94a3b8; border: 1px solid #e2e8f0;
  border-radius: 7px; padding: 5px 10px; font-size: 12px;
  cursor: pointer; transition: all .15s;
}
.nav-logout-btn:hover { color: #ef4444; border-color: #fecaca; background: #fff1f2; }
