/* salon-ai admin 客製樣式 */

/* ── 整體版面 ── */
body {
  background: #f1f5f9;  /* 比 Tabler 預設略深一點,內容卡片會更突出 */
}
.page-body { min-height: calc(100vh - 100px); }
.page-header { padding-bottom: .5rem; }
.page-title {
  font-weight: 600;
  letter-spacing: -.01em;
}

/* ── Sidebar 強化 ── */
.navbar-vertical .navbar-brand {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: .5rem;
}
.navbar-vertical .navbar-brand a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}
#sidebar-menu .nav-link {
  padding: .55rem 1rem;
  border-radius: .375rem;
  margin: 1px .5rem;
  transition: background .15s ease;
}
#sidebar-menu .nav-link.active,
#sidebar-menu .nav-link:hover {
  background: rgba(255,255,255,0.08);
}
#sidebar-menu .nav-link.active {
  font-weight: 500;
  color: #fff !important;
}
/* 子選單 collapse 模式(layui 風 — 點完不關)*/
#sidebar-menu .nav-collapse-arrow {
  transition: transform .2s ease;
  font-size: .85rem;
  opacity: .6;
}
#sidebar-menu .nav-collapse-toggle:not(.collapsed) .nav-collapse-arrow {
  transform: rotate(180deg);
}
#sidebar-menu .nav-sm .nav-link {
  padding: .4rem .75rem .4rem 2rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  position: relative;
  margin: 1px 4px;
  border-radius: .375rem;
}
#sidebar-menu .nav-sm .nav-link::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transform: translateY(-50%);
}
#sidebar-menu .nav-sm .nav-link:hover,
#sidebar-menu .nav-sm .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}
#sidebar-menu .nav-sm .nav-link.active::before {
  background: #06b6d4;
  width: 6px;
  height: 6px;
}

/* ── 表格 ── */
.dt-actions .btn {
  padding: .15rem .5rem;
  font-size: .8125rem;
}
.dt-empty {
  text-align: center;
  padding: 48px 32px;
  color: #888;
  font-size: .9rem;
}
.card-table thead th {
  background: #f8fafc;
  border-top: none;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #64748b;
}

/* ── 卡片美化 ── */
.card {
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.card.card-md {
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

/* ── topbar ── */
.navbar.navbar-expand-md {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

/* ── 自訂小元件 ── */
.json-cell { font-family: Menlo, Consolas, monospace; font-size: 12px; }
.tag-active { background: #10b981; color: white; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.tag-inactive { color: #888; font-size: 12px; }

/* ── Toast 改進 ── */
.toast.position-fixed { box-shadow: 0 10px 32px rgba(0,0,0,.15); }
