/* ==========================================================================
   BGSK Studio - Common Stylesheet
   규칙 준수:
   - 무색 단색 아이콘 전용
   - 메뉴, 키워드, 제목, 날짜, 태그 등 줄바꿈 일체 금지 (white-space: nowrap)
   - 모듈화 및 확장성 기반 디자인 시스템
   ========================================================================== */

:root {
  /* Navy Enterprise Theme */
  --navy-sidebar: #1a233a;
  --navy-sidebar-dark: #131b2e;
  --navy-sidebar-hover: #263353;
  --navy-sidebar-active: #2563eb;
  --navy-sidebar-text: #b0b8c7;
  --navy-sidebar-cat: #7888a6;

  /* Header & Surface */
  --header-bg: #ffffff;
  --header-border: #e2e8f0;
  --body-bg: #f8fafc;
  --canvas-bg: #ffffff;
  --card-bg: #ffffff;

  /* Primary Brand & Accents */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-subtle: #eff6ff;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --success: #16a34a;
  --warning: #f59e0b;

  /* Borders & Dividers */
  --border-color: #cbd5e1;
  --border-light: #e2e8f0;
  --border-dark: #334155;

  /* Text Hierarchy */
  --text-main: #0f172a;
  --text-sub: #64748b;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  /* Table Styles */
  --table-th-bg: #f8fafc;
  --table-th-color: #334155;

  /* Typography */
  --font-sans: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Consolas', 'Courier New', monospace;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-sans);
  background-color: var(--body-bg);
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   규칙 3: 줄바꿈 일체 금지 유틸리티 클래스
   ========================================================================== */
.no-wrap,
.text-nowrap,
.btn,
.btn-cafe,
.btn-blk-action,
.badge,
.badge-status,
.menu-item,
.menu-category,
.sidebar-menu-btn,
.tab-item,
.block-info-left,
.block-actions-right,
th,
.th-cell {
  white-space: nowrap !important;
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Buttons Base */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

.btn-cafe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.15s ease;
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-cafe:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.btn-cafe:active {
  background: #e2e8f0;
}
.btn-cafe-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.btn-cafe-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
}
.btn-cafe-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
}
.btn-cafe-danger:hover {
  background: var(--danger-hover);
  border-color: var(--danger-hover);
  color: #ffffff;
}
.btn-cafe-sm {
  height: 26px;
  padding: 0 8px;
  font-size: 11.5px;
}
.btn-cafe-lg {
  height: 38px;
  padding: 0 18px;
  font-size: 13.5px;
}

/* Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: -0.2px;
  flex-shrink: 0;
  white-space: nowrap;
}
.badge-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.badge-gray {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.badge-green {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.badge-dark {
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid #0f172a;
}

/* Monochrome SVG Icon Utility */
.icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-svg-sm {
  width: 12px;
  height: 12px;
}
.icon-svg-lg {
  width: 16px;
  height: 16px;
}
