/* Battery Status Checker - tool-specific styles (scoped with the bat- prefix) */

.bat-card { padding: 28px 32px 34px; }

.bat-title-bar { text-align: center; margin-bottom: 6px; }
.bat-title-bar h1 { font-size: 1.6em; font-weight: 800; margin: 0; color: #23272f; }

.bat-intro { text-align: center; color: #6b7280; font-size: .95em; line-height: 1.6; max-width: 720px; margin: 8px auto 26px; }

/* ===== Unsupported fallback ===== */
.bat-unsupported { text-align: center; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 32px 24px; margin-bottom: 10px; }
.bat-unsupported i { font-size: 2em; color: #ea580c; margin-bottom: 10px; }
.bat-unsupported h3 { margin: 6px 0 10px; color: #23272f; font-size: 1.15em; }
.bat-unsupported p { max-width: 640px; margin: 0 auto; color: #6b7280; font-size: .92em; line-height: 1.6; }

/* ===== Gauge ===== */
.bat-gauge-row { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 22px; }

.bat-gauge-wrap { display: flex; align-items: stretch; }
.bat-gauge { position: relative; width: min(80vw, 320px); height: 130px; border: 6px solid #23272f; border-radius: 14px; background: #f7f8fa; overflow: hidden; box-shadow: inset 0 2px 6px rgba(0,0,0,.08); }
.bat-gauge-nub { width: 10px; height: 46px; background: #23272f; border-radius: 0 6px 6px 0; align-self: center; margin-left: -2px; }
.bat-gauge-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: linear-gradient(90deg, var(--site-success), #22c55e); transition: width .5s ease, background .4s ease; }
.bat-gauge-fill.bat-low { background: linear-gradient(90deg, var(--site-danger), #ef4444); }
.bat-gauge-fill.bat-mid { background: linear-gradient(90deg, #d97706, #f59e0b); }
.bat-gauge-fill.bat-charging { background: linear-gradient(90deg, var(--site-success), #4ade80); background-size: 200% 100%; animation: batChargingSweep 1.8s linear infinite; }

@keyframes batChargingSweep {
    0% { background-position: 0% 0; }
    100% { background-position: -200% 0; }
}

.bat-pct { font-size: 2.4em; font-weight: 800; color: #23272f; line-height: 1; }

.bat-status-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--site-success-bg); color: var(--site-success); border: 1px solid var(--site-success-border); font-weight: 700; font-size: .92em; padding: 8px 18px; border-radius: 30px; }
.bat-status-badge.bat-discharging { background: #f7f8fa; color: #6b7280; border-color: #e2e4e9; }
.bat-status-badge.bat-unknown { background: #f7f8fa; color: #9aa0aa; border-color: #e2e4e9; }

/* ===== Stats grid ===== */
.bat-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.bat-stat { background: #f7f8fa; border: 1px solid #eceef2; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.bat-stat-label { font-size: .78em; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.bat-stat-label i { color: var(--site-success); }
.bat-stat-value { font-size: 1.15em; font-weight: 700; color: #23272f; }

/* ===== Event log ===== */
.bat-log-wrap { border: 1px solid #eceef2; border-radius: 10px; overflow: hidden; margin-bottom: 6px; }
.bat-log-head { background: #f7f8fa; padding: 10px 14px; font-size: .82em; font-weight: 700; color: #3d4148; border-bottom: 1px solid #eceef2; }
.bat-log-head i { color: var(--site-success); margin-right: 6px; }
.bat-log { max-height: 150px; overflow-y: auto; padding: 6px 14px; font-size: .82em; color: #4b5563; }
.bat-log-empty { color: #9aa0aa; padding: 8px 0; }
.bat-log-row { padding: 6px 0; border-bottom: 1px dashed #eceef2; display: flex; justify-content: space-between; gap: 10px; }
.bat-log-row:last-child { border-bottom: none; }
.bat-log-time { color: #9aa0aa; white-space: nowrap; }

.bat-privacy-note { display: flex; align-items: flex-start; gap: 8px; font-size: .82em; color: #6b7280; background: #f7f8fa; border: 1px solid #eceef2; border-radius: 10px; padding: 12px 16px; margin-top: 14px; }
.bat-privacy-note i { color: var(--site-success); margin-top: 2px; }

@media (max-width: 600px) {
    .bat-card { padding: 22px 18px 26px; }
    .bat-gauge { width: 90vw; height: 110px; }
    .bat-pct { font-size: 2em; }
}
