/* base styling for the entire page */
body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #eef2f7, #f8f9fb);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* underline and center all main headings */
h1, h2, h3 {
  text-decoration: underline;
  text-align: center;
}

/* login card styling */
#login {
  width: 360px;
  margin: 120px auto;
  padding: 32px;

  background-color: #ffffff;
  border-radius: 12px;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);

  animation: fadeInUp 0.5s ease;
}

/* hide dashboard and tasks initially
   (they appear only after login via JS) */
#dashboard,
#tasks {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px;

  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);

  animation: fadeInUp 0.4s ease;
}

/* input fields and dropdown styling */
input, select {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  font-size: 14px;
  border: 1.5px solid #333;
  border-radius: 4px;
}

/* button styling */
button {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;

  border-radius: 8px;
  border: 1.5px solid #d0d5dd;

  background-color: #ffffff;
  cursor: pointer;

  transition: all 0.2s ease;
}

button:hover {
  background-color: #f2f4f7;
  transform: translateY(-1px);
}

#assignTaskBtn {
  background-color: #2563eb;
  color: white;
  border: none;
}

#assignTaskBtn:hover {
  background-color: #1d4ed8;
}

/* google Sign-In button (official style) */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: 100%;
  padding: 10px 14px;

  background-color: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 4px;

  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #3c4043;

  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* google icon */
.google-btn img {
  width: 18px;
  height: 18px;
}

/* hover effect */
.google-btn:hover {
  background-color: #f7f8f8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* active click effect */
.google-btn:active {
  background-color: #eeeeee;
}

/* individual task container */
.task {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;
  margin-top: 12px;

  background-color: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 10px;

  transition: background-color 0.2s ease;

  justify-content: space-between;
}

.task:hover {
  background-color: #f4f6f8;
}

/* ✅ FIX: allow title + badge wrapper to grow properly */
.task > div {
  flex: 1;
  min-width: 0;
}

.completed {
  text-decoration: line-through;
  color: gray;
}

#logoutBtn {
  width: auto;
  padding: 8px 16px;
  font-size: 14px;

  border: 2px solid #c0392b;
  color: #c0392b;
  background-color: white;

  margin-bottom: 10px;
}

#logoutBtn:hover {
  background-color: #fdecea;
}

#taskCounters {
  text-align: center;
  margin-bottom: 15px;
  font-weight: 500;
  color: #555;
}

/*   == task status badges ==   */
.status-badge {
  margin-left: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  display: inline-block;
  flex-shrink: 0;
}

.status-badge.pending {
  background-color: #facc15; /* yellow */
  color: #000;
}

.status-badge.done {
  background-color: #22c55e; /* green */
}

/* progress bar */
#progressWrapper {
  width: 100%;
  height: 12px;
  background-color: #e5e7eb;
  border-radius: 6px;
  margin: 15px 0;
  overflow: hidden;
}

#progressBar {
  height: 100%;
  width: 0%;
  background-color: #22c55e;
  transition: width 0.4s ease;
}
