:root {
  --bg-dark: #0d1117;
  --card-dark: rgba(22, 27, 34, 0.75);
  --text-dark: #f1f1f1;
  --bg-light: #f9fafb;
  --card-light: rgba(255, 255, 255, 0.8);
  --text-light: #111;
  --accent: #0078ff;
  --online: #2ecc71;
  --offline: #e74c3c;
  --blur: 12px;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--text-dark);
  transition: all 0.3s;
}

body.light {
  background: var(--bg-light);
  color: var(--text-light);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

#themeToggle {
  background: none;
  border: none;
  font-size: 1.4em;
  cursor: pointer;
  color: inherit;
  margin-right: 10px;
}

.icon-style-label {
  font-weight: 600;
  margin-right: 8px;
  user-select: none;
}

#iconStyleRange {
  vertical-align: middle;
  cursor: pointer;
  width: 100px;
}

.login-box {
  margin-top: 20px;
}

.login-box input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #222;
  color: white;
  width: 200px;
}

.login-box button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 10px;
}

.cancel-btn {
  background: #888;
}

.hidden {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  backdrop-filter: blur(var(--blur));
  background: var(--card-dark);
  border-radius: 15px;
  padding: 25px 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.3s;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

body.light .card {
  background: var(--card-light);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.icon {
  font-size: 2.8em;
  margin-bottom: 10px;
  user-select: none;
}

.status {
  font-weight: bold;
  user-select: none;
}

.online {
  color: var(--online);
}

.offline {
  color: var(--offline);
}

.emoji-icon {
  font-size: 3em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.favicon-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  pointer-events: none;
  user-select: none;
}

.error-msg {
  color: var(--offline);
  margin-top: 8px;
}

footer {
  margin-top: 50px;
  opacity: 0.6;
  font-size: 0.9em;
}
