/* Mobile CSS optimizations for event layout */

/* Ensure container spans full width on mobile */
#channel_body {
  @media (max-width: 768px) {
    width: 100%;
  }
  padding: 10px;
}

/* Adjust margins for mobile */
.container_body {
  margin-top: 60px;
}

/* Center loading animation for mobile */
#circularG2 {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Clear floats */
.flo_clear {
  clear: both;
}

/* Add responsive font sizes */
body {
  font-size: 16px;
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
}

/* Small utility flex classes for legacy templates */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}
.justify-center {
  justify-content: center;
}
.gap10 > * + * {
  margin-left: 10px;
}

/* Dashboard stat cards: make them stack and breathe on mobile */
.width100c {
  width: 100% !important;
}
.width220 {
  width: auto !important;
}
.bg_fff.line_ccc.line_radius5 {
  padding: 6px;
  box-sizing: border-box;
}
.header_h1_1086 {
  background: rgba(0, 0, 0, 0.03);
  padding: 8px 10px;
  border-radius: 4px;
}

/* Stat number sizing on small screens */
@media (max-width: 768px) {
  .flex-col .bg_fff.line_ccc.line_radius5 {
    margin-bottom: 12px;
  }
  .flex-col .padding10 {
    padding: 14px 10px;
  }
  .flex-col .f50 {
    font-size: 36px;
    line-height: 1.1;
  }
  .header_h1_1086 div {
    font-size: 14px;
    font-weight: 600;
    color: #333;
  }
}

/* Improve input copy affordance */
.txt_sel_all {
  cursor: pointer;
}

/* Button spacing */
.vps {
  margin-top: 18px;
}

/* Progress bar styling */
.progress {
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}
.progress-bar {
  transition: width 0.5s ease;
}

@media (max-width: 768px) {
  .progress {
    height: 10px;
  }
}

/* Suggestion tip on create page */
.suggest-tip {
  display: inline-block;
  padding: 8px 14px;
  color: #666;
  max-width: 100%;
  box-sizing: border-box;
}

/* QR code page improvements */
#qrcode_page {
  padding: 12px;
}
#qrcode_page #qrcode_link {
  display: block;
  margin: 0 auto;
}
#qrcode_page #qrcode_link canvas,
#qrcode_page #qrcode_link img {
  width: 260px !important;
  height: 260px !important;
  max-width: 100%;
}
#qrcode_page .mar_center {
  margin-top: 14px;
}
#qrcode_page .line_ccc.padding10 {
  padding: 12px;
}
#qrcode_page .tips {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

@media (max-width: 480px) {
  #qrcode_page #qrcode_link canvas,
  #qrcode_page #qrcode_link img {
    width: 220px !important;
    height: 220px !important;
  }
  .suggest-tip {
    padding: 10px 16px;
  }

  /* Scenario cards full width on mobile */
  .scenario-cards {
    gap: 0;
  }
  .scenario-card {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 12px 8px !important;
    margin-top: 12px;
  }
  .scenario-card img {
    max-width: 100%;
    height: auto;
  }
  .scenario-card div {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
  }
}
