    :root {
      --bg: linear-gradient(135deg, #1a1a1a, #111);
      --glass-bg: rgba(255, 255, 255, 0.05);
      --accent: #4da6ff;
      --text: #e0e0e0;
      --text-muted: #bbb;
      --done: #888;
      --border: rgba(255, 255, 255, 0.15);
    }
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    body {
      /* Background image with subtle blue abstract shapes */
      background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1920&q=80') no-repeat center center fixed;
      background-size: cover;
      position: relative;
      min-height: 100vh;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
      padding: 0;
      /* fallback color */
      background-color: #1e2a3a;
    }

    body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 42, 58, 0.6);
  pointer-events: none;
  z-index: -1;
}
    .container {
      max-width: 480px;
      margin: 0 auto;
      backdrop-filter: blur(16px);
      background: var(--glass-bg);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 1.5rem;
      box-shadow: 0 4px 30px rgba(0,0,0,0.3);
      position: relative;
    }
    h1 {
      text-align: center;
      margin-bottom: 0.5rem;
    }
#list-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#list-title:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
    #title-input {
      width: 100%;
      padding: 0.5rem;
      font-size: 1.5rem;
      font-weight: bold;
      background: var(--glass-bg);
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--text);
      outline: none;
      margin-bottom: 1rem;
      text-align: center;
      backdrop-filter: blur(8px);
    }
    .input-row {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }
    .input-row input {
  flex: 1;
  padding: 0.5rem;
  border: 1.5px solid rgba(77, 166, 255, 0.4); /* softer blue with transparency */
  border-radius: 12px; /* slightly more rounded */
  background: var(--glass-bg);
  color: var(--text);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  outline: none;
}

.input-row button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  text-align: center;
  user-select: none;
}

.input-row button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.input-row button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

input::placeholder {
  opacity: 0.8;
  color: var(--text);
}
    ul {
      list-style: none;
    }
    li {
      background: var(--glass-bg);
      padding: 0.75rem;
      margin-bottom: 0.5rem;
      border-radius: 10px;
      border: 1px solid var(--border);
      backdrop-filter: blur(8px);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .item-content {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      cursor: pointer;
      flex: 1;
      color: var(--text);
      
    }
    .item-checkbox {
      font-size: 1.2rem;
      color: var(--accent);
      width: 1.5rem;
    }
    .item-text {
      transition: color 0.2s;
    }
li.done .item-text {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.75;
  font-style: italic;
}
    li button {
      background: transparent;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      font-size: 1rem;
    }
    li button:hover {
      color: var(--accent);
    }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  text-align: center;
  user-select: none;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}


#copy-msg {
  margin-top: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  text-align: center;
  user-select: none;
}

    #copy-msg.visible {
      opacity: 1;
      pointer-events: auto;
    }

    #share-section {
      margin-top: 1rem;
      text-align: center;
      display: none;
      flex-direction: column;
      gap: 1rem;
      align-items: center;
    }
    #share-link {
      display: none; /* hidden, we copy automatically */
    }
    #share-qr {
      width: 256px;
      height: 256px;
      background: transparent;
    }

    @media (min-width: 600px) {
      body {
        padding: 2rem;
      }
    }