/* MorningChecker Long-Test Monitor - Page-Specific Stylesheet */

/* Grid Layouts */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-icon.primary { background: rgba(56, 189, 248, 0.12); color: var(--primary); }
.stat-icon.online { background: rgba(16, 185, 129, 0.12); color: var(--status-online); }
.stat-icon.testing { background: rgba(6, 182, 212, 0.12); color: var(--status-testing); }
.stat-icon.amber { background: rgba(245, 158, 11, 0.12); color: var(--status-amber); }
.stat-icon.red { background: rgba(239, 68, 68, 0.12); color: var(--status-red); }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Device Card Grid Layout for Group Detail */
.device-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Group Cards Grid for Group List */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.group-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.group-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.group-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.group-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
}

.g-metric-val {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.g-metric-lbl {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Login Page Specific Styling */
.login-page-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at center, #1E293B 0%, #090D16 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: var(--glass-blur);
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
}

.login-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Device Detail Page */
.detail-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
}

.device-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.spec-box {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: 10px;
}

.spec-title {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.spec-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-top: 2px;
}
