:root {
  --md-sys-color-background: #121212;
  --md-sys-color-surface: #1e1e1e;
  --md-sys-color-surface-container: #2c2c2c;
  --md-sys-color-on-surface: #e2e2e2;
  --md-sys-color-primary: #d0bcff;
  --md-sys-color-on-primary: #381e72;
  --md-sys-color-outline: #49454f;
}

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-surface);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px;
}

.dashboard-container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-header {
  text-align: center;
  padding: 16px 0;
}

.dashboard-header h1 {
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--md-sys-color-primary);
  margin-bottom: 8px;
}

.status-text {
  font-size: 1rem;
  opacity: 0.8;
}

.auth-card {
  background-color: var(--md-sys-color-surface);
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.auth-card h2 {
  font-size: 1.5rem;
  color: var(--md-sys-color-primary);
}

.input-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.auth-card input {
  flex: 1;
  max-width: 400px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--md-sys-color-outline);
  background-color: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  font-size: 1rem;
}

.m3-button {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border: none;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.m3-button:hover {
  opacity: 0.9;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  list-style: none;
}

.device-item {
  background-color: var(--md-sys-color-surface);
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.device-class {
  opacity: 0.6;
  font-size: 0.85rem;
}
