/* Container for the buttons, positioned at the top-left */
.button-container {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 20px;
  z-index: 1000;
}

/* Base style for each button */
.button {
  width: 50px;
  height: 50px;
  background-color: #00447E;
  color: white;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  border: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Active button state: adds a white border */
.button.active {
  border: 2px solid white;
}

/* Hover effect for the button */
.button:hover {
  background-color: #0056b3;
  transform: scale(1.07);
}

/* Style for the image inside the button */
.button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Style for the dropdown container */
.dropdown-button {
  position: relative;
}

/* Dropdown content styling, initially hidden */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 150px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  padding: 5px 0;
  border-radius: 10px;
  margin-top: 3px;
  user-select: none;
  z-index: 1000;
}

/* Show dropdown content when it's open */
.dropdown-content.show {
  display: block;
}

/* Style for each dropdown button */
.dropdown-content button {
  background: none;
  color: black;
  border: none;
  padding: 5px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  gap: 10px;
}

/* Hover effect for dropdown buttons */
.dropdown-content button:not(.update-style-btn):not(.reset-style-btn):not(.style-tab):hover::before {
  content: "";
  position: absolute;
  left: 3%;
  width: 94%;
  height: 100%;
  background-color: #f1f1f1;
  z-index: -1;
  border-radius: 10px;
}

/* Style for images inside the dropdown buttons */
.dropdown-content button img {
  width: 25px;
  height: 25px;
  margin-right: 10px;
}

/* Centering the text inside dropdown button */
.dropdown-content button span {
  flex: 1;
  text-align: center;
}

/* Settings prompt styling */
.settings-prompt {
  top: 60px;
  left: 0;
  background-color: #00447E;
  margin-left: 5px;
  margin-right: 5px;
  border-radius: 8px;
  padding: 12px;
  z-index: 1000;
  width: 400px;
  box-sizing: border-box;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Label for the settings prompt */
.settings-prompt label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

/* Input and buttons container */
.settings-prompt-row {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 5px;
}

.settings-prompt-row button {
  width: 24px;
  height: 24px;
  padding: 0;
  margin-left: 10px;
}

.settings-prompt-row button svg {
  color: white;
}

/* Input field inside the settings prompt */
.settings-prompt input {
  flex: 1;
  padding: 8px;
  border: 1px solid white;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  background-color: #f9f9f9;
  box-sizing: border-box;
}

/* Buttons inside the settings prompt */
.settings-prompt-buttons {
  display: flex;
  gap: 5px;
}

.settings-prompt-buttons button {
  background-color: #00447E;
  color: white;
  font-weight: bold;
  border: 1px solid white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.settings-prompt-buttons button:first-child {
  background-color: #28A745;
}

.settings-prompt-buttons button:hover {
  background-color: #218838;
}

.settings-prompt-buttons button:last-child {
  background-color: #dc3545;
}

.settings-prompt-buttons button:last-child:hover {
  background-color: #b32d39;
}

.custom-swal-popup {
  text-align: justify;
  white-space: pre-line;
}

/* Settings information styling */
.settings-information {
  display: flex;
  align-items: center;
  width: 175px;
  margin-top: 5px;
}

/* Label for the settings information */
.settings-information label {
  background: none;
  color: black;
  border: none;
  padding: 5px;
  text-align: left;
  font-size: 14px;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  gap: 10px;
}

.dropdown-content .update-style-btn, .dropdown-content .reset-style-btn {
  display: block;
  width: 90%;
  margin: 12px auto 5px auto;
  background-color: #00447E;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.dropdown-content .update-style-btn:hover, .dropdown-content .reset-style-btn:hover {
  background-color: #005a9e;
  transform: scale(1.02);
}

.dropdown-content .style-options {
  padding: 5px 20px;
  margin: 5px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 250px;
  max-width: 90vw;
}

.style-options h2 {
  margin-top: 1px;
  text-align: center;
  font-size: 1.5em;
}

.style-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.style-option label {
  flex: 1;
}

.style-option input[type="color"] {
  margin-right: 10px;
  width: 35px;
  height: 35px;
}

.style-option input[type="range"] {
  accent-color: #3e3e3e;
  height: 6px;
  background: #ddd;
  outline: none;
  width: 120px;
  margin-right: 10px;
  position: relative;
}

.style-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 15px;
}

.dropdown-content .style-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  opacity: 0.7;
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
  display: block;
}

.style-tab.active {
  opacity: 1;
  color: #00447E;
}

.style-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #00447E;
  border-radius: 2px;
}

.dropdown-content .style-tab:hover {
  opacity: 1;
  background-color: #f0f0f0;
  border-radius: 5px 5px 0 0;
}

.style-option span {
  min-width: 30px;
  text-align: right;
  display: inline-block;
}
