* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #35bce8;
  --secondary: #1e2146;
  --background: #191f2b;
  --title: #020101;
}

html {
  scroll-behavior: smooth;
  font-size: clamp(7.5px, 0.522vw, 10px);
}

ul {
  list-style: none;
}

a {
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  text-decoration: none;
}

i {
  font-style: normal;
}

.content {
  max-width: 160rem;
  margin: 0 auto;
  position: relative;
}

.content .content {
  padding: 0;
}

.swiper_box {
  position: relative;
}

.swiper_content {
  max-width: 163rem;
  margin: 0 auto;
  position: relative;
  padding: 1.5rem;
  overflow: hidden;
}

button,
input,
textarea {
  outline: none;
  border: none;
  font-family: unset;
  color: var(--title);
}

input[type="submit"],
button {
  cursor: pointer;
}

textarea {
  resize: none;
}

input[type="checkbox"] {
  cursor: pointer; 
}

input[type="number"] {
  -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

select {
  padding: 0 1rem;
  cursor: pointer;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  font-family: unset;
  color: var(--title);
}

.flex {
  display: flex;
}

.bulk_actions {
  margin-top: 1rem;
}

.wrap {
  flex-wrap: wrap;
}

.flex1 {
  flex: 1;
}

.flex2 {
  flex: 2;
}

.flex3 {
  flex: 3;
}

.between {
  justify-content: space-between;
}

.center {
  text-align: center;
}

.flex_start {
  justify-content: flex-start;
}

.flex_center {
  justify-content: center;
}

.flex_end {
  justify-content: flex-end;
}

.flex_top {
  align-items: flex-start;
}

.flex_middle {
  align-items: center;
}

.flex_bottom {
  align-items: flex-end;
}

body {
  font-size: 1.6rem;
  word-break: break-word;
  color: var(--title);
  font-family: 'Geist', sans-serif;
}

body.fixed {
  overflow: hidden;
  padding-right: 17px;
}

.only_mobile {
  display: none;
}

.gap {
  gap: 3rem;
}

li.swiper-slide {
  height: auto;
}

.grecaptcha-badge {
  visibility: hidden;
}

#fullscreen-loader {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#fullscreen-loader::after {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 8px solid var(--primary);
  animation: l20-1 0.8s infinite linear alternate, l20-2 1.6s infinite linear;
}

@keyframes l20-1 {
  0% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%);
  }

  12.5% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%);
  }

  25% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%);
  }

  50% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
  }

  62.5% {
    clip-path: polygon(50% 50%, 100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
  }

  75% {
    clip-path: polygon(50% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100%);
  }

  100% {
    clip-path: polygon(50% 50%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100%);
  }
}

@keyframes l20-2 {
  0% {
    transform: scaleY(1) rotate(0deg);
  }

  49.99% {
    transform: scaleY(1) rotate(135deg);
  }

  50% {
    transform: scaleY(-1) rotate(0deg);
  }

  100% {
    transform: scaleY(-1) rotate(-135deg);
  }
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: 5px;
  font-size: 1.6rem;
}

.left_silder {
  padding: 4rem 2rem;
  color: #fff;
  min-width: 27rem;
  height: 100vh;
  position: fixed;
  top: 0;
  background-color: var(--background);
}

.left_silder .logo_box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.left_silder .logo_box .title {
  font-size: 2rem;
}

.left_silder .logo_box .img_cv {
  text-align: center;
  display: flex;
  align-items: center;
}

.left_silder .logo_box img {
  width: 8rem;
}

.left_silder .nav_list ul {
  margin: 2rem 0;
}

.left_silder .nav_list ul li a {
  padding: 1.5rem;
  border-radius: 5px;
  display: block;
}

.left_silder .nav_list ul li.active a {
  background-color: #282f3b;
}

#app>.right {
  padding: 2rem;
  padding-left: 29rem;
  flex: 1;
}

#app>.right .section_title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#app>.right .table {
  width: 100%;
}

#app>.right .table table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  border-radius: 5px;
  overflow: hidden;
}

#app>.right .table table tr th,
#app>.right .table table tr td {
  border-bottom: 1px solid #999;
  padding: 1.5rem;
  font-size: 1.6rem;
  text-align: center;
}

#app>.right .table table tr input[type="checkbox"]{
  width: 20px;
  height: 20px;
}

#app>.right .table table tr th {
  color: #fff;
  font-weight: bold;
  border-color: var(--background);
  background-color: var(--background);
}

#app>.right .filter_content {
  margin: 1.5rem 0;
}

#app>.right .filter_content .flex {
  gap: 1.5rem;
}

#app>.right .filter_content .flex p {
  display: flex;
  align-items: center;
}

#app>.right .filter_content .flex p input,
#app>.right .filter_content .flex p select {
  border: #999 solid 1px;
  height: 100%;
  border-radius: 5px;
  padding: 0 1rem;
  margin-left: 1rem;
}

#app>.right .filter_content .flex p label {
  font-size: 1.8rem;
}

.form_model {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: all .2s;
}

.form_model.active {
  opacity: 1;
  visibility: visible;
  z-index: 9;
  /* transform: scale(1); */
}

