* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f9;
  color: #333;
  padding: 20px;
}

.container {
  max-width: 900px;
  background: #fff;
  padding: 30px;
  margin: 40px auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 12px;
}

h1, h2, h3 {
  color: #2c89a3;
  margin-bottom: 20px;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="range"],
textarea,
select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

button {
  background-color: #2c89a3;
  color: white;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #226f84;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  background-color: #e9f0f5;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}

nav ul li a {
  text-decoration: none;
  font-weight: bold;
  color: #2c89a3;
  transition: color 0.2s ease;
}

nav ul li a:hover {
  color: #145d6e;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

a {
  color: #2c89a3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  background-color: #f0f0f0;
  border-bottom: 1px solid #ddd;
  border-radius: 15px;
}

.logo img {
  height: 40px;
  width: auto;
}

.user-dropdown {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.user-dropdown .user-name {
  font-weight: 500;
  margin-right: 10px;
  color: #2c89a3;
}

.user-dropdown .dropdown-icon {
  font-size: 20px;
}

.user-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 99;
  min-width: 120px;
}

.dropdown-menu a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
}

.dropdown-menu a:hover {
  background-color: #f2f2f2;
}

/* MOBILE */
@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  .user-dropdown {
    margin-top: 10px;
  }

  .auth-container {
    width: 95%;
    padding: 20px;
  }

  .logo img {
    height: 35px;
  }

  .theme-toggle {
    margin-top: 10px;
  }

  .dashboard-content,
  .mood-tracker,
  .subscription-box {
    width: 100%;
    padding: 10px;
  }

  input, button {
    font-size: 16px;
  }

  .chart-container canvas {
    width: 100% !important;
    height: auto !important;
  }
}

/* TABLET */
@media (min-width: 601px) and (max-width: 992px) {
  .top-bar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .auth-container {
    width: 80%;
  }

  .dashboard-content {
    padding: 20px;
  }
}