:root {
  --primary-color: #4caf50;
  --secondary-color: #2196f3;
  --background-color: #1e1e1e;
  --text-color: #ffffff;
  --header-color: #333333;
  --danger-color: #bd1c37;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--background-color);
  color: var(--text-color);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-color);
  color: var(--text-color);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background-color: var(--text-color);
  margin-bottom: 5px;
  display: block;
  transition: 0.3s;
}

.nav-menu {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.nav-menu button {
  margin: 0 5px;
  background: var(--primary-color);
  border: none;
  color: var(--text-color);
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  border-radius: 4px;
  font-weight: 500;
}

.nav-menu button:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

main {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
  margin-bottom: 60px;
}

form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

input,
textarea {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-color);
}

button {
  background: var(--primary-color);
  border: none;
  color: var(--text-color);
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s, transform 0.2s;
}

button:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

button.selected {
  background: var(--secondary-color);
}

#map {
  height: 350px;
  margin-top: 1rem;
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

footer {
  background: var(--header-color);
  color: var(--text-color);
  text-align: center;
  padding: 1rem;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 999;
}

.notification-read {
  color: #888;
}

.notification-read::after {
  content: "✓✓";
  color: var(--secondary-color);
  margin-left: 5px;
}

.event-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  position: relative;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-info {
  width: 100%;
}

#qrcode {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  background-color: white;
  padding: 10px;
  border-radius: 4px;
}

button[onclick*="deleteEvent"] {
  background-color: var(--danger-color);
}

button[onclick*="logout"] {
  background-color: var(--secondary-color);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--header-color);
    width: 200px;
    padding: 1rem;
    flex-direction: column;
    border-radius: 0 0 0 8px;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu button {
    margin: 5px 0;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 10px;
    border-radius: 4px;
  }

  .nav-menu button:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  main {
    padding: 1rem;
  }

  .event-details {
    padding-top: 1rem;
  }

  #qrcode {
    position: static;
    margin-top: 2rem;
    margin-bottom: 1rem;
    width: auto;
    align-self: center;
  }

  .notifications-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  .clear-notifications-button {
    margin-top: auto;
    margin-bottom: 1rem;
  }
}

@media (min-width: 769px) {
  body {
    padding-top: 100px;
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
  }

  .nav-menu {
    display: flex;
    margin-top: 0;
  }

  .nav-menu button {
    margin: 0 5px;
  }

  #qrcode {
    transform: scale(0.7);
  }

  form {
    max-width: 400px;
  }

  button {
    padding: 10px 20px;
    font-size: 16px;
  }
}
