/* GLOBAL STYLES */
body {
  background-color: #0e0e0e;
  color: #f5e0b5;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  text-align: center;
  
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #c46a24;
  padding: 1.5rem 2rem;
  font-size: 2.2rem;         /* slightly bigger text */
  font-weight: bold;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 160px;             /* more room for taller logo */
}

.logo {
  height: 150px;             /* bump up logo size */
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}


/* MAIN CONTAINER */
#todo-container {
  margin: 3rem auto;
  width: 90%;
  max-width: 550px;
  background-color: #1c1c1c;
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* INPUTS */
input[type="text"],
input[type="datetime-local"] {
  padding: 0.5rem;
  border: none;
  border-radius: 8px;
  background-color: #333;
  color: #fff;
  margin: 0.3rem;
}

/* BUTTONS */
button {
  padding: 0.5rem 1rem;
  margin: 0.3rem;
  border: none;
  border-radius: 8px;
  background-color: #c46a24;
  color: black;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease; /* smooth hover */
}

/* Hover effect for all buttons */
button:hover {
  background-color: #a84f1c; /* darker orange */
  transform: scale(1.02);    /* slight pop effect */
}

/* TASK LIST */
ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  margin: 0.3rem 0;
  padding: 0.5rem;
  border-radius: 8px;
}

li.overdue span {
  color: #ff4d4d;
  font-weight: bold;
}

.delete-btn {
  background-color: #555;
  color: #fff;
  font-weight: bold;
}

.delete-btn:hover {
  background-color: #772020; /* red tint on delete */
}

.edit-btn {
  margin-left: 8px;
  background-color: transparent;
  border: none;
  color: #555;
  font-size: 1rem;
  cursor: pointer;
}

.edit-btn:hover {
  color: #d33;
}

/* ✨ Custom Edit Modal */
#edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-content {
  background: #1c1c1c;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  color: #f5e0b5;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.modal-content h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #f5e0b5;
}

.modal-content input {
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.6rem;
  border-radius: 8px;
  border: none;
  background: #333;
  color: #fff;
  font-size: 1rem;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.modal-buttons button {
  flex: 1;
  margin: 0 0.5rem;
  padding: 0.6rem;
  border-radius: 8px;
  background-color: #c46a24;
  color: black;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.modal-buttons button:hover {
  background-color: #a84f1c;
  transform: scale(1.02);
}

.hidden {
  display: none;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding: 1rem;
  font-size: 0.9rem;
  text-align: center;
  color: #f5e0b5;
  z-index: 5;
}


footer a {
  color: #c46a24;
  font-weight: bold;
  text-decoration: underline;
}

footer a:hover {
  color: #f5e0b5;
}

#mascot-container {
  position: fixed;
  bottom: 120px;   /* height from bottom */
  left: 100px;     /* move right (was 60px) */
  width: 120px;
  height: 120px;
  z-index: 10;
}

.mascot {
  width: 100%;
  height: auto;
  animation: mascotBlink 6s infinite;
}

@keyframes mascotBlink {
  0%, 90%, 100% {
    content: url("images/mascot.png");
  }
  95% {
    content: url("images/mascot2.png");
  }
}

#mascot-container {
  position: fixed;
  bottom: 120px;   /* height from bottom */
  left: 100px;     /* move right (was 60px) */
  width: 120px;
  height: 120px;
  z-index: 10;
}

#dottie-bubble {
  position: absolute;
  bottom: 130px;    /* brings bubble closer to her head */
  left: 80px;       /* lines bubble over her */
  background-color: #c46a24;
  color: #111;
  padding: 1rem 1.2rem;
  border-radius: 20px;
  width: 340px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#dottie-bubble::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 70px;
  border-width: 20px 20px 0;
  border-style: solid;
  border-color: #c46a24 transparent transparent transparent;
}

/* input inside bubble */
.dottie-input {
  width: 90%;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background-color: #333;
  color: #fff;
  outline: none;
}

.bubble-content {
  padding: 0.5rem 1rem;
}

#user-input {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 20px;
  padding: 8px 10px;
  outline: none;
}

.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: scale(0.95);
}

.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

#typing-indicator {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 10px;
  height: 20px;
}

#typing-indicator span {
  width: 6px;
  height: 6px;
  margin-right: 4px;
  background-color: #000;
  border-radius: 50%;
  opacity: 0.4;
  animation: blink 1.4s infinite both;
}

#typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

#typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% { opacity: 0.2; }
  20% { opacity: 1; }
  100% { opacity: 0.2; }
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #3a3a3a;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 5px;
}

.delete-btn {
  background: transparent;
  border: none;
  color: #ff6666;
  font-size: 18px;
  cursor: pointer;
  margin-left: 10px;
}

.delete-btn:hover {
  color: #ff2a2a;
}

li.done {
  text-decoration: line-through;
  opacity: 0.6;
}

.task-checkbox {
  margin-right: 10px;
  transform: scale(1.3);
  accent-color: #c46a24; /* keeps the Finlen orange */
}

li.done span {
  text-decoration: line-through;
  opacity: 0.6;
}

li.overdue span {
  color: #ff4d4d;
  font-weight: bold;
}

/* 🌍 Mobile-friendly view (does NOT affect desktop layout) */
@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
    padding: 0;
    margin: 0;
  }

  header {
    flex-direction: column;
    align-items: center;
    height: auto;
    text-align: center;
    padding: 1rem;
    gap: 0.5rem;
  }

  .logo {
    height: 100px;
    margin-bottom: 10px;
  }

  #todo-container {
    width: 90%;
    max-width: 400px;
    margin: 1rem auto;
    padding: 1rem;
  }

  input[type="text"],
  input[type="datetime-local"],
  button {
    width: 100%;
    box-sizing: border-box;
    margin: 0.3rem 0;
  }

  ul li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .delete-btn {
    align-self: flex-end;
  }

  #mascot-container {
    bottom: 70px;
    left: 20px;
    width: 90px;
    height: 90px;
  }

  #dottie-bubble {
    width: 250px;
    bottom: 160px;
    left: 10px;
    font-size: 0.9rem;
  }
}



