/* style.css */
:root {
  --bg-dark: #0f1720;
  --bg-light: #f9f9f9;
  --text-dark: #e6eef6;
  --text-light: #0f1720;
  --accent: #4a90e2;
  --muted: rgba(255,255,255,0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-dark);
  transition: background-color 0.25s, color 0.25s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(90deg, rgba(74,144,226,1) 0%, rgba(38,97,169,1) 100%);
  color: white;
}

header h1 { margin: 0; font-size: 1.1rem; }

#themeToggle {
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}

main {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem;
  flex: 1 1 auto;
  align-items: flex-start;
  justify-content: center;
}

#blueprint {
  flex: 1 1 60%;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 10px;
  min-width: 320px;
  max-width: 900px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.room {
  background: rgba(255,255,255,0.02);
  padding: 0.9rem;
  border-radius: 8px;
  position: relative;
  text-align: center;
  border: 1px solid var(--muted);
  box-shadow: 0 4px 10px rgba(2,6,23,0.4);
}

.room h3 { margin: 0 0 0.5rem 0; font-size: 1rem; }

.icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--accent);
  display: inline-block;
  margin: 6px;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.35);
}

.icon:hover { transform: scale(1.18); }

.icon.active {
  background-color: #00ff99 !important;
  box-shadow: 0 8px 18px rgba(0,255,153,0.12);
}

.hint { font-size: 0.85rem; color: rgba(255,255,255,0.45); margin-top: 0.75rem; }

#tasks {
  flex: 1 1 30%;
  background-color: rgba(255,255,255,0.02);
  padding: 1rem;
  border-radius: 10px;
  min-width: 260px;
  max-width: 420px;
  border: 1px solid var(--muted);
}

#taskForm {
  display: flex;
  gap: 0.5rem;
}

#taskInput {
  flex-grow: 1;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  color: inherit;
}

#taskForm button {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

#taskList {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  max-height: 60vh;
  overflow-y: auto;
}

#taskList li {
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#taskList li button {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
}

footer {
  text-align: center;
  padding: 0.9rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Light-mode tweaks */
body.light header { color: white; }
body.light .hint { color: rgba(0,0,0,0.6); }
body.light .room { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); box-shadow: none; }
body.light .icon { box-shadow: none; }
