.batch-actions {
  display: none; /* 默认隐藏批量操作区域 */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background-color: #f0f2f5;
}

.container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background-color: #001529;
  color: white;
  padding: 20px;
  position: fixed;
  height: 100%;
}

.logo {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
}

.nav-menu {
  list-style: none;
}

.nav-item {
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav-item:hover {
  background-color: #1890ff;
}

.nav-item.active {
  background-color: #1890ff;
}

.main-content {
  flex: 1;
  margin-left: 240px;
  padding: 24px;
}

.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
  flex-wrap: wrap;
}

.config-group {
  display: flex;
  gap: 10px;
  margin-right: 20px;
  align-items: center;
}

.config-input {
  padding: 8px 12px;
  width: 200px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#filterButton {
  padding: 8px 16px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#filterButton:hover {
  background-color: #40a9ff;
}

#registerConfigButton {
  padding: 8px 16px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#registerConfigButton:hover {
  background-color: #40a9ff;
}
#cekaButton {
  padding: 8px 16px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#cekaButton:hover {
  background-color: #40a9ff;
}

#refreshButton {
  padding: 8px 16px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#refreshButton:hover {
  background-color: #40a9ff;
}

#timeFilterButton {
  padding: 8px 16px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#refreshButton:hover {
  background-color: #40a9ff;
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-grow: 1;
  max-width: 600px;
}

.group-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  width: 180px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.search-box {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  flex-grow: 1;
}

.data-table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.data-table th {
  background-color: #fafafa;
  font-weight: 500;
}

.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.status.running {
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #52c41a;
}

.status.stopped {
  background-color: #fff1f0;
  border: 1px solid #ffa39e;
  color: #cf1322;
}

.status.starting {
  background-color: #fffbe6;
  border: 1px solid #ffe58f;
  color: #faad14;
}

.status.configuring {
  background-color: #e6f7ff;
  border: 1px solid #91d5ff;
  color: #1890ff;
}

.status.expired {
  background-color: #fff1f0;
  border: 1px solid #ffccc7;
  color: #f5222d;
}

.status.error {
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #52c41a;
}

.operation-btn {
  padding: 6px 12px;
  border: 1px solid #1890ff;
  border-radius: 4px;
  background: none;
  color: #1890ff;
  cursor: pointer;
  margin-right: 8px;
}

.checkbox-column {
  width: 50px;
  text-align: center;
}

.data-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.batch-actions {
  margin-bottom: 15px;
  display: none;
  padding: 12px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.batch-actions.show {
  display: block;
}

.batch-btn {
  padding: 8px 16px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
}

.batch-btn-del {
  padding: 8px 16px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
}

.batch-btn:hover {
  background-color: #40a9ff;
}

#selectedCount {
  margin-left: 15px;
  color: #666;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #999;
}

.data-table td:nth-child(8) {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table td:nth-child(8):hover {
  white-space: normal;
  overflow: visible;
  z-index: 1;
  position: relative;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.error-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px;
  background: #ffebee;
  color: #b71c1c;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* 操作按钮悬停显示 */
.operation-cell .operation-buttons {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}

tr:hover .operation-buttons {
  visibility: visible;
  opacity: 1;
}

.operation-buttons {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.progress-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  text-align: center;
  max-width: 80%;
}

/* 弹窗样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 300px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-options label {
  font-weight: 500;
}

.filter-options select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#confirmFilter {
  padding: 8px 16px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#confirmFilter:hover {
  background-color: #40a9ff;
}
a {
  text-decoration: none; /* 去掉下划线 */
  color: inherit; /* 继承父元素的颜色 */
}

/* 登录页面样式 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f2f5;
}

.login-box {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-box .logo {
  font-size: 24px;
  margin-bottom: 20px;
  color: #001529;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.table-btn {
  /* 通用按钮样式 */
  padding: 8px 16px; /* 调整内边距，控制按钮大小 */
  font-size: 14px; /* 调整字体大小 */
  border: 1px solid #ccc; /* 添加边框 */
  border-radius: 4px; /* 添加圆角 */
  background-color: #f0f0f0; /* 设置背景颜色 */
  color: #333; /* 设置文字颜色 */
  cursor: pointer; /* 鼠标悬停显示手型 */
  transition: background-color 0.3s ease; /* 添加过渡效果 */
}

.table-btn:hover {
  background-color: #e0e0e0; /* 鼠标悬停时的背景颜色 */
}

/* 注册数量输入框样式 */
#registerCount {
  /* 边框样式 */
  border: 2px solid #ccc;
  /* 圆角 */
  border-radius: 4px;
  /* 内边距 */
  padding: 8px 12px;
  /* 字体大小 */
  font-size: 14px;
  /* 背景颜色 */
  background-color: #f9f9f9;
  /* 鼠标悬停时的边框颜色 */
  transition: border-color 0.3s ease;
}

