* { box-sizing: border-box; margin:0; padding:0; font-family: 'Poppins', sans-serif; }
body, html { height: 100%; background-color: white; }

.container { display: flex; height: 100vh; width: 100%; }
.left { width: 50%; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.logo { font-family: 'Comic Sans MS', cursive; font-weight:700; font-size:2.8rem; margin-bottom:40px; display:flex; align-items:center; gap:20px; color:black; }
.logo img { width:100px; height:100px; object-fit:cover; border-radius:50%; border:2px solid #ccc; }
h2 { font-size:2rem; margin-bottom:10px; }
p { color:#666; margin-bottom:30px; }
label { font-weight:500; display:block; margin-bottom:5px; }
input { width:100%; padding:12px; margin-bottom:10px; border:1px solid #ccc; border-radius:6px; font-size:1rem; }
.options { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; font-size:0.9rem; }
.options a { color:#6d28d9; text-decoration:none; }
.options input { width:auto; margin-right:5px; }
.btn { width:100%; background-color:#6d28d9; color:white; border:none; padding:12px; border-radius:6px; font-size:1rem; cursor:pointer; margin-bottom:10px; }
.btn:hover { background-color:#5b21b6; }
.google-btn { width:100%; margin-top:5px; border:1px solid #ccc; border-radius:6px; padding:12px; background-color:white; cursor:pointer; font-size:1rem; display:flex; align-items:center; justify-content:center; }
.google-btn img { width:18px; vertical-align:middle; margin-right:8px; }
.signup { text-align:center; margin-top:15px; font-size:0.9rem; }
.signup a { color:#6d28d9; text-decoration:none; }
.right { width:50%; height:100%; overflow:hidden; }
.right img { width:100%; height:100%; object-fit:cover; display:block; }
.password-container { position: relative; }
.password-container img { width:25px; height:25px; position:absolute; right:10px; top:50%; transform:translateY(-50%); cursor:pointer; }
.warning { color:red; font-size:0.9rem; margin-top:5px; }

/* To Do app styles */
#todoApp { display:none; padding:30px; width:100%; height:100vh; background:#f0f0f0; overflow-y:auto; }
#todoApp h1 { color:#6d28d9; margin-bottom:20px; }

#todoForm { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; align-items:center; }
#todoForm input, #todoForm select { padding:10px; font-size:1rem; border:1px solid #ccc; border-radius:5px; }
#todoForm button { padding:10px 15px; border:none; border-radius:5px; cursor:pointer; }
#addTodo { background:#6d28d9; color:white; }
#addTodo:hover { background:#5b21b6; }
#logoutBtn { background:#ff6600; color:white; }
#logoutBtn:hover { background:#e65c00; }

#todoList { list-style:none; padding-left:0; }
#todoList li { padding:10px; background:white; border-radius:5px; margin-bottom:10px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
.taskSummary { flex:1; }
.deleteBtn { background:red; color:white; border:none; border-radius:5px; padding:5px 10px; cursor:pointer; }

@media (max-width:900px) { .container { flex-direction:column; } .left,.right { width:100%; height:auto; padding:40px; } .right { display:none; } }
 


/* --- Professional Delete Popup --- */
.popupOverlay {
  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: 9999;
}

.popupBox {
  background: white;
  padding: 25px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
}

.popupBox h3 {
  color: #d11a2a;
  margin-bottom: 10px;
}

.popupBox p {
  margin-bottom: 20px;
  color: #444;
}

.popupButtons button {
  padding: 8px 15px;
  margin: 0 8px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#confirmDelete {
  background-color: #e63946;
  color: white;
}

#cancelDelete {
  background-color: #ccc;
  color: black;
}


#cancelDelete:hover { background-color: #b1b1b1; }

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Toast Notification --- */
.toastMessage {
  position: fixed;
  bottom: 20px;
  right: -300px;
  background: #6d28d9;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-weight: 500;
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 10000;
}

.toastMessage.show {
  right: 20px;
  opacity: 1;
}

/* --- Task Delete Animation --- */
.fadeOut {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.3s ease;
}



/* Delete Button (Dustbin Icon) */
.deleteBtn {
  background: none;          /* Removes red background */
  border: none;              /* Removes red border */
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.deleteBtn img {
  width: 20px;
  height: 20px;
  filter: grayscale(100%);   /* Makes the icon gray */
  transition: filter 0.3s ease, transform 0.3s ease;
}

.deleteBtn:hover img {
  filter: grayscale(0%) brightness(0.6);  /* Slight darker hover effect */
  transform: scale(1.1);                  /* Grows slightly when hovered */
}



/* Description textarea auto-expand */
#todoForm textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: none;
  width: 100%;
  transition: all 0.2s ease;
}

#todoForm textarea:focus {
  border-color: #6d28d9;
  box-shadow: 0 0 5px rgba(109, 40, 217, 0.3);
}
