/* Logout Modal Specific Styles */
/* Using unique class to avoid conflicts with theme variables */

.logout-modal-wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2147483647; /* Maximum z-index */
}

.logout-modal-wrapper .modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2147483646;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.logout-modal-wrapper .modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.logout-modal-wrapper .modal-content {
  background-color: #ffffff;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  font-family: "Quicksand", sans-serif;
  overflow: hidden;
  color: #343a40;
  width: 400px;
  max-width: 90vw;
  position: relative;
  z-index: 2147483647;
}

.logout-modal-wrapper h4 {
  text-align: left;
  margin: 0;
  padding: 20px;
  background-color: #f8f9fa;
  color: #333333;
  font-size: 18px;
  font-family: "Quicksand", sans-serif;
  font-weight: normal;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  display: block;
  padding-right: 60px;
  min-height: 48px;
}

.logout-modal-wrapper .close-modal {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 28px;
  color: #666666;
  cursor: pointer;
  width: 32px;
  height: 32px;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
}

.logout-modal-wrapper .close-modal:hover {
  color: #333333;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.logout-modal-wrapper .modal-body,
#unifiedLogoutModal .modal-body {
  padding: 30px !important;
  background: #ffffff !important;
  color: #343a40 !important;
  min-height: auto !important;
  flex: none !important;
  overflow: visible !important;
  overflow-y: visible !important;
  flex-grow: 0 !important;
  line-height: 1.6 !important;
}

.logout-modal-wrapper .modal-body p {
  margin: 0;
  font-family: "Quicksand", sans-serif;
  font-size: 16px;
  color: #343a40;
}

.logout-modal-wrapper .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  background: #f8f9fa;
  margin: 0 !important;
  margin-top: 0 !important;
  position: static !important;
  bottom: auto !important;
  z-index: auto !important;
  line-height: normal !important;
}

.logout-modal-wrapper .modal-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  font-family: "Quicksand", sans-serif;
}

.logout-modal-wrapper .btn-modal-cancel,
.logout-modal-wrapper .modal-actions .btn-modal-cancel,
#unifiedLogoutModal .btn-modal-cancel {
  background-color: #6c757d !important;
  color: #ffffff !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  font-size: 16px !important;
  padding: 10px 20px !important;
}

.logout-modal-wrapper .btn-modal-cancel:hover,
.logout-modal-wrapper .modal-actions .btn-modal-cancel:hover,
#unifiedLogoutModal .btn-modal-cancel:hover {
  background-color: #5a6268 !important;
  color: #ffffff !important;
  border: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.logout-modal-wrapper .btn-modal-confirm,
.logout-modal-wrapper .modal-actions .btn-modal-confirm,
#unifiedLogoutModal .btn-modal-confirm {
  background-color: #ff6f00 !important;
  color: #ffffff !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  font-size: 16px !important;
  padding: 10px 20px !important;
}

.logout-modal-wrapper .btn-modal-confirm:hover,
.logout-modal-wrapper .modal-actions .btn-modal-confirm:hover,
#unifiedLogoutModal .btn-modal-confirm:hover {
  background-color: #e65f00 !important;
  color: #ffffff !important;
  border: none !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Force override any theme variables */
.logout-modal-wrapper,
.logout-modal-wrapper * {
  --theme-bg-primary: #ffffff !important;
  --theme-bg-secondary: #f8f9fa !important;
  --theme-text-primary: #343a40 !important;
  --theme-border-color: #e0e0e0 !important;
  --bizuit-orange: #ff6f00 !important;
}