.profile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 999;
  transition: all 0.3s ease;
}

.profile-overlay.visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-popup {
  position: relative;
  width: 400px;
  background-color: var(--color-background-dark);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: hidden;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  /* border-bottom: 1px solid var(--color-border); */
}

.popup-header h2 {
  margin: 0;
  color: var(--color-text-white);
  font-size: 1.5rem;
}

.popup-content {
  padding: 1.5rem;
}

.info-group {
  margin-bottom: 1.5rem;
}

.info-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

.info-group p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-text-white);
}

.profile-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
}

.profile-actions a {
  text-decoration: none;
  color: var(--color-text-light);
}

.profile-actions:hover {
  background-color: var(--color-hover);
}

/* Icon button styles */
.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  transition: color 0.2s ease;
}

.icon-button:hover {
  color: var(--color-text-white);
}

/* Animation classes */
.profile-popup {
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile-overlay.visible .profile-popup {
  transform: scale(1);
  opacity: 1;
}

/* Profile Dropdown Styles */
.profile-item {
  position: relative;
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1.5rem);
  right: 0;
  width: 200px;
  background-color: var(--color-active);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow: hidden;
  transform-origin: top right;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  padding: 0.5rem;
}

.profile-dropdown.visible {
  display: block;
  transform: scale(1);
  opacity: 1;
}

.dropdown-item {
  padding: 0.75rem 0.75rem;
  color: var(--color-text-white);
  transition: background-color 0.2s ease;
  border-radius: 6px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

#dropdown-divider {
  margin: 0.5rem 0;
  border: none;
  border-top: 1px solid var(--color-primary-light);
}

.dropdown-item.settings-item::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z' /%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.dropdown-item.logout-item::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15M12 9l-3 3m0 0l3 3m-3-3h12.75' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.dropdown-item.settings-item:hover,
.dropdown-item.logout-item:hover {
  background-color: var(--color-hover);
}

.dropdown-item a {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
}

/* Settings Overlay Styles */
.settings-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 1001;
  transition: all 0.3s ease;
}

.settings-overlay.visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-popup {
  position: relative;
  width: 800px;
  height: 600px;
  background-color: var(--color-background-dark);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  z-index: 1002;
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.settings-overlay.visible .settings-popup {
  transform: scale(1);
  opacity: 1;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-divider-light);
  width: 92%;
  margin: 0 auto;
}

.popup-header h2 {
  margin: 0;
  color: var(--color-text-white);
  font-size: 1.5rem;
}

.settings-container {
  display: flex;
  height: calc(100% - 73px);
}

/* Settings Menu Styles */
.settings-menu {
  width: 240px;
  padding: 1rem 0.5rem;
  background-color: var(--color-background-dark);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--color-text-light);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.menu-item svg {
  flex-shrink: 0;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-white);
}

.menu-item.active {
  background-color: var(--color-hover);
  color: var(--color-text-white);
}

/* Settings Content Styles */
.settings-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.settings-section {
  display: none;
  max-width: 400px;
}

.settings-section.active {
  display: block;
}

.settings-divider {
  border: 1px solid var(--color-text-light);
  margin: 1.5rem 0;
}

.info-group {
  margin-bottom: 1.5rem;
}

.info-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
  font-size: 1rem;
}

.info-group p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-white);
}

.coming-soon {
  color: var(--color-text-light);
  font-style: italic;
  font-size: 1rem;
}

.logout-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-background-dark);
  color: var(--color-text-white);
  border: 1px solid var(--color-text-light);
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.logout-button:hover:hover {
  background-color: var(--color-hover);
}



/* Icon button styles */
.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  transition: color 0.2s ease;
}

.icon-button:hover {
  color: var(--color-text-white);
}

@media screen and (max-width: 768px) {
  .settings-popup {
    width: 95vw;
    height: 90vh;
  }

  .settings-container {
    flex-direction: column;
  }

  .settings-menu {
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding: 0.5rem;
  }

  .menu-item {
    white-space: nowrap;
  }

  .profile-popup {
    width: 95vw;
    max-width: none;
  }
}