#registerCount:focus {
  /* 输入框聚焦时的边框颜色 */
  border-color: #007bff;
  /* 去除默认的聚焦外边框 */
  outline: none;
  /* 聚焦时添加阴影效果 */
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* 注册配置弹窗样式 */
#registerConfigModal {
  /* 模态框通用样式 */
  .modal {
    display: none; /* 默认隐藏 */
    position: fixed; /* 固定定位 */
    z-index: 1; /* 位于顶层 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* 允许滚动 */
    background-color: rgba(0, 0, 0, 0.4); /* 半透明背景 */
  }

  /* 模态框内容通用样式 */
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 居中显示 */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* 宽度 */
    max-width: 500px; /* 最大宽度 */
  }

  /* 关闭按钮通用样式 */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }

  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  /* 表单标签通用样式 */
  label {
    display: block;
    margin-top: 10px;
  }

  /* 输入框通用样式 */
  input[type="text"],
  input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
  }

  /* 确认按钮通用样式 */
  button {
    background-color: #1890ff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
  }

  button:hover {
    background-color: #45a049;
  }
  /* 弹窗内表单样式 */
  #registerConfigForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  #registerConfigForm label {
    font-weight: 500;
  }

  #registerConfigForm input,
  #registerConfigForm select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  #registerConfigForm button {
    padding: 8px 16px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  #registerConfigForm button:hover {
    background-color: #40a9ff;
  }
  a {
    text-decoration: none; /* 去掉下划线 */
    color: inherit; /* 继承父元素的颜色 */
  }
}
/* 模态框背景 */
.modal {
  display: none; /* 默认隐藏 */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* 半透明背景 */
}

/* 模态框内容 */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 距离顶部 15%，水平居中 */
  padding: 20px;
  border: 1px solid #888;
  width: 30%; /* 可根据需要调整宽度 */
  border-radius: 8px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

/* 关闭按钮 */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* 表单标签 */
.ceka-config-options label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

/* 表单输入框 */
.ceka-config-options input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* 确认按钮 */
#confirmCekaConfig {
  background-color: #1890ff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
  width: 100%;
}

#confirmCekaConfig:hover {
  background-color: #1890ff;
}

/* 确认按钮 */
#confirmRegisterConfig {
  background-color: #1890ff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
  width: 100%;
}

#confirmRegisterConfig:hover {
  background-color: #1890ff;
}

#confirmFilter {
  padding: 8px 16px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

#confirmFilter:hover {
  background-color: #40a9ff;
}

/* 筛选绑卡次数的容器样式 */
.bind-card-filter {
  background-color: #f5f5f5; /* 背景颜色 */
  padding: 15px; /* 内边距 */
  border: 1px solid #ddd; /* 边框 */
  border-radius: 5px; /* 边框圆角 */
  margin-bottom: 20px; /* 底部外边距 */
  display: flex; /* 使用弹性布局 */
  align-items: center; /* 垂直居中对齐 */
  gap: 15px; /* 元素之间的间距 */
  flex-wrap: wrap; /* 元素换行 */
}

/* 标签样式 */
.bind-card-filter label {
  font-weight: bold; /* 字体加粗 */
  color: #333; /* 字体颜色 */
}

/* 输入框样式 */
.bind-card-filter input[type="number"] {
  padding: 8px; /* 内边距 */
  border: 1px solid #ccc; /* 边框 */
  border-radius: 4px; /* 边框圆角 */
  width: 120px; /* 宽度 */
  font-size: 14px; /* 字体大小 */
}

/* 输入框聚焦时的样式 */
.bind-card-filter input[type="number"]:focus {
  outline: none; /* 去除默认聚焦边框 */
  border-color: #007bff; /* 聚焦时边框颜色 */
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3); /* 聚焦时的阴影 */
}
/* 统一筛选标签样式 */
.filter-label {
  margin-right: 5px;
  margin-left: 10px;
  vertical-align: middle;
}

/* 统一筛选输入框样式 */
.filter-input {
  height: 28px;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  vertical-align: middle;
  box-sizing: border-box;
}

/* 确保 group-select 和 search-box 样式一致 */
.group-select,
.search-box {
  height: 28px;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  vertical-align: middle;
  box-sizing: border-box;
}
/* 开关容器样式 */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* 隐藏默认的复选框 */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* 滑块样式 */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* 圆角滑块 */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
.pagination {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination button {
  padding: 5px 10px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
}

.pagination button.active {
  background-color: #007bff;
  color: #fff;
}

.pagination input,
.pagination select {
  padding: 5px;
}
