body {
  background-color: #0d0d0d;
  color: #f1c40f;
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Auth form */
.auth-input {
  width: 100%;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}

.auth-button {
  width: 100%;
  margin-bottom: 0.5rem;
}

h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

/* Input & Add button */
input {
  padding: 0.5rem 1rem;
  border: 2px solid #f1c40f;
  border-radius: 4px;
  background: transparent;
  color: #f1c40f;
  margin-right: 0.5rem;
  font-size: 1rem;
}

input::placeholder {
  color: #f1c40f88;
}

button {
  padding: 0.5rem 1rem;
  border: none;
  background-color: #f1c40f;
  color: #0d0d0d;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out,
    filter 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

button:hover {
  background-color: #ffd700;
}

/* Task list */
ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  width: 100%;
  max-width: 400px;
}

li {
  background-color: #1a1a1a;
  border: 1px solid #f1c40f22;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  border-radius: 4px;
}

li input[type="checkbox"] {
  margin-right: 0.5rem;
}

input[type="checkbox"] {
  accent-color: #f1c40f;
}

/* footer padrão (desktop/tablet) */
.footer {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;
  margin: 1rem auto;
  box-sizing: border-box;
}

/* mobile ou PWA standalone: fixa no rodapé */
@media (max-width: 768px), (display-mode: standalone) {
  .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
    padding: 0.75rem;
    background-color: #0d0d0d;
    border-top: 1px solid #333;
    margin: 0;
    z-index: 1000;
  }
}

.tabs-track {
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #f1c40f #0d0d0d;
}

.tabs-track::-webkit-scrollbar {
  height: 6px;
}
.tabs-track::-webkit-scrollbar-track {
  background: #0d0d0d;
}
.tabs-track::-webkit-scrollbar-thumb {
  background: #f1c40f;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(241, 196, 15, 0.35);
}

.tab-button,
.new-tab-button {
  position: relative;
  overflow: hidden;
}

.tab-button::after,
.new-tab-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(241, 196, 15, 0.35),
    rgba(241, 196, 15, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.12s ease;
}

.tab-button:hover::after,
.new-tab-button:hover::after {
  opacity: 1;
}

/* Botões icônicos */
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffd700;
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.icon-button:hover {
  filter: brightness(1.05);
}

/* Variante invertida (logout) */
.icon-button--inverted {
  background: transparent;
  color: #f1c40f;
  border: 2px solid #f1c40f;
}
.icon-button--inverted:hover {
  background: #f1c40f;
  color: #000;
  border-color: #f1c40f;
}

/* About key/value list */
.about-kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 12px;
  margin-top: 6px;
}
.about-kv .k {
  color: #f1c40fcc;
  text-align: right;
  padding-right: 6px;
}
.about-kv .v {
  color: #fff;
}

/* Password strength meter */
.pw-meter {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 6px 0 6px;
  width: 100%;
}
.pw-meter span {
  height: 10px;
  border-radius: 999px;
  background: #2a2a2a;
  box-shadow: inset 0 0 0 1px #000;
  opacity: 0.5;
}
.pw-meter span.on:nth-child(1) {
  background: #ff4d4f;
  opacity: 1;
}
.pw-meter span.on:nth-child(2) {
  background: #f1c40f;
  opacity: 1;
}
.pw-meter span.on:nth-child(3) {
  background: #2ecc71;
  opacity: 1;
}

/* Hint abaixo do medidor */
.pw-hint {
  margin-top: -2px;
  margin-bottom: 0.5rem;
  font-size: 12px;
  color: #fff;
  opacity: 0.9;
}
.pw-hint b {
  color: #ffd700;
}
