/* Display Test — dark additive-display theme, 600x600 */

:root {
  --bg-surface: #1c1e21;
  --bg-surface-2: #24262b;
  --text-primary: #ffffff;
  --text-secondary: #e4e6eb;
  --text-muted: #b0b3b8;
  --accent: #00d4ff;
  --focus-glow: rgba(0, 212, 255, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 600px;
  height: 600px;
  overflow: hidden;
  background: #000000; /* transparent on additive display */
  color: var(--text-primary);
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.app-root {
  width: 600px;
  height: 600px;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.app-header {
  padding: 24px 16px 8px;
  text-align: center;
}
.app-header h1 {
  font-size: 28px;
  font-weight: 700;
}
.app-header .subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

main { flex: 1; display: flex; }

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px;
}

.card {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 20px;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.card-body {
  font-size: 16px;
  line-height: 1.5;
}

.sensor-panel { width: 100%; }
.data-grid {
  display: flex;
  gap: 12px;
}
.mini-card {
  flex: 1;
  background: var(--bg-surface-2);
  border-radius: 12px;
  padding: 16px 8px;
  text-align: center;
}
.mini-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.mini-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.nav-bar {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-bottom: 8px;
}
.nav-item {
  flex: 1;
  height: 88px;
  border: none;
  border-radius: 16px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 475ms cubic-bezier(0.6, 0, 0.4, 1),
              opacity 300ms cubic-bezier(0.4, 0.04, 0.5, 1),
              box-shadow 300ms ease;
  opacity: 0.8;
}
.nav-item .content, .nav-item { opacity: 0.8; }
.nav-item:focus {
  outline: none;
  opacity: 1;
  transform: scale(0.909); /* -8dp on 88dp */
  box-shadow: 0 0 20px var(--focus-glow);
}
.nav-item:active { transform: scale(0.95); }

.hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding-bottom: 8px;
}

.toast {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 536px;
  background: var(--bg-surface-2);
  color: var(--text-primary);
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  z-index: 50;
}

.hidden { display: none !important; }
