/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  max-height: 60px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.hero {
  background: linear-gradient(135deg, #ffd700, #ffa500, #ffd700);
  color: #000; /* Changed from #fff to #000 */
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.cta {
  padding: 15px 30px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cta:hover {
  background: #f1f1f1;
}

.features {
  display: flex;
  justify-content: space-around;
  padding: 60px 20px;
  background: #f9f9f9;
}

.feature-card img {
  width: 80px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 1rem;
}

@font-face {
  font-family: 'RythmusRegular';
  src: url('/font/RythmusRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.hero {
  font-family: 'RythmusRegular', sans-serif;
}

/* Default styles for smaller screens */
.hero {
  padding: 10px 20px;
}

.hero h1 {
  font-size: 3rem;
}

.hero p {
  font-size: 1.5rem;
}

/* Double font size for medium and large screens */
@media (min-width: 768px) {
  .hero {
    padding: 20px 40px; /* Adjust padding for larger screens if needed */
  }

  .hero h1 {
    font-size: 4rem; /* Doubled from default size */
  }

  .hero p {
    font-size: 2rem; /* Doubled from default size */
  }
}

.dashboard-container {
  padding: 40px 20px;
  background: #f9f9f9;
}

.mood-entry {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mood-entry p {
  margin-bottom: 10px;
}

footer {
  background-color: #f8f8f8;
  padding: 20px 0;
  text-align: center;
}
footer ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
footer ul li {
  display: inline;
  margin: 0 10px;
}
footer ul li a {
  text-decoration: none;
  color: #6a89cc;
  transition: color 0.3s ease;
}
footer ul li a:hover {
  color: #5a79bc;
}

/* Toast notifications (success/error/info) */
.toast-container {
  position: fixed;
  top: 72px; /* below header/logo so it never blocks nav */
  right: 12px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(420px, calc(100vw - 24px));
  pointer-events: none; /* don't block page clicks */
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ffffff;
  color: #333;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  border-left: 4px solid #6a89cc;
  animation: toastIn 180ms ease-out;
}

.toast--success {
  border-left-color: #2e7d32;
}

.toast--error {
  border-left-color: #c62828;
}

.toast--info {
  border-left-color: #1565c0;
}

.toast__message {
  font-size: 0.95rem;
  line-height: 1.35;
  word-break: break-word;
}

.toast__close {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #666;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.toast__close:hover {
  color: #111;
}

.toast--hide {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 160ms ease-in, transform 160ms ease-in;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }
  .toast--hide {
    transition: none;
  }
}
