/* Battery checker layout */
.battery-checker-wrapper {
  max-width: 800px;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.battery-checker-wrapper h1,
.battery-checker-wrapper h2 {
  text-align: left;
}

/* Card */
.bhc-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  background: #fafafa;
}

/* Status colors */
.bhc-status-good {
  border-left: 6px solid #2e7d32;
}

.bhc-status-warning {
  border-left: 6px solid #f9a825;
}

.bhc-status-bad {
  border-left: 6px solid #c62828;
}

/* Error message */
.bhc-error {
  color: #c62828;
  margin-top: 10px;
  display: none; /* 默认隐藏，由 JS 控制显示 */
}

/* Form elements */
.battery-checker-wrapper label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.battery-checker-wrapper input[type="file"] {
  margin-bottom: 10px;
}

.battery-checker-wrapper button[type="button"] {
  padding: 10px 18px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: #1976d2;
  color: #fff;
  font-weight: 600;
}

.battery-checker-wrapper button[type="button"]:hover {
  opacity: 0.9;
}

/* CTA 按钮 */
.bhc-cta-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 16px;
  background: #00703c;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}

.bhc-cta-btn:hover {
  opacity: 0.9;
}

/* 表格样式 */
.battery-checker-wrapper table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 10px;
}

.battery-checker-wrapper th,
.battery-checker-wrapper td {
  border: 1px solid #ddd;
  padding: 8px;
  font-size: 14px;
}

.battery-checker-wrapper th {
  background: #f0f0f0;
  text-align: left;
}

/* 命令行代码块 */
.battery-checker-wrapper pre {
  background: #272822;
  color: #f8f8f2;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 13px;
}
