@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap');

body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  background-color: #fdf0e7;
  color: #333;
  background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
}

/* Navigation bar */
nav {
  background-color: #a3d2ca;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

nav .logo {
  font-weight: 700;
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #2f4f4f; /* dark slate green */
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

nav ul li a:hover {
  opacity: 0.8;
}

nav .logo a {
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  color: #2f4f4f; /* your preferred dark slate green */
}

nav .logo a:hover {
  opacity: 0.8;
}

.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Headings */
h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #444;
  text-align: center;
}

/* Paragraphs */
p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #555;
}

/* Features on homepage */
ul.features {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
}

ul.features li {
  background-color: #fdfaf6;
  padding: 1rem;
  border-left: 5px solid #a3d2ca;
  margin-bottom: 1rem;
  border-radius: 10px;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

ul.features li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

/* CTA button on homepage */
.cta {
  text-align: center;
  margin-top: 2rem;
}

.cta a {
  background-color: #fdfaf6;
  color: #2f4f4f;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #2f4f4f;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.cta a:hover {
  background-color: #2f4f4f;
  color: white;
}

/* Form Labels */
form label {
  font-weight: 600;
  display: block;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Inputs and Textarea */
input[type="date"],
textarea,
#filter-habit {
  width: 100%;
  padding: 0.8rem;
  font-size: 1.05rem;
  line-height: 1.6;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-sizing: border-box;
  background: #fdfaf6;
  transition: border-color 0.3s;
}

input[type="date"]:focus,
textarea:focus {
  outline: none;
  border-color: #a3d2ca;
  background-color: #fff;
}

textarea {
  min-height: 300px;
  resize: vertical;
}

/* Journal Save Button */
form button {
  display: block;
  width: 100%;
  padding: 1rem;
  margin-top: 1.5rem;
  background-color: #a3d2ca;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #7fb8ae;
}

/* Affirmation text after submission */
.affirmation {
  text-align: center;
  margin-top: 1.5rem;
  font-style: italic;
  color: #557a95;
}

nav {
  background-color: #a3d2ca;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

nav .logo {
  font-weight: 700;
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav ul li a:hover {
  opacity: 0.8;
}


.login-container {
  max-width: 500px;
  margin: 6rem auto;
  padding: 3rem;
  text-align: center;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.login-container h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.login-container p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #666;
}

.g_id_signin {
  margin: 0 auto;
  display: inline-block;
}

.logo-emoji {
  font-size: 2.5rem;
}

/* --- TO-DO LIST STYLES --- */
.todo-container {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.todo-container h1 {
  text-align: center;
  color: #2f4f4f;
}

/* Form with input + small add button */
.todo-form {
  margin-bottom: 2rem;
}

.input-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch; /* Changed from center to stretch */
}

.input-row input {
  flex: 1;
  height: 52px;
  padding: 0 1rem;
  font-size: 1.05rem;
  line-height: 1;
  border-radius: 12px;
  border: 1px solid #ccc;
  background-color: #fdfaf6;
  box-sizing: border-box;
  margin: 0;
}

.input-row button {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  font-size: 1.5rem;
  background-color: #2f4f4f;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  margin: 0; /* Added explicit margin: 0 */
  padding: 0; /* Added explicit padding: 0 */
}

.input-row button:hover {
  background-color: #264653;
}

/* Task list items */
ul.todo-list {
  list-style: none;
  padding: 0;
}

ul.todo-list li {
  background-color: #fdfaf6;
  padding: 0.8rem 1rem;
  border-left: 4px solid #a3d2ca;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.todo-list button {
  background: transparent;
  border: none;
  color: #a94442;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

nav ul li.dropdown {
  position: relative;
}

nav ul li .dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 6px 12px rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 0.5rem 0;
  top: 100%;
  left: 0;
  z-index: 10;
}

nav ul li .dropdown-content li {
  padding: 0.5rem 1rem;
}

nav ul li .dropdown-content li a {
  color: #2f4f4f;
  text-decoration: none;
  font-weight: 500;
  display: block;
  transition: background-color 0.2s;
}

nav ul li .dropdown-content li a:hover {
  background-color: #f3f3f3;
}

/* Show dropdown on hover */
nav ul li.dropdown:hover .dropdown-content {
  display: block;
}

.nav-links:not(.active) .dropdown:hover > .dropdown-content {
  display: block;
}




.streak-tracker {
  margin-top: 2rem;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 12px;
  justify-content: center;
  margin-top: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.day-box {
  aspect-ratio: 1 / 1; /* keep squares */
  width: 100%;
  max-width: 60px;
  border-radius: 12px;
  background-color: #f0f0f0;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #999;
  transition: transform 0.2s ease;
}

.day-box.filled {
  background-color: #2f4f4f;
  color: white;
  border-color: #2f4f4f;
}

.day-box:hover {
  transform: scale(1.05);
}

.streak-subtext {
  text-align: center;
  font-size: 1.1rem;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
  color: #555;
}

/* Journal filter style */
.show-all-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  margin-top: 1.5rem;
  background-color: #a3d2ca;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.show-all-btn a:hover {
  background-color: #2f4f4f;
  color: white;
}

.buttons-container {
  display: flex;
  flex-direction: row;
  gap: 2%;
}

/* Habit filter style */
#filter-habit {
  font-family: "Quicksand";
}


/* Mobile Nav Styling */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #2f4f4f;
  cursor: pointer;
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #a3d2ca;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    display: none;
    padding: 2rem 0;
    z-index: 99;
  }

  nav ul.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  nav ul li {
    text-align: center;
  }

  nav ul li .dropdown-content {
    position: static;
    box-shadow: none;
    padding: 0;
    background: none;
  }

  nav ul li.dropdown:hover .dropdown-content {
    display: none; /* disable hover dropdown */
  }

  nav ul li.dropdown .dropdown-content {
    display: none;
  }

  nav ul li.dropdown.active .dropdown-content {
    display: block;
  }
}

/* Smaller tweaks for mobile */
@media (max-width: 500px) {
  h1 {
    font-size: 2rem;
  }

  .container, .todo-container, .login-container {
    margin: 1rem;
    padding: 1.5rem;
  }

  .input-row {
    flex-direction: column;
  }

  .input-row button {
    width: 100%;
    height: 48px;
  }
}
