.admin-header-actions {
  display: flex;
  gap: 20px;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.admin-add-btn {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  padding: 15px;
  border-radius: 10px;
  border: none;
  width: 185px;
  background-color: #000;
  color: #fff;
  transform: none;
  box-shadow: none;
  transition:
    transform 250ms ease-in-out,
    color 250ms ease-in-out,
    background-color 250ms ease-in-out,
    box-shadow 250ms ease-in-out;
}

.admin-add-btn:hover {
  background-color: #fff;
  color: #000;
  box-shadow: 0px 5px 10px 0px #cecece;
  transform: scale(1.05);
}

.buttons-admin-container {
  display: flex;
  gap: 20px;
}

/* Admin-panel */

.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.admin-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.admin-search {
  max-width: 800px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #d7d7d7;
  border-radius: 14px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

.usernames-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.username-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.username-left {
  min-width: 0;
  flex: 1;
}

.username-open {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.username-open:hover {
  text-decoration: underline;
}

.inputUsernameComment {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  padding: 9px;
  border: 1px solid #cecece;
  width: 100%;
  border-radius: 5px;
}

.admin-empty {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.username-left {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dealUKA-side, .dealUKA-comm {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  border-radius: 5px;
  outline: none;
  border: 1px solid #cecece;
  padding: 5px;
  width: 100px;
}

.dealUKA-comm {
  margin-bottom: 5px;
}

.usernameName {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Switchs */
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 3.5em;
  height: 2em;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(182, 182, 182);
  transition: 0.4s;
  border-radius: 10px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  border-radius: 8px;
  left: 0.3em;
  bottom: 0.3em;
  transform: rotate(270deg);
  background-color: rgb(255, 255, 255);
  transition: 0.4s;
}

.switch input:checked + .slider {
  background-color: #21cc4c;
}

.switch input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

.switch input:checked + .slider:before {
  transform: translateX(1.5em);
}

/* Delete button */

.delete-button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: rgb(20, 20, 20);
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.164);
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
  position: relative;
}

.delete-svgIcon {
  width: 15px;
  transition-duration: 0.3s;
}

.delete-svgIcon path {
  fill: white;
}

.delete-button:hover {
  transition-duration: 0.3s;
  background-color: rgb(255, 69, 69);
  align-items: center;
}

.delete-button:hover .delete-svgIcon {
  width: 20px;
  transition-duration: 0.3s;
}

.delete-button::before {
  display: none;
  content: "";
  color: white;
  transition-duration: 1s;
  font-size: 2px;
}

.delete-button:hover::before {
  display: none;
  padding-right: 10px;
  font-size: 13px;
  opacity: 1;
  transform: translateY(0px);
  transition-duration: 1s;
}

/* Confirm modals */
.modal-addUsername,
.modal-deleteUsername {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.modal-actions {
  padding-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.input-modal {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  padding: 5px;
  min-width: 140px;
  width: 250px;
  border: 0.5px solid rgba(61, 61, 61, 1);
  border-radius: 2px;
}

.text-modal {
  font-size: 25px;
  text-align: center;
  padding-bottom: 10px;
}

.button-modal {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background-color: #000;
  color: #fff;
  transform: none;
  transition: transform 250ms ease-in-out;
}

.button-modal:hover {
  transform: scale(1.1);
}

/* Comment Styles */

.btn-comment-edit {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 2px 4px;
  display: flex;
  align-items: center;
}

.btn-comment-edit:hover {
  color: #333;
}

.comment-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 7px;
  background: #e67e22;
  border-radius: 50%;
}

.comment-popover {
  position: absolute;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 8px;
  padding: 12px;
  width: 260px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.comment-popover-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #3498db;
  border-radius: 6px;
  color: #000000;
  padding: 8px;
  font-size: 14px;
  resize: vertical;
  min-height: 90px;
  outline: none;
}

.comment-popover-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 424px) {
  .admin-title {
    font-size: 24px;
  }

  .admin-header-actions {
    flex-direction: column;
  }

  .admin-search {
    margin: 0;
  }

  .admin-add-btn {
    width: 100%;
  }
}

@media (min-width: 425px) {
  .admin-search {
    width: 100%;
  }
}