/* ============================================================
   CLI 利用枠インジケーター（ステータスバー）
   ============================================================ */
.header-usage {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: 6px;
  padding-right: 12px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.header-usage:empty {
  display: none;
}
.header-usage .sys-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-usage .sys-label {
  font-size: 0.55rem;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.5px;
  min-width: 26px;
}
.header-usage .sys-bar {
  width: 40px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}
.header-usage .sys-fill {
  height: 100%;
  border-radius: 2px;
  background: rgba(255,255,255,0.8);
  transition: width 0.6s ease, background 0.6s ease;
}
.header-usage .sys-fill.warn {
  background: #f9e2af;
}
.header-usage .sys-fill.danger {
  background: #f38ba8;
}
.header-usage .sys-error-text {
  font-size: 0.55rem;
  opacity: 0.7;
  color: #f9e2af;
}
.header-usage .sys-value {
  font-size: 0.55rem;
  min-width: 22px;
  text-align: right;
  opacity: 0.8;
  font-family: 'Consolas', 'Monaco', monospace;
}
.usage-panel {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.usage-panel:empty {
  display: none;
}
.usage-section-title {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.usage-section-title .material-symbols-outlined {
  font-size: 13px;
}
.usage-gauge {
  margin-bottom: 6px;
}
.usage-gauge:last-child {
  margin-bottom: 0;
}
.usage-gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}
.usage-gauge-label {
  font-size: 0.72rem;
  color: var(--text-light);
}
.usage-gauge-value {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text);
}
.usage-gauge-bar {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.usage-gauge-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
  background: var(--primary);
}
.usage-gauge-fill.warn {
  background: #e67e22;
}
.usage-gauge-fill.danger {
  background: #e74c3c;
}
.usage-gauge-reset {
  font-size: 0.65rem;
  color: var(--text-light);
  margin-top: 2px;
}
.usage-section + .usage-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.usage-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 2px;
}
.usage-stat-value {
  color: var(--text);
  font-weight: 500;
}

.aws-cost {
  flex-direction: column;
  gap: 1px;
  margin-right: 6px;
  padding-right: 12px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.aws-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.aws-label {
  font-size: 0.5rem;
  font-weight: 500;
  opacity: 0.6;
  min-width: 22px;
  letter-spacing: 0.3px;
}

.aws-val {
  font-size: 0.55rem;
  font-weight: 600;
  color: #e8c97a;
  font-family: 'Consolas', 'Monaco', monospace;
  min-width: 44px;
  text-align: right;
}

/* システム統計インジケーター */
.system-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: 6px;
  padding-right: 12px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

/* coffee stats: EC2との間に☕ラベルを持つ区切りを追加 */
.coffee-stats {
  position: relative;
  padding-left: 10px;
  margin-left: 2px;
}
.coffee-stats::before {
  content: '☕';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  opacity: 0.6;
}
.coffee-stats.offline {
  opacity: 0.35;
}

/* pot（coffee の外付け USB）: 1行だけなので、区切り線を他と同じ高さに伸ばす */
.pot-stats {
  align-self: stretch;
  justify-content: center;
}
.pot-stats.offline {
  opacity: 0.35;
}

.sys-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sys-label {
  font-size: 0.55rem;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.5px;
  min-width: 26px;
}

.sys-bar {
  width: 40px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.sys-fill {
  height: 100%;
  border-radius: 2px;
  background: rgba(255,255,255,0.8);
  transition: width 0.6s ease, background 0.6s ease;
  width: 0%;
}

.sys-fill.warn {
  background: #f9e2af;
}

.sys-fill.danger {
  background: #f38ba8;
}

.sys-value {
  font-size: 0.55rem;
  min-width: 22px;
  text-align: right;
  opacity: 0.8;
  font-family: 'Consolas', 'Monaco', monospace;
}

.sys-value.danger {
  color: #f38ba8;
  opacity: 1;
}

/* バッテリーインジケーター */
.navbar-battery {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 6px;
  padding-right: 12px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.navbar-battery-icon {
  font-size: 1.1rem;
  opacity: 0.9;
}

.navbar-battery-value {
  font-size: 0.65rem;
  opacity: 0.85;
  font-family: 'Consolas', 'Monaco', monospace;
  min-width: 24px;
}

.navbar-battery.low .navbar-battery-icon,
.navbar-battery.low .navbar-battery-value {
  color: #f9e2af;
}

.navbar-battery.critical .navbar-battery-icon,
.navbar-battery.critical .navbar-battery-value {
  color: #f38ba8;
}

.navbar-moon {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
  padding-right: 10px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.navbar-moon-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-moon-name {
  font-size: 0.6rem;
  opacity: 0.8;
  white-space: nowrap;
}

.navbar-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.4);
  object-fit: cover;
}

.navbar-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  min-width: 58px;
}

.navbar-clock-time {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--white);
  font-family: 'Segoe UI', 'Segoe', sans-serif;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.navbar-clock-date {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Segoe UI', 'Segoe', sans-serif;
  letter-spacing: 0.02em;
}

