:root {
  --bg-1: #0f1724;
  --bg-2: #15335a;
  --card-bg: rgba(255, 255, 255, 0.9);
  --accent-1: #6c5ce7;
  --accent-2: #00b4d8;
  --muted: #6b7280;
  --glass: rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  color: #0b1220;
  -webkit-font-smoothing: antialiased;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Títulos */
h2, h3 {
  color: #f8fafc;
  margin: 0 0 20px 0;
  font-weight: 600;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  text-align: center;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 20px;
  margin-top: 40px;
}

/* Formulário */
#formCadastro {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(250,250,250,0.88));
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(2,6,23,0.5);
  max-width: 720px;
  width: 100%;
  margin: 0 auto 28px auto;
  backdrop-filter: blur(6px);
}

#formCadastro input[type="text"],
#formCadastro textarea {
  width: 100%;
  padding: 12px 14px;
  margin: 8px 0 12px 0;
  border-radius: 10px;
  border: 1px solid #e6e9ef;
  font-size: 14px;
  outline: none;
  transition: box-shadow 160ms ease, border-color 160ms ease;
  background: #fff;
  color: #0b1220;
}

#formCadastro textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.4;
}

#formCadastro ::placeholder {
  color: #9aa3b2;
}

#formCadastro input:focus, 
#formCadastro textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 6px 20px rgba(108,92,231,0.08);
}

/* Botões */
#formCadastro button {
  border: 0;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
  margin-right: 8px;
}

#formCadastro button[type="submit"] {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: white;
  box-shadow: 0 8px 20px rgba(12,18,45,0.25);
}

#cancelarBtn {
  background: transparent;
  color: var(--accent-1);
  border: 2px solid rgba(108,92,231,0.12);
  padding: 8px 12px;
}

#formCadastro button[type="submit"]:hover {
  transform: translateY(-3px);
}

#cancelarBtn:hover {
  background: rgba(108,92,231,0.04);
}

/* Lista de notas */
#listaNotas {
  list-style: none;
  padding: 0;
  margin: 20px auto 60px auto;
  max-width: 900px;
  width: 100%;
  display: block; /* agora vertical */
}

#listaNotas li {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.95));
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px; /* separação entre notas */
  box-shadow: 0 8px 18px rgba(2,6,23,0.35);
  font-size: 14px;
  color: #0b1220;
  display: flex;
  flex-direction: column;
  gap: 10px;
  word-break: break-word;
}

#listaNotas li button {
  border: 0;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
  margin-right: 6px;
}

#listaNotas li button:first-of-type {
  background: transparent;
  color: var(--accent-1);
  border: 1px solid rgba(108,92,231,0.14);
}

#listaNotas li button:last-of-type {
  background: linear-gradient(90deg, #ff6b6b, #ff3b30);
  color: white;
}

#listaNotas li button:hover {
  transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 900px) {
  body {
    padding: 26px 14px;
  }
  #formCadastro {
    padding: 16px;
  }
}

@media (max-width: 560px) {
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 16px;
  }
  #formCadastro {
    border-radius: 12px;
  }
}
