:root {
  --bg: #07111f;
  --panel: rgba(15, 34, 58, 0.94);
  --panel-2: rgba(10, 25, 44, 0.9);
  --line: rgba(116, 211, 255, 0.2);
  --text: #f8fbff;
  --muted: #a9c5d9;
  --cyan: #21d0e8;
  --blue: #1468d8;
  --deep-blue: #073a82;
  --warning: #f6b440;
  --danger: #ff5e6c;
  --good: #49e28d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(33, 208, 232, 0.30), transparent 26%),
    radial-gradient(circle at 85% 14%, rgba(20, 104, 216, 0.28), transparent 30%),
    linear-gradient(135deg, #06101d 0%, #081b31 52%, #052c43 100%);
  overflow: hidden;
}

.dashboard-shell {
  height: 100vh;
  width: 100vw;
  padding: 24px;
  display: grid;
  grid-template-rows: 116px 1fr 72px;
  gap: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(8, 23, 43, 0.94), rgba(11, 51, 86, 0.78));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 22px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}

.brand-wrap { display: flex; align-items: center; gap: 18px; min-width: 0; }
.logo {
  height: 82px;
  width: auto;
  border-radius: 14px;
  background: white;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.24);
}
.kicker { font-size: 18px; color: var(--cyan); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; }
h1 { font-size: 36px; margin: 2px 0 0; line-height: 1; }
.room-name { font-size: 22px; color: var(--muted); margin-top: 7px; }
.clock-wrap { text-align: right; }
.time { font-size: 42px; line-height: 1; font-weight: 900; }
.date { font-size: 22px; color: var(--muted); margin-top: 7px; }
.connection-status { font-size: 14px; margin-top: 8px; color: var(--cyan); }

.main-grid { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 18px; min-height: 0; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.24);
  overflow: hidden;
}
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
h2 { margin: 0; color: #8fe9ff; font-size: 25px; }
.pill, .priority-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(33, 208, 232, 0.16);
  color: #aaf3ff;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}
.sign-in-btn {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: white;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}
.weather-main { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-bottom: 18px; }
.temperature { font-size: 64px; font-weight: 900; color: white; }
.weather-condition { font-size: 24px; font-weight: 800; }
.muted { color: var(--muted); font-size: 18px; line-height: 1.35; }
.weather-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.weather-row div, .metric-row, .item-row {
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px 14px;
}
.weather-row span { display:block; color: var(--muted); font-size: 15px; }
.weather-row strong { display:block; font-size: 20px; margin-top: 4px; }
.metrics-title, .projects-title, .room-title { margin-top: 24px; }
.metric-list { display: grid; gap: 10px; }
.metric-row { display: flex; justify-content: space-between; align-items: center; font-size: 20px; }
.metric-row strong { font-size: 26px; }
.metric-good strong { color: var(--good); }
.metric-warning strong { color: var(--warning); }
.metric-critical strong { color: var(--danger); }
.list-stack { display: grid; gap: 12px; max-height: 310px; overflow: hidden; }
.list-stack.compact { max-height: 208px; }
.item-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.item-time { color: var(--cyan); font-weight: 900; min-width: 90px; font-size: 18px; }
.item-title { font-size: 20px; font-weight: 800; line-height: 1.2; }
.item-sub { color: var(--muted); font-size: 16px; margin-top: 4px; }
.priority-high { background: rgba(255, 94, 108, 0.22); color: #ffc2c8; }
.priority-medium { background: rgba(246, 180, 64, 0.22); color: #ffdc98; }
.priority-low { background: rgba(73, 226, 141, 0.16); color: #abffd0; }
.room-status-block { background: var(--panel-2); border-radius: 18px; padding: 18px; border: 1px solid rgba(255,255,255,0.06); }
.room-state { font-size: 42px; font-weight: 900; margin-bottom: 8px; color: white; }
.empty-state { color: var(--muted); font-size: 18px; padding: 16px; border: 1px dashed rgba(255,255,255,0.18); border-radius: 14px; }
.announcement-bar {
  background: linear-gradient(90deg, var(--deep-blue), #0b7897, var(--deep-blue));
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}
.announcement-marquee { white-space: nowrap; display: inline-block; padding-left: 100%; animation: scroll 32s linear infinite; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

@media (max-width: 1100px) {
  .dashboard-shell { padding: 16px; grid-template-rows: 106px 1fr 64px; gap: 12px; }
  .main-grid { gap: 12px; }
  .card { padding: 15px; }
  h1 { font-size: 29px; }
  .temperature { font-size: 50px; }
  .time { font-size: 34px; }
}
