:root {
  --primary: #16435f;
  --bg: #f8f9fa;
  --card: #ffffff;
  --text: #333;
  --text-muted: #666;
  --border: #e0e0e0;
  --surface: #eee;
  --shadow: rgba(0, 0, 0, 0.05);
  --btn-secondary-bg: #e0e0e0;
  --btn-secondary-text: #333;
  --role-admin-bg: #e3f2fd;
  --role-admin-text: #1565c0;
  --role-employee-bg: #f5f5f5;
  --role-employee-text: #757575;
  --logout: #d32f2f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #5ba3d9;
    --bg: #121218;
    --card: #1e1e2e;
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --border: #3a3a4a;
    --surface: #2a2a3a;
    --shadow: rgba(0, 0, 0, 0.3);
    --btn-secondary-bg: #2a2a3a;
    --btn-secondary-text: #e0e0e0;
    --role-admin-bg: #1a2a3f;
    --role-admin-text: #5ba3d9;
    --role-employee-bg: #2a2a3a;
    --role-employee-text: #a0a0a0;
    --logout: #ef5350;
  }
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.card {
  background: var(--card);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px var(--shadow);
  text-align: center;
  max-width: 600px;
  width: 100%;
}

h1 {
  color: var(--primary);
  margin-bottom: 24px;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.actions:last-child {
  margin-bottom: 0;
}

button {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: var(--card);
  cursor: pointer;
  font-weight: 600;
}

button.secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
}

#app-content,
#login-content {
  display: none;
}

#login-content p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.user-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}

.role-it_admin {
  background: var(--role-admin-bg);
  color: var(--role-admin-text);
}

.role-employee {
  background: var(--role-employee-bg);
  color: var(--role-employee-text);
}

.logout-btn {
  color: var(--logout);
  text-decoration: underline;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 13px;
  padding: 0;
  font-weight: normal;
}
