body {
  font-family: Arial, sans-serif;
  background: #fff6fa;
  margin: 0;
  padding: 0;
  color: #2f4f3f;
}

/* Smooth interactions globally */
* {
  transition: all 0.2s ease-in-out;
}

.container {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
}

h1 {
  text-align: center;
  font-size: 3rem;
  color: #d96c93;
  margin-bottom: 10px;
}

.tagline {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #4a5f54;
}

.hidden {
  display: none;
}

.auth-section {
  margin-bottom: 40px;
}

.auth-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.auth-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.auth-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.auth-card h2 {
  text-align: center;
  color: #3d5b4f;
  margin-bottom: 18px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form input,
.auth-form button {
  width: 100%;
  box-sizing: border-box;
}

.auth-message {
  text-align: center;
  margin-top: 18px;
  color: #c75b82;
  font-weight: bold;
}

.user-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 16px 20px;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  gap: 12px;
  transition: all 0.3s ease;
}

.user-bar:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

#user-email {
  margin: 0;
  font-weight: bold;
  color: #4a5f54;
}

.form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

input,
select,
button {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d8c7cf;
  font-size: 1rem;
}

/* Input focus animation */
input,
select {
  transition: all 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: #d96c93;
  box-shadow: 0 0 0 3px rgba(217, 108, 147, 0.2);
}

input {
  width: 220px;
}

/* Button animations */
button {
  background-color: #d96c93;
  color: white;
  border: none;
  cursor: pointer;
  transform: translateY(0);
  transition: all 0.25s ease;
}

button:hover {
  background-color: #c75b82;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 18px rgba(217, 108, 147, 0.25);
}

button:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.routines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  justify-items: center;
}

.routine {
  background: white;
  width: 100%;
  max-width: 400px;
  min-height: 250px;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.routine:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.routine.morning {
  border-left: 5px solid #ffd700;
  background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.routine.night {
  border-left: 5px solid #4a90e2;
  background: linear-gradient(135deg, #e6f3ff 0%, #ffffff 100%);
}

.routine h2 {
  text-align: center;
  color: #3d5b4f;
  margin-bottom: 20px;
}

ul {
  padding: 0;
}

li {
  list-style: none;
  background: #fdf1f5;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

li:hover {
  background: #fce4ec;
  transform: translateX(4px);
}

li span {
  flex: 1;
  text-align: left;
}

.actions {
  display: flex;
  gap: 6px;
}

.actions button {
  padding: 8px 10px;
  font-size: 0.9rem;
}

/* Optional fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  .auth-cards {
    grid-template-columns: 1fr;
  }

  .form {
    flex-direction: column;
    align-items: center;
  }

  .routines {
    grid-template-columns: 1fr;
  }

  .routine {
    max-width: 100%;
  }

  .user-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  input {
    width: 100%;
    max-width: 300px;
  }
}
/* ================= DARK MODE ================= */

.dark {
  background: #1e1e1e;
  color: #f5f5f5;
}

/* Main containers */
.dark .container {
  background: transparent;
}

/* Cards */
.dark .auth-card,
.dark .routine,
.dark .user-bar {
  background: #2a2a2a;
  color: #f5f5f5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Headings */
.dark h1 {
  color: #ff9fc0;
}

.dark .tagline,
.dark #user-email {
  color: #d3d3d3;
}

/* Inputs */
.dark input,
.dark select {
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #555;
}

.dark input:focus,
.dark select:focus {
  border-color: #ff9fc0;
  box-shadow: 0 0 0 3px rgba(255, 159, 192, 0.25);
}

/* Buttons */
.dark button {
  background-color: #ff9fc0;
  color: #1e1e1e;
}

.dark button:hover {
  background-color: #ff85b0;
}

/* List items */
.dark li {
  background: #333;
}

.dark li:hover {
  background: #3d3d3d;
}

/* Morning / Night cards (adjust tones) */
.dark .routine.morning {
  background: linear-gradient(135deg, #3a3520 0%, #2a2a2a 100%);
}

.dark .routine.night {
  background: linear-gradient(135deg, #1f2d3d 0%, #2a2a2a 100%);
}