/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

/* Body */
body {
  background: #f7fff7;
  color: #063f08;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Auth container (login + signup) */
.auth-container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 320px;
  text-align: center;
}

.auth-container h1 {
  color: #1b8c24;
  margin-bottom: 1.2rem;
}

.auth-container input {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid #cce5cc;
  border-radius: 8px;
}

.auth-container input:focus {
  outline: none;
  border-color: #1b8c24;
  box-shadow: 0 0 6px rgba(27, 140, 36, 0.3);
}

.auth-container button {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.8rem;
  background: #1b8c24;
  border: none;
  color: white;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.auth-container button:hover {
  background: #15731d;
}

.auth-container a {
  color: #1b8c24;
  text-decoration: none;
}

.auth-container a:hover {
  text-decoration: underline;
}

#signupMessage, #loginMessage {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Dashboard layout */
.dashboard {
  background: white;
  width: 90%;
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dashboard h2 {
  margin-bottom: 1rem;
  color: #1b8c24;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1b8c24;
  padding: 1rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.navbar .nav-left,
.navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar a, .navbar button {
  color: white;
  text-decoration: none;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar button:hover, .navbar a:hover {
  text-decoration: underline;
}

.navbar img.profile-pic {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid white;
}

/* Footer (for version) */
.footer {
  text-align: right;
  margin-top: 2rem;
  color: #777;
  font-size: 0.85rem;
}
