/* =========================================================
    BUREAU PANELS
    ========================================================= */

.bureau-panels {
  margin-top: 12px;
  margin-bottom: 12px;
}

.bureau-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.bureau-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  background: rgba(114, 255, 178, 0.03);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  min-height: 70px;
}

.bureau-panel:hover {
  background: rgba(114, 255, 178, 0.12);
  box-shadow: 0 0 12px rgba(114, 255, 178, 0.3);
  transform: translateY(-2px);
}

.bureau-code {
  display: none;
}

.bureau-panel-top {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.bureau-panel-bottom {
  display: flex;
  flex: 1;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.bureau-name {
  font-family: var(--font-ja-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.bureau-name-en {
  font-family: var(--font-en);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bureau-panel:hover .bureau-name-en {
  color: var(--green);
}

/* =========================================================
   RIGHT COLUMN PANELS
   ========================================================= */

/* ===== ALERT PANEL ===== */

.alert-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-color: var(--orange);
}

.alert-panel .panel-heading {
  background: rgba(253, 122, 45, 0.1);
  border-bottom-color: var(--orange);
}

.alert-heading {
  background: rgba(253, 122, 45, 0.1);
}

.alert-heading .panel-heading-main .ja {
  color: var(--orange-bright);
}

.alert-main {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--orange);
  background: rgba(253, 122, 45, 0.08);
  margin: 0 12px 12px 12px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.alert-main:hover {
  border-color: var(--orange-bright);
  background: rgba(253, 122, 45, 0.15);
}

.warning-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--orange);
  color: var(--bg);
  font-weight: 900;
  font-size: 1.2rem;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 122, 45, 0.5);
}

.alert-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alert-copy .ja {
  font-size: 0.85rem;
  line-height: 1.3;
}

.alert-copy .en {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-en);
}

.alert-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  transition: all 0.2s ease;
  font-size: 0.8rem;
}

.alert-row:last-child {
  border-bottom: none;
}

.alert-row:hover {
  background: rgba(12, 38, 23, 0.2);
  color: var(--green-bright);
}

/* ===== STATUS GRID ===== */

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.status-dot-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-dot-circle::before {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

.status-label {
  font-size: 0.65rem;
  text-align: center;
  line-height: 1.2;
}

/* ===== LIVE PANEL ===== */

.live-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.live-header-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-header-main .ja {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.live-header-main .en {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-en);
}

.live-update {
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}

.metric:last-child {
  border-bottom: none;
}

.metric-label {
  flex: 1;
}

.metric-value {
  font-family: ui-monospace, monospace;
  color: var(--green);
  font-weight: 900;
}

.meter-bar {
  width: 100%;
  height: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  box-shadow: 0 0 8px rgba(114, 255, 178, 0.4);
  transition: width 0.3s ease;
}

.meter-fill.warn {
  background: linear-gradient(90deg, var(--orange), var(--orange-bright));
  box-shadow: 0 0 8px rgba(255, 122, 45, 0.4);
}

.meter-fill.crit {
  background: linear-gradient(90deg, #ff4444, #ff6666);
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.4);
}

/* ===== STATUS ROW (驕狗畑迥ｶ豕・ ===== */

.status-row {
  display: grid;
  grid-template-columns: 1fr 80px 60px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.status-row:last-child {
  border-bottom: none;
}

.status-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
}

.status-name .ja {
  font-family: var(--font-ja-serif);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.status-name .en {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-en);
}

.meter {
  display: flex;
  gap: 2px;
}

.meter span {
  width: 6px;
  height: 6px;
  background: var(--green);
  box-shadow: var(--glow-green);
}

.status-online {
  text-align: right;
  font-size: 0.65rem;
  line-height: 1.2;
}

/* ===== LIVE DATA (繝ｪ繧｢繝ｫ繧ｿ繧､繝繝ｻ繝・・繧ｿ) ===== */

.live-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-content > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart {
  min-height: 80px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  padding: 8px;
}

.chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.live-number {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.load-row {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 8px;
  align-items: center;
  font-size: 0.75rem;
}

.load-bar {
  height: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
}

.load-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  box-shadow: 0 0 6px rgba(114, 255, 178, 0.4);
  width: var(--value, 0%);
}

.mini-radar {
  position: relative;
  width: 100%;
  height: 80px;
  border: 1px solid var(--line);
  background: radial-gradient(
    circle,
    rgba(114, 255, 178, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.network-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: var(--glow-green);
}
