/* ============================================================
 * SUK Admin Console · 样式
 * ============================================================ */

body {
  font-family: 'Inter', 'Noto Sans Thai', system-ui, sans-serif;
}

/* 侧边栏导航 */
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: #f5ecd7aa;
  font-size: 13.5px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.18s;
  cursor: pointer;
}
.admin-nav-item:hover {
  background: rgba(201, 169, 97, 0.06);
  color: #e5c888;
}
.admin-nav-item.active {
  background: linear-gradient(90deg, rgba(201, 169, 97, 0.18), transparent);
  color: #e5c888;
  border-left-color: #c9a961;
}
.admin-nav-item.active i {
  color: #c9a961;
}

.admin-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: #c9a96120;
  color: #c9a961;
  min-width: 22px;
  text-align: center;
}

/* 卡片 */
.admin-card {
  background: linear-gradient(180deg, #0f1614, #0a0e0d);
  border: 1px solid rgba(201, 169, 97, 0.13);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.admin-card:hover {
  border-color: rgba(201, 169, 97, 0.28);
}

/* 按钮 */
.admin-btn-primary {
  padding: 8px 16px;
  background: linear-gradient(135deg, #c9a961, #b8944f);
  color: #0a0e0d;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
}
.admin-btn-primary:hover {
  box-shadow: 0 4px 18px -4px #c9a96180;
  transform: translateY(-1px);
}

.admin-btn-ghost {
  padding: 8px 14px;
  background: transparent;
  color: #e5c888;
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
}
.admin-btn-ghost:hover {
  background: rgba(201, 169, 97, 0.08);
  border-color: rgba(201, 169, 97, 0.5);
}

.admin-btn-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c9a961aa;
  border-radius: 6px;
  transition: all 0.15s;
  cursor: pointer;
  font-size: 12px;
  border: none;
  background: transparent;
  margin-right: 2px;
}
.admin-btn-icon:hover {
  background: #c9a96118;
  color: #e5c888;
}

/* 输入框 */
.admin-input, select.admin-input {
  padding: 7px 12px;
  background: #0a0e0d;
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 8px;
  color: #f5ecd7;
  outline: none;
  transition: border-color 0.15s;
}
.admin-input:focus {
  border-color: #c9a961;
}

/* 表格 */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table thead th {
  background: #0a0e0d;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: #c9a961;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
  white-space: nowrap;
}
.admin-table tbody tr {
  border-bottom: 1px solid rgba(201, 169, 97, 0.07);
  transition: background 0.12s;
}
.admin-table tbody tr:hover {
  background: rgba(201, 169, 97, 0.04);
}
.admin-table tbody td {
  padding: 11px 14px;
  vertical-align: middle;
  white-space: nowrap;
}
.admin-table tbody td:nth-child(2) {
  white-space: normal;
}

/* 表格区域允许横向滚动 */
.admin-card:has(.admin-table) {
  overflow: auto;
}

/* 子 Tab */
.sites-tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #f5ecd7aa;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
  cursor: pointer;
}
.sites-tab:hover {
  color: #e5c888;
  background: rgba(201, 169, 97, 0.04);
}
.sites-tab.active {
  color: #c9a961;
  border-bottom-color: #c9a961;
  font-weight: 600;
}

/* Leaflet popup 深色化 */
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
}
.leaflet-container {
  background: #0b1826 !important;
  font-family: 'Inter', sans-serif;
}
.leaflet-control-attribution {
  background: rgba(10, 14, 13, 0.8) !important;
  color: #f5ecd766 !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a {
  color: #c9a961 !important;
}
.leaflet-control-zoom a {
  background: #0f1614 !important;
  color: #e5c888 !important;
  border: 1px solid #c9a96133 !important;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0e0d;
}
::-webkit-scrollbar-thumb {
  background: #c9a96130;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c9a96150;
}
