html,
body {
  height: 100%;
  margin: 0;
  font-family: sans-serif;
  background-color: #f4f4f4;
  position: relative; /* Needed for absolute positioning context if menu isn't fixed */
}

* {
  box-sizing: border-box;
}

#menuContainer {
  position: fixed; /* Or absolute if relative to body is enough */
  top: 10px;
  right: 10px;
  z-index: 1000; /* Ensure it's on top */
}

#menuButton {
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 1.5em; /* Make icon larger */
  line-height: 1; /* Adjust line height for icon */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#menuButton:hover {
  background-color: #f0f0f0;
}

.dropdown-content {
  display: none; /* Hidden by default */
  position: absolute;
  right: 0; /* Align to the right of the container */
  top: 100%; /* Position below the button */
  background-color: #f9f9f9;
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 4px;
  margin-top: 5px; /* Small gap between button and dropdown */
}

.dropdown-content button {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.95em;
}

.dropdown-content button:hover {
  background-color: #ddd;
}

.dropdown-content.show {
  display: block;
}

.container {
  padding: 20px;
  display: flex; /* Using flex to center its content */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Ensure container takes full height for centering */
  text-align: center;
}

#actionButton {
  padding: 15px 30px;
  font-size: 1.2em;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-bottom: 15px; /* Add some space below */
}
#actionButton:hover:not(:disabled) {
  background-color: #0056b3;
}
#actionButton:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.status {
  margin-top: 25px;
  min-height: 40px; /* Reserve space */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px; /* Add space below status */
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.icon {
  font-size: 2em;
}
.success {
  color: green;
}
.error {
  color: red;
}
