/* ==============================
   RESET & BASE
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==============================
   THEMES
============================== */
.dark-theme {
  --bg: #121212;
  --text: #f1f1f1;
  --card-bg: #1e1e1e;
  --card-border: #333;
  --btn-bg: #2b2b2b;
  --btn-text: #fff;
  --accent:rgb(94, 211, 94);
}

.light-theme {
  --bg: #f9f9f9;
  --text: #222;
  --card-bg: #fff;
  --card-border: #ddd;
  --btn-bg: #eee;
  --btn-text: #000;
  --accent: rgb(94, 211, 94);
}

body {
  background: var(--bg);
  color: var(--text);
}

/* ==============================
   LOGIN
============================== */
.login {
  max-width: 350px;
  margin: 5rem auto;
  padding: 2rem;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.login h3 {
  margin-bottom: 1rem;
}

.login input {
  width: 100%;
  padding: 0.7rem;
  margin: 0.5rem 0;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.login button {
  width: 100%;
  padding: 0.7rem;
  margin-top: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-weight: bold;
  transition: 0.3s;
}

.login button:hover {
  opacity: 0.9;
}

/* ==============================
   HEADER
============================== */
header {
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

header .banner {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

header .subtitulo {
  font-size: 1.1rem;
  color: var(--accent);
}

/* ==============================
   INTRO
============================== */
.intro {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

/* ==============================
   DISCIPLINAS
============================== */
.disciplinas {
  padding: 2rem 1rem;
  text-align: center;
}

.disciplinas h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card h4 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.btn-card {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-card:hover {
  opacity: 0.9;
}

/* ==============================
   CONTATO
============================== */
.contato {
  padding: 2rem;
  text-align: center;
}

.contato ul {
  list-style: none;
  margin-top: 1rem;
}

.contato a {
  color: var(--accent);
  text-decoration: none;
}

.contato a:hover {
  text-decoration: underline;
}


/* ==============================
   BOTÃO DE TEMA
============================== */
.btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  display: none; /* escondido até login */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ==============================
   FOOTER
============================== */
footer {
  margin-top: auto;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
}

/* ==============================
   NOTAS PESSOAIS
============================== */
.notas {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.notas h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Barra de filtros */
.notas .filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.notas input,
.notas select {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

/* Lista de notas */
#noteList {
  list-style: none;
  display: grid;
  gap: 1rem;
}

/* Card de cada nota */
.note {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.note:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

.note h3 {
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 1.1rem;
}

.note p {
  margin-bottom: 0.5rem;
}

.note small {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Botões dentro da nota */
.note .actions {
  display: flex;
  gap: 0.5rem;
}

.note button {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.85rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.note .editBtn {
  background: var(--accent);
  color: #fff;
}
.note .editBtn:hover {
  opacity: 0.9;
}

.note .deleteBtn {
  background: #e74c3c;
  color: #fff;
}
.note .deleteBtn:hover {
  background: #c0392b;
}

/* Modal */
dialog {
  border: none;
  border-radius: 12px;
  padding: 1rem;
  width: 90%;
  max-width: 400px;
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

dialog::backdrop {
  background: rgba(0,0,0,0.6);
}

#noteForm {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

#noteForm input,
#noteForm textarea,
#noteForm select {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
}

#noteForm textarea {
  min-height: 100px;
  resize: vertical;
}

#noteForm menu {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

#noteForm button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

#saveNoteBtn {
  background: var(--accent);
  color: #fff;
}
#saveNoteBtn:hover {
  opacity: 0.9;
}

#cancelBtn {
  background: var(--btn-bg);
  color: var(--btn-text);
}
#cancelBtn:hover {
  background: #777;
}

/* Botão flutuante */
#addNoteBtn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 1rem 1.3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: 0.3s;
  z-index: 1000;
}

#addNoteBtn:hover {
  transform: scale(1.1);
}

/* ==============================
   NOTAS PESSOAIS
============================== */
.notas {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.notas h3 {
  margin-bottom: 1rem;
  color: var(--accent);
  text-align: center;
}

.filtros {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filtros input,
.filtros select {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

#noteList {
  list-style: none;
  display: grid;
  gap: 1rem;
  padding: 0;
}

.note {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.note h3 {
  margin-bottom: 0.5rem;
}

.note p {
  margin-bottom: 0.5rem;
}

.note small {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  color: gray;
}

.actions {
  display: flex;
  gap: 0.5rem;
}

.actions button {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.editBtn {
  background: var(--accent);
  color: #fff;
}

.deleteBtn {
  background: crimson;
  color: #fff;
}

.actions button:hover {
  opacity: 0.8;
}

/* Botão flutuante */
#addNoteBtn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.9rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: 0.3s;
}

#addNoteBtn:hover {
  transform: scale(1.05);
}

/* Modal */
dialog {
  border: none;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 400px;
  width: 100%;
  background: var(--card-bg);
  color: var(--text);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

#noteForm input,
#noteForm textarea,
#noteForm select {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
}

#noteForm textarea {
  min-height: 100px;
  resize: vertical;
}

#noteForm menu {
  display: flex;
  justify-content: space-between;
}

#noteForm button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

#cancelBtn {
  background: gray;
  color: #fff;
}

#saveNoteBtn {
  background: var(--accent);
  color: #fff;
}

/* ==============================
   FORMULÁRIO DE AVALIAÇÃO
============================== */
.avaliacao {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.avaliacao h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.4rem;
}

.avaliacao form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.avaliacao label {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.avaliacao input,
.avaliacao textarea {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
  resize: none;
}

.avaliacao textarea {
  min-height: 120px;
}

.avaliacao button {
  background: var(--accent);
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.avaliacao button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.import-export {
  margin: 10px 0;
  display: flex;
  gap: 10px;
}

.import-export button {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #444;
  color: #fff;
}

.import-export button:hover {
  background: #666;
}
/* ==== Calendário ==== */
.calendario {
  margin: 20px 0;
  padding: 20px;
  background: var(--bg2, #222);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.calendario table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}
.calendario th, .calendario td {
  border: 1px solid #555;
  text-align: center;
  padding: 8px;
}
.calendario .event-day {
  background: #ff9800;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
}
#eventForm input, #eventForm textarea, #eventForm button {
  margin: 5px 0;
  width: 100%;
  padding: 8px;
}
#eventList li {
  margin: 5px 0;
  padding: 8px;
  background: var(--bg, #333);
  border-radius: 6px;
}

/* ==== Checklist ==== */
.checklist {
  margin: 20px 0;
  padding: 20px;
  background: var(--bg2, #222);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
#taskForm input, #taskForm button {
  margin: 5px 0;
  padding: 8px;
}
#taskList li {
  margin: 5px 0;
  padding: 8px;
  background: var(--bg, #333);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#taskList li.done span {
  text-decoration: line-through;
  color: gray;
}
/* ==== Backup ==== */
.backup {
  margin: 20px 0;
  padding: 20px;
  background: var(--bg2, #222);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.backup button, .backup input {
  margin: 5px 0;
  padding: 10px;
  width: 100%;
}
