/* Reset some default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #494949; /* Slightly lighter purple */
  color: white;
  width: 100%;
  margin: 0;
}

/* Toolbar */
.toolbar {
  background-color: #3f3f3f; /* Dark purple */
  width: 100%;
  padding: 10px 0;
}

/* Toolbar content container with flex alignment */
.toolbar-content {
  max-width: 70%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .toolbar-content {
    max-width: 100%;
    padding: 0 16px;
  }
}

/* Toolbar left */
.toolbar-left {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Toolbar right menu */
.toolbar-right .menu {
  list-style: none;
  display: flex;
}

.toolbar-right .menu li {
  margin-left: 20px;
}

.toolbar-right .menu li a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.toolbar-right .menu li a:hover {
  color: #ddd;
}

/* New Account Section */
.toolbar-account {
  position: relative;
  margin-left: 20px;
}

.account-img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  cursor: pointer;
  object-fit: cover;
}

/* Account overlay menu */
.account-overlay {
  position: absolute;
  top: 50px;
  right: 0;
  background-color: #fff;
  color: #000;
  width: 160px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: none;
  z-index: 100;
}

.account-overlay.active {
  display: block;
}

.account-overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.account-overlay li {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.account-overlay li:last-child {
  border-bottom: none;
}

.account-overlay li:hover {
  background-color: #f0f0f0;
}

/* Special styling for the account name and sign out option */
.account-overlay .account-name {
  font-weight: bold;
  cursor: default;
}

.account-overlay .sign-out {
  color: red;
}

/* Responsive adjustments for mobile toolbar menu */
@media (max-width: 768px) {
  .toolbar-right .menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .toolbar-right .menu li {
    margin: 10px;
  }
}
