/* 主题色变量（方便维护） */
:root {
  --primary-blue-color: #8cabdf; /* 主色（选中/聚焦状态） */
  --secondary-color: #d0d8e7; /* 辅助色（边框/hover背景） */
  --bg-color: #f8f9fa; /* 整体背景色 */
  --white: #fff; /* 白色（下拉菜单背景） */
  --text-color: #333; /* 文本颜色 */
}
.pageTitle {
  padding: 1.5rem 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.pageTitle h1 {
  font-weight: bold;
  font-size: 1.6rem;
}
.titleLine {
  width: 6px;
  height: 2rem;
  background-color: #71a9e0;
  border-radius: 1rem;
  margin-right: 0.5rem;
  /* position: absolute;
  left: 0;
  top: 0; */
}
.time-picker {
  display: flex;
  justify-content: center;
  align-items: center;
}
.filter-container {
  display: flex;
  max-width: 90rem;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0 1rem;
}
.form-group {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}
.container {
  width: 100%;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.chart-container {
  min-width: 70rem;
  max-width: 90rem;
  height: 500px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1rem;
}

@media (max-width: 768px) {
  .content {
    grid-template-columns: 1fr;
  }

  .info-panel {
    order: -1;
  }
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 20px;
  max-width: 90rem;
  /* padding: 20px; */
}

.card {
  background: var(--primary);
  border-radius: 12px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(109, 188, 235, 0.08);
  background: #fff;
  border: 1px solid #f1f5f9;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-title {
  color: var(--text);
  font-size: 18px;
}
.flexTitle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 15px;
}
.filter-icon {
  font-size: 22px;
  color: #71a9e0;
  margin-left: 1rem;
}

.card-value {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  margin: 10px 0;
}

.card-subtext {
  color: rgba(51, 51, 51, 0.6);
  font-size: 14px;
}

.dark-content .chart-container {
  background-color: #303c47;
}
.dark-content .card {
  background-color: #303c47;
  /* background: linear-gradient(135deg, #8cabdf20, #d0d8e710); */
  border-color: #425261;
}
/* 不同卡片样式 */

.theme-datepicker {
  background-color: var(--bg-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

.daterangepicker {
  border: none;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(140, 171, 223, 0.25);
}

.daterangepicker .calendar-table {
  background-color: var(--bg-color);
  border-radius: 8px;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
  background-color: var(--primary-blue-color) !important;
  border-color: var(--primary-blue-color);
}

.daterangepicker td.in-range {
  background-color: var(--secondary-color);
  color: #333;
}

.daterangepicker .ranges li.active {
  background-color: var(--primary-blue-color);
  color: white;
}

.daterangepicker .btn-primary {
  background-color: var(--primary-blue-color);
  border-color: var(--primary-blue-color);
}

.daterangepicker .btn-secondary {
  background-color: white;
  color: var(--primary-blue-color);
  border-color: var(--secondary-color);
}
.custom-select-wrapper {
  display: flex;
  align-items: center;
}

.custom-select-container {
  /* margin-bottom: 15px; */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-right: 1rem;
}

.custom-select-label {
  display: block;
  /* margin-bottom: 0; */
  font-weight: 500;
  color: #212529;
  margin-right: 0.5rem;
}
.form-control {
  width: 15rem;
  padding: 0.5rem 1rem !important;
  cursor: pointer;
}
.custom-dropdown-toggle {
  width: 15rem;
  text-align: left;
  /* padding: 8px 12px; */
  border-radius: 6px;
  /* border: 1px solid #6c757d; */
  background-color: white;
  transition: border-color 0.2s ease;
}

.custom-dropdown-toggle:hover {
  background-color: white;
  border-color: #ced4da;
}

.custom-dropdown-menu {
  border-radius: 6px;
  /* border: 1px solid rgba(0, 0, 0, 0.1); */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-dropdown-item {
  padding: 8px 12px;
  transition: background-color 0.2s ease;
}

.custom-dropdown-item:hover {
  background-color: #f1f5f9;
}

.custom-dropdown-item.active {
  background-color: #f1f5f9;
  color: #71a9e0;
}
.filter-container .btn.show {
  border-color: #d0d8e7 !important;
}
.queryBtn {
  padding: 0.2rem 1rem;
  border: 1px solid #69a6e2;
  background-color: #71a9e0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-bottom: 15px; */
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  margin-left: 1rem;
}
.dark-content .custom-select-label{
  color: #f8f9fa;
}
.dark-content .custom-dropdown-toggle{
  background-color: #212529;
  color: #fff;
}
.dark-content  .custom-dropdown-item.active {
  background-color: #3f474e;
  color: #71a9e0;
}