/* ==== ESTILOS GENERALES ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: #f5f6fa;
  color: #2f3640;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==== HEADER ==== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #40739e;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 1.5rem;
}

#versionSpan {
  font-size: 0.6rem;
  background: rgba(255,255,255,0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-left: 8px;
}

.darkModeButton {
  background: white;
  color: #40739e;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.darkModeButton:hover {
  background: #dcdde1;
}

/* ==== MAIN ==== */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: start;
  padding: 2rem;
}

/* ==== TASK MANAGER ==== */
.taskManagerDiv {
  background: white;
  width: 70%;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.taskManagerDiv h2 {
  margin-bottom: 1rem;
  color: #273c75;
}

/* ==== FORM ==== */
.formTaskManager {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.formTaskManager input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid #dcdde1;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}

.formTaskManager input:focus {
  border-color: #40739e;
}

.formTaskManager button {
  background: #40739e;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s;
}

.formTaskManager button:hover {
  background: #273c75;
}

/* ==== LISTA DE TAREAS ==== */
ul {
  list-style: none;
}

ul li {
  background: #f1f2f6;
  margin-bottom: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

ul li:hover {
  background: #dcdde1;
}

ul li button {
  background: transparent;
  border: none;
  color: #e84118;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
}

/* ==== DARK MODE ==== */
body.dark-mode {
  background: #2f3640;
  color: #f5f6fa;
}

body.dark-mode header {
  background: #434a5a;
}

body.dark-mode .taskManagerDiv h2 {
    color: white;
}

body.dark-mode .darkModeButton {
  background: #40739e;
  border: 1px solid #40739e;
  color: white;
}
body.dark-mode .darkModeButton:hover {
  background: #194f7c;
  border: 1px solid #053e6c;
}

body.dark-mode .taskManagerDiv {
  background: #434a5a;
  color: white;
}

body.dark-mode ul li {
  background: #718093;
}

body.dark-mode ul li button {
  color: white;
}
body.dark-mode ul li button:hover {
  color: rgb(253, 249, 191);
}

body.dark-mode ul li:hover {
  background: #636e72;
}