.form_model .form_model_content {
  position: relative;
  min-width: 80rem;
  max-height: 80%;
  overflow: auto;
  width: max-content;
  z-index: 11;
  padding: 4rem;
  border-radius: 6px;
  background-color: #fff;
  transition: all .2s;
  transform: scale(0);

}

.form_model.active .form_model_content {
  transform: scale(1);
}

.form_model .form_model_content .form_title {
  text-align: center;
}

.form_model .form_model_content .form_title strong {
  font-size: 2.5rem;
}

.form_model .form_model_content p {
  margin-bottom: 2rem;
}

.form_model .form_model_content label {
  display: block;
  margin-bottom: .5rem;
}

.form_model .form_model_content input:not(.btn),
.form_model .form_model_content textarea,
#bulkForm #bulk_tag,
.form_model .form_model_content select {
  padding: 1rem;
  border-radius: 5px;
  width: 100%;
  border: #999 solid 1px;
}

.form_model .form_model_content p.submit {
  text-align: right;
  margin: 1rem 0;
}

.form_model .form_model_over {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  z-index: 10;
  background-color: rgba(0, 0, 0, .5);
}

td a:not(.btn) {
  text-decoration: underline;
}

td .status {
  padding: .4rem;
  display: block;
  background-color: #eee;
  border-radius: 5px;
  font-size: 1.4rem;
}

td .status.connected {
  background-color: green;
  color: #fff;
}

td .status.connection_failed {
  background-color: red;
  color: #fff;
}

td .status.connecting {
  background-color: orange;
  color: #fff;
}


.loading {
  position: relative;
}

.loading:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/load.gif') no-repeat center;
  background-size: 45px;
  background-color: rgba(255, 255, 255, 0.3);
  z-index: 9;
}

.stop_auto_backup {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 5px;
  border: #999 solid 1px;
  appearance: auto !important;
}


:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --muted: #72798B;
  --text: #0f172a;
  --primary-weak: #e7efff;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #e6e8ee;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .06);
}

.list-cards {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.list-cards .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.list-cards .card .bd {
  padding: 16px 18px;
}

.list-cards .card .hd {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.emtpy_img {
  text-align: center;
}

.emtpy_img img {
  width: 500px;
  max-width: 100%;
}

.dot-loader {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot-loader span {
  width: 10px;
  height: 10px;
  background: #3498db;
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}

.dot-loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.dot-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  to {
    transform: translateY(-8px);
    opacity: 0.6;
  }
}

tags.tagify {
  border: #999 solid 1px;
  width: 100%;
  border-radius: 5px;
}

.smaill_notice,
.small_notice {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  opacity: .8;
}

.import_csv_drag {
  margin-top: 1rem;
}

.import_csv_drag p {
  margin-bottom: 0px !important;
}

.pagination { 
  gap: 8px;
  align-items: center;
  /* 分页按钮间距 */
}

.pagination .page-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.pagination .page-link:hover {
  background-color: var(--primary);
  color: #fff;
}

.pagination .page-link.active {
  background-color: var(--primary);
  color: #fff;
  font-weight: bold;
  pointer-events: none;
  /* 当前页不可点击 */
}

.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.85em;
  color: #fff;
  font-weight: bold;
}

.chip.draft {
  background-color: #999;
  /* 灰色 */
}

.chip.scheduled {
  background-color: orange;
  /* 绿色 */
}

.chip.sending {
  background-color: orange;
  /* 绿色 */
}


.chip.done {
  background-color: #28a745;
  /* 绿色 */
}

/* 简洁样式（可按你项目样式调整） */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  border-radius: 12px; 
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 12px;
  text-align: center;
}

.stat-card strong {
  font-size: 2.5rem;
  margin: 1rem 0;
  display: block;
}

.stat-card span {
  color: #666;
  font-size: 1.6rem;
}

.recent-campaigns .campaign-item {
  background: #fff;
  border-bottom: 1px solid #eee;
  border-radius: 10px;
  padding: 16px 18px;
}

.recent-campaigns .campaign-item strong{
  display: block;
  margin-bottom: .2rem;
}
.recent-campaigns .campaign-item .muted{
  margin-bottom: .2rem;
}

.dash_title {
  font-size: 2rem;
}

.muted {
  color: #666;
  font-size: 1.3rem;
}

.chart-wrap {
  margin-top: 1rem;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #eee;
}

.recent_chart {
  display: flex;
  gap: 1.5rem;
}

.recent_chart>div {
  flex: 1;
}

.recent-campaigns { 
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
 
  
.queue-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.queue-table th,
.queue-table td {
  border: 1px solid #ddd;
  padding: 6px 10px;
  font-size: 1.5rem;
}

.queue-table th {
  background: #f9f9f9;
  text-align: left;
}

.queue-table tr:nth-child(even) {
  background: #fefefe;
}
.a_link{
  text-decoration: underline; 
  color: var(--primary);
}

.recent_campaigns{
  background: #ffffff;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.06);
}

.recent_campaigns >div:first-child{
  padding: 16px 18px;
  border-bottom: 1px solid #e6e8ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}