/*******************************************************/
/*** Admin Bar Button **********************************/
/*******************************************************/
#wp-admin-bar-admin-hero a {
  padding: 4px 8px 4px 8px !important;
  /*font-size: 18px;
  line-height: 30px;
  color: white;
  text-decoration: none;*/
  display: inline-block;
}

/* Admin-bar logo */
#wp-admin-bar-admin-hero > a .admin-hero-bar-logo {
  display: inline-block;
  height: calc(100% - 8px);
  width: auto;
  vertical-align: top;
  border-radius: 2px !important;
}
#wp-admin-bar-admin-hero > a:hover .admin-hero-bar-logo {
  opacity: 0.8;
}

/* ensure our bar group is flexbox */
#wp-admin-bar-top-secondary {
  display: flex !important;
}

/* push Admin Hero to sit just left of the profile item */
#wp-admin-bar-top-secondary #wp-admin-bar-admin-hero {
  order: -1 !important;
}

/* ensure the profile item itself comes after everything else */
#wp-admin-bar-top-secondary #wp-admin-bar-my-account {
  order: 0 !important;
}

/*******************************************************/
/*** Globals *******************************************/
/*******************************************************/
#admin-hero-modal p {
  font-size: 1em !important;
  color: #ffffff !important;
  margin: 10px 0 10px 0 !important;
  /*font-family: "Roboto", sans-serif !important;*/
  font-weight: normal !important;
}

#admin-hero-modal h1,
#admin-hero-modal h2,
#admin-hero-modal h3,
#admin-hero-modal h4,
#admin-hero-modal h5,
#admin-hero-modal h6 {
  /*font-family: "Roboto", sans-serif !important;*/
  font-weight: bold !important;
}

#admin-hero-modal h1 {
  font-size: 2em !important;
  color: #ffffff !important;
  margin: 10px 0 10px 0 !important;
}

#admin-hero-modal h2 {
  font-size: 1.6em !important;
  color: #ffffff !important;
  margin: 10px 0 10px 0 !important;
}

#admin-hero-modal h3 {
  font-size: 1.4em !important;
  color: #ffffff !important;
  margin: 10px 0 10px 0 !important;
}

#admin-hero-modal h4 {
  font-size: 1.2em !important;
  color: #ffffff !important;
  margin: 10px 0 10px 0 !important;
}

#admin-hero-modal h5 {
  font-size: 1em !important;
  color: #ffffff !important;
  margin: 10px 0 10px 0 !important;
}

#admin-hero-modal input,
#admin-hero-modal select,
#admin-hero-modal textarea {
  /*font-family: "Roboto", sans-serif !important;*/
  font-size: 0.9em !important;
  color: #fff !important;
  background: #444 !important;
  border: 1px solid #555 !important;
  border-radius: 2px !important;
  padding: 0.4em 0.4em 0.4em 0.4em !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 35px !important;
}

#admin-hero-modal input:focus,
#admin-hero-modal select:focus,
#admin-hero-modal textarea:focus {
  border: 1px solid #56ff00 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Buttons */
#admin-hero-modal .ah-close-button,
#admin-hero-modal .admin-hero-button,
#admin-hero-modal button.admin-hero-button {
  font-family: "Roboto", sans-serif !important;
  padding: 8px 16px !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: bold !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  pointer-events: auto !important;
  z-index: 100002 !important;
  display: inline-block !important;
  align-items: center !important;
  justify-content: center !important;
  background: #50992b !important;
  color: #ffffff !important;
}

#admin-hero-modal button.admin-hero-button:hover {
  background: #56ff00 !important;
}

#admin-hero-modal button:focus,
#admin-hero-modal a:focus {
  box-shadow: none !important;
  outline: none !important;
}

#admin-hero-modal fieldset {
  margin: -3px 0 0 0 !important;
  padding: 10px !important;
  width: 30% !important;
  border-radius: 8px !important;
  border: none !important;
  flex-grow: 1 !important;
  flex-shrink: 0 !important;
  min-width: 280px !important;
  max-width: 960px !important;
}

#admin-hero-modal fieldset:nth-child(odd) {
  background: #555555 !important;
}

#admin-hero-modal fieldset:nth-child(even) {
  background: #666666 !important;
}

#admin-hero-modal fieldset legend {
  text-align: center !important;
  padding: 15px 8px 4px 8px !important;
  font-size: 1em !important;
  font-weight: bold !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  background: #282828 !important;
}

#admin-hero-modal .ah-red-notice {
  color: #ffcccc;
  background: #442222;
  padding: 8px;
  border-radius: 4px;
  margin: 4px 0;
  text-align: center;
  font-weight: bold;
}

/*******************************************************/
/*** Onboarding ****************************************/
/*******************************************************/
#admin-hero-modal .admin-hero-onboarding {
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  background: #222222;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  align-items: stretch;
  justify-content: center;
  z-index: 100010;
  border-radius: 4px;
  border: 1px solid #56ff00;
  padding: 20px;
  gap: 8px;
  text-align: center;
}

#admin-hero-modal .admin-hero-onboarding.oh-hidden {
  display: none;
}

#admin-hero-modal .ah-onboard-button {
  width: 40%;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  padding: 10px;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
  gap: 8px;
  background: #50992b;
  border-radius: 8px;
  cursor: pointer;
}

#admin-hero-modal .ah-onboard-button:hover {
  background: #56ff00;
}

#admin-hero-modal .admin-hero-onboarding h1,
#admin-hero-modal .admin-hero-onboarding h2,
#admin-hero-modal .admin-hero-onboarding h3,
#admin-hero-modal .admin-hero-onboarding h4,
#admin-hero-modal .admin-hero-onboarding h5,
#admin-hero-modal .admin-hero-onboarding p {
  width: 100% !important;
}

#admin-hero-modal .ah-onboard-button h3 {
  margin: 0 0 0 0 !important;
  text-align: center !important;
}

#admin-hero-modal .ah-onboard-button p {
  margin: 0 0 0 0 !important;
  text-align: center !important;
}

#admin-hero-modal .admin-hero-onboarding p {
  text-align: center !important;
}

#admin-hero-modal .admin-hero-onboarding ul {
  text-align: center;
  margin: 20px 0;
  color: #cccccc;
}

/* Hide panels during onboarding */
#admin-hero-modal .admin-hero-onboarding:not(.oh-hidden) .ah-panel {
  display: none !important;
}

/* Ensure panels can be shown after onboarding */
#admin-hero-modal .ah-panel {
  display: none;
}

/*******************************************************/
/*** Modal *********************************************/
/*******************************************************/
#admin-hero-modal,
#admin-hero-modal * {
  box-sizing: border-box;
  line-height: 1 !important;
}

#admin-hero-modal {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 400px;
  max-width: 90vw;
  height: 400px;
  max-height: 80vh;
  background: #333333;
  padding: 0 10px 10px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  overflow: hidden;
  visibility: visible !important;
  z-index: 2147483646;
  font-family: Roboto, Helvetica, Arial, sans-serif !important;
}

#admin-hero-modal.admin-hero-hidden {
  display: none !important;
}

/* Modal Header */
#admin-hero-modal #admin-hero-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 16px;
  font-weight: bold;
  color: #e0e0e0;
  padding-top: 38px;
  padding-bottom: 0;
  /*z-index: 100005;*/
  background: transparent;
}

/* Modal Controls */
#admin-hero-modal .admin-hero-close-btn,
#admin-hero-modal .ah-settings-button,
#admin-hero-modal .ah-info-button,
#admin-hero-modal .ah-tasks-button,
#admin-hero-modal .ah-notes-button {
  position: absolute;
  cursor: pointer;
  padding: 5px;
  /*z-index: 100010;*/
  pointer-events: auto;
  height: 25px;
  width: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*** Header Buttons ***/
#admin-hero-modal .ah-header-button i {
  font-size: 15px;
  color: #aaaaaa;
}

#admin-hero-modal .ah-header-button:hover i,
#admin-hero-modal .ah-header-button.active i {
  color: #56ff00;
}

/* Settings Button */
#admin-hero-modal .ah-settings-button {
  right: 50px;
  top: 6px;
}

/* Notes Button */
#admin-hero-modal .ah-notes-button {
  right: 75px;
  top: 6px;
}

/* Info Button */
#admin-hero-modal .ah-info-button {
  right: 100px;
  top: 6px;
}

/* Tasks Button */
#admin-hero-modal .ah-tasks-button {
  right: 125px;
  top: 6px;
}

/* New Container for Enabled Settings Icons */
#admin-hero-modal #admin-hero-settings-icons {
  position: absolute;
  left: 0;
  top: 6px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /*z-index: 100010;*/
}

/* Close Button */
#admin-hero-modal .admin-hero-close-btn {
  right: 0;
  top: 6px;
}

#admin-hero-modal .admin-hero-close-btn i {
  font-size: 20px;
  color: #aaaaaa;
}

#admin-hero-modal .admin-hero-close-btn:hover i {
  color: red;
}

/*******************************************************/
/*** Panels ********************************************/
/*******************************************************/
#admin-hero-modal .ah-panel {
  position: absolute;
  top: 36px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: #282828;
  padding: 5px;
  border-radius: 4px;
  box-sizing: border-box;
  display: none;
  gap: 4px;
  z-index: 100004;
}

/*** Tasks Panel ***/
#admin-hero-modal #admin-hero-tasks-panel.admin-hero-tasks-overlay {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow-y: auto;
}

/*** Info Panel ***/
#admin-hero-modal #admin-hero-info-panel.admin-hero-info-overlay {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow-y: auto;
}

/*** Notes Panel ***/
#admin-hero-modal #admin-hero-notes-panel.admin-hero-notes-overlay {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow-y: auto;
}

/*** Settings Panel ***/
#admin-hero-modal #admin-hero-settings-panel.admin-hero-settings-overlay {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow-y: auto;
}

/*** Panel Header ***/
#admin-hero-modal #admin-hero-panel-header {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  padding: 8px 0 0 0;
  z-index: 100003;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: relative;
}

#admin-hero-modal a.button-pro {
  margin: 10px 0 10px 0 !important;
  background: #50992b !important;
  color: #ffffff !important;
  font-size: 1.2em !important;
  text-decoration: none !important;
  border: 0 dashed #50992b !important;
  text-transform: none !important;
  line-height: 1.4 !important;
}

#admin-hero-modal a.button-pro:hover {
  margin: 10px 0 10px 0 !important;
  background: #56ff00 !important;
  color: #ffffff !important;
  border: 0 dashed #56ff00 !important;
}

#admin-hero-modal #admin-hero-save i.fa-floppy-disk {
  font-size: 14px;
}

#admin-hero-modal #admin-hero-reset-modal {
  background: #50992b;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: auto;
  pointer-events: auto;
  z-index: 100002;
}

#admin-hero-modal #admin-hero-reset-modal:hover {
  background: #56ff00;
}

/*******************************************************/
/*** Quill Editor **************************************/
/*******************************************************/
#admin-hero-modal #admin-hero-editor {
  flex-grow: 1 !important;
  width: 100% !important;
  background: #eeeeee !important;
  color: #333333 !important;
  border: 1px solid #eeeeee !important;
  border-radius: 4px !important;
  z-index: 100002 !important;
}

#admin-hero-modal #admin-hero-editor .ql-editor {
  padding: 8px;
}

#admin-hero-modal #admin-hero-editor .ql-editor,
#admin-hero-modal #admin-hero-editor h1,
#admin-hero-modal #admin-hero-editor h2,
#admin-hero-modal #admin-hero-editor h3,
#admin-hero-modal #admin-hero-editor h4,
#admin-hero-modal #admin-hero-editor h5,
#admin-hero-modal #admin-hero-editor h6,
#admin-hero-modal #admin-hero-editor p,
#admin-hero-modal #admin-hero-editor li,
#admin-hero-modal #admin-hero-editor blockquote,
#admin-hero-modal #admin-hero-editor pre,
#admin-hero-modal #admin-hero-editor code {
  background: transparent !important;
  color: #333333 !important;
  line-height: 1.2 !important;
}

#admin-hero-modal #admin-hero-editor h1,
#admin-hero-modal #admin-hero-editor h2,
#admin-hero-modal #admin-hero-editor h3,
#admin-hero-modal #admin-hero-editor h4,
#admin-hero-modal #admin-hero-editor h5,
#admin-hero-modal #admin-hero-editor h6 {
  margin-bottom: 8px !important;
  font-weight: bold !important;
}

#admin-hero-modal #admin-hero-editor p {
  margin-bottom: 8px !important;
}

#admin-hero-modal #admin-hero-editor li {
  margin-bottom: 4px !important;
}

#admin-hero-modal #admin-hero-editor:focus,
#admin-hero-modal #admin-hero-editor:focus-within,
#admin-hero-modal #admin-hero-editor:focus-visible {
  outline: none !important;
  border: 1px solid #56ff00 !important;
}

/* Style Quill Toolbar */
#admin-hero-modal .ql-toolbar.ql-snow {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  background: #aaaaaa !important;
  border: 1px solid #aaaaaa !important;
  border-radius: 4px !important;
  padding: 4px !important;
}

#admin-hero-modal .ql-toolbar.ql-snow .ql-formats {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  margin-right: 0 !important;
}

#admin-hero-modal .ql-toolbar.ql-snow .ql-picker-options {
  z-index: 100003 !important;
}

#admin-hero-modal .ql-toolbar.ql-snow .ql-formats select,
#admin-hero-modal .ql-toolbar.ql-snow .ql-picker {
  background: transparent !important;
  color: #666666 !important;
  font-size: 13px !important;
  line-height: 1.53846153 !important;
  /*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;*/
  padding-right: 0 !important;
  border: 1px solid #aaa !important;
  border-radius: 4px !important;
  margin-right: 8px !important;
}

/* Style the picker dropdown items */
#admin-hero-modal .ql-toolbar.ql-snow .ql-picker-options .ql-picker-item {
  color: #666666 !important;
  background: transparent !important;
}

/* Change picker item color on hover */
#admin-hero-modal .ql-toolbar.ql-snow .ql-picker-options .ql-picker-item:hover {
  color: #56ff00 !important;
  background: transparent !important;
}

/* Set default colors for toolbar button SVGs */
#admin-hero-modal .ql-toolbar.ql-snow .ql-formats button .ql-fill {
  fill: #666666 !important;
}

/* Change SVG colors on hover and active states for all toolbar buttons except undo/redo */
#admin-hero-modal
  .ql-toolbar.ql-snow
  .ql-formats
  button:not(.ql-undo):not(.ql-redo):hover
  .ql-fill,
#admin-hero-modal
  .ql-toolbar.ql-snow
  .ql-formats
  button:not(.ql-undo):not(.ql-redo).ql-active
  .ql-fill {
  fill: #56ff00 !important;
  background-color: transparent !important;
}

#admin-hero-modal .ql-toolbar.ql-snow .ql-formats button:hover {
  background-color: transparent !important;
}

/* Default dropdown label + arrow */
#admin-hero-modal .ql-toolbar .ql-picker-label {
  color: #666666 !important;
}
#admin-hero-modal .ql-toolbar .ql-picker-label svg .ql-stroke {
  stroke: #666666 !important;
}

/* When picker is active/expanded/selected via selected text */
#admin-hero-modal .ql-toolbar .ql-picker.ql-active .ql-picker-label,
#admin-hero-modal .ql-toolbar .ql-picker.ql-selected .ql-picker-label,
#admin-hero-modal .ql-toolbar .ql-picker.ql-expanded .ql-picker-label {
  color: #56ff00 !important;
}

/* ...but caret (arrow) stays #666666 even when active */
#admin-hero-modal
  .ql-toolbar
  .ql-picker.ql-active
  .ql-picker-label
  svg
  .ql-stroke,
#admin-hero-modal
  .ql-toolbar
  .ql-picker.ql-selected
  .ql-picker-label
  svg
  .ql-stroke,
#admin-hero-modal
  .ql-toolbar
  .ql-picker.ql-expanded
  .ql-picker-label
  svg
  .ql-stroke {
  stroke: #666666 !important;
}

/* Optional: arrow hover = green */
#admin-hero-modal .ql-toolbar .ql-picker:hover .ql-picker-label svg .ql-stroke {
  stroke: #56ff00 !important;
}

/* Push the undo/redo group to the right */
#admin-hero-modal .ql-toolbar.ql-snow .ql-formats:last-child {
  margin-left: auto !important;
}

/* Popup Link Editor */
#admin-hero-modal .ql-snow .ql-tooltip {
  bottom: 14px !important;
  left: 5px !important;
  right: 5px !important;
  top: auto !important;
  background: #222222 !important;
  color: #eeeeee !important;
  border-radius: 8px !important;
  padding: 8px !important;
  font-size: 14px !important;
  border: 1px solid #56ff00 !important;
  box-shadow: 0 0 5px #444444 !important;
  white-space: nowrap !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

#admin-hero-modal .ql-snow .ql-hidden {
  display: none !important;
}

#admin-hero-modal .ql-snow .ql-tooltip input,
#admin-hero-modal .ql-snow .ql-tooltip .ql-preview {
  flex-grow: 1 !important;
  min-height: 0 !important;
}

#admin-hero-modal .ql-snow .ql-tooltip a.ql-action {
  margin-left: 8px !important;
  background: transparent !important;
  color: #56ff00 !important;
}

#admin-hero-modal .ql-snow .ql-tooltip a.ql-remove {
  color: red !important;
}

#admin-hero-modal .ql-snow .ql-tooltip a.ql-action::after {
  margin-left: 0 !important;
}

#admin-hero-modal .ql-snow .ql-tooltip a.ql-preview {
  padding: 5px 5px !important;
}

/* Overlay */
#admin-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: none; /* hide by default */
  flex-direction: column; /* Stack icon and text vertically */
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out; /* fade‑in/out */
  pointer-events: none !important;
  z-index: 100006;
  pointer-events: none !important;
}

#admin-hero-overlay.admin-hero-visible {
  display: flex; /* show when visible */
  opacity: 1;
  pointer-events: auto !important;
}

#admin-hero-overlay .save-icon,
#admin-hero-overlay .autosave-icon {
  display: block;
  margin: 0 auto 5px;
  font-size: 28px;
  color: #56ff00;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#admin-hero-overlay span {
  display: block; /* ensure text sits below the icon */
  text-align: center;
}

#admin-hero-modal .admin-hero-settings-content {
  background: transparent;
  border: none;
  color: #eee;
  text-align: center;
  margin-top: 0;
  padding: 0;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

#admin-hero-modal .admin-hero-settings-content fieldset.ah-about-fieldset p {
  line-height: 1.2 !important;
}

#admin-hero-modal .admin-hero-settings-content fieldset.ah-about-fieldset a {
  color: #ffffff !important;
  text-decoration: underline !important;
}

#admin-hero-modal
  .admin-hero-settings-content
  fieldset.ah-about-fieldset
  a:hover {
  color: #56ff00 !important;
}

#admin-hero-modal .admin-hero-pro-features {
  width: 100%;
  max-width: 960px;
  text-align: center;
  border: 2px dashed #50992b;
  border-radius: 4px;
  padding: 0 10px;
  margin: 10px 0 0 0 !important;
}

#admin-hero-modal .admin-hero-pro-features ul {
  font-size: 1em !important;
  color: #eeeeee !important;
  margin-bottom: 0 !important;
}

#admin-hero-modal .admin-hero-pro-features ul li {
  margin-bottom: 8px !important;
  display: inline-block !important;
  padding-left: 8px !important;
}

#admin-hero-modal .admin-hero-pro-features .fa-square-check {
  color: #56ff00 !important;
  margin-right: 6px !important;
}

/* Toggle Switch */
#admin-hero-modal .admin-hero-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: bold;
  color: #eee;
}

#admin-hero-modal .admin-hero-toggle-text {
  font-size: 14px;
  font-weight: bold;
  color: #eee;
  text-align: center;
  margin-bottom: 10px;
  user-select: none;
  padding: 4px 0 0 0 !important;
}

#admin-hero-modal #admin-hero-autosave-switch,
#admin-hero-modal #admin-hero-frontend-floating-switch,
#admin-hero-modal #admin-hero-backend-floating-switch {
  transform: scale(1.4);
  cursor: pointer;
  vertical-align: middle;
  margin-left: 8px;
}

#admin-hero-modal .switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 21px;
}

#admin-hero-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#admin-hero-modal .switch .slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  cursor: pointer;
  transition: 0.4s;
}

#admin-hero-modal .switch .slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  top: 3px;
  left: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

#admin-hero-modal .switch input:checked + .slider {
  background-color: #50992b !important;
}

#admin-hero-modal .switch input:checked + .slider:before {
  transform: translate3d(24px, 0, 0) !important;
}

/* Settings Lines (Label + Control Inline) */
#admin-hero-modal .admin-hero-setting-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 0 4px 0;
  border-top: 1px solid #777777;
}

#admin-hero-modal
  .admin-hero-settings-content
  fieldset
  .admin-hero-setting-line:first-of-type {
  border-top: 0 solid #777777 !important;
}

#admin-hero-modal .admin-hero-setting-line label {
  font-size: 14px;
  font-weight: bold;
  color: #eee;
  margin: 0;
  padding: 0;
  user-select: none;
  text-align: left;
}

#admin-hero-modal .admin-hero-setting-line select {
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #222;
  color: #eee;
  font-size: 14px;
  width: 65% !important;
}

#admin-hero-modal .admin-hero-setting-line .switch {
  margin-left: 8px;
}

/* Style for the little icon in each description row */
#admin-hero-modal .admin-hero-desc-icon {
  color: #aaa;
  font-size: 0.9em;
  margin-right: 4px; /* spacing between icon and text */
  cursor: help; /* indicates it’s informational */
}
#admin-hero-modal .admin-hero-desc-icon:hover {
  color: #56ff00; /* hover‐color matching other icons */
}

/* Free Plugin Specific */
#admin-hero-modal
  #admin-hero-settings-panel.settings-free
  .admin-hero-settings-content {
  width: 100% !important;
  max-width: 960px !important;
  margin: 0 auto !important;
  align-items: stretch;
  align-content: stretch;
}

/* Pro Plugin Specific
#admin-hero-modal #admin-hero-settings-panel.settings-pro {
} */

/* ─── Small “ℹ️” icon that sits right after each label ─────────────────────────── */
.admin-hero-settings-fieldset .admin-hero-setting-line .admin-hero-toggle-text {
  display: flex;
  align-items: center;
  /* label text will come first, then info‐icon */
}

/* The actual info‐icon “ℹ️” */
.admin-hero-toggle-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px; /* space between the label text and the icon */
  color: #aaa; /* default icon color */
  font-size: 0.9em; /* slightly smaller than label text */
  cursor: help; /* change cursor to “?” hover */
}

/* On hover, make it clearer: */
.admin-hero-toggle-info:hover {
  color: #56ff00; /* bright green on hover, for example */
}

/* Description text under each feature */
#admin-hero-modal .admin-hero-toggle-description {
  margin: 0 4px 4px 8px;
  font-size: 0.85em;
  color: #ccc;
  text-align: left;
}

/* Info Footer Save */
#admin-hero-modal .footer-save {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-bottom: 0 !important;
}

/* Panel Promo */
#admin-hero-modal .ah-pro-promo-1 {
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 auto !important;
  padding: 10px 0 0 0;
  font-size: 1.2em !important;
  line-height: 1.4 !important;
  color: yellow !important;
}

/* Panel Footer */
#admin-hero-modal .ah-panel-footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 0 0 0;
  margin-top: auto;
}

/*** Panel Close Button ***/
#admin-hero-modal .ah-panel-footer button.ah-close-button {
  background: transparent !important;
  color: #aaaaaa !important;
}
#admin-hero-modal .ah-panel-footer button.ah-close-button:hover {
  background: transparent !important;
  color: red !important;
}

/* Add Font Awesome icons for undo and redo buttons */
#admin-hero-modal .ql-toolbar .ql-undo,
#admin-hero-modal .ql-toolbar .ql-redo {
  position: relative;
  width: 18px;
  height: 18px;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 5px !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

#admin-hero-modal .ql-toolbar .ql-undo::before,
#admin-hero-modal .ql-toolbar .ql-redo::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 14px;
  color: #666666;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#admin-hero-modal .ql-toolbar .ql-undo::before {
  content: "\f2ea";
}

#admin-hero-modal .ql-toolbar .ql-redo::before {
  content: "\f2f9";
}

/* Hover effect for undo/redo */
#admin-hero-modal .ql-toolbar .ql-undo:hover::before,
#admin-hero-modal .ql-toolbar .ql-redo:hover::before {
  color: #56ff00 !important;
}

/* Disabled state for undo/redo */
#admin-hero-modal .ql-toolbar .ql-undo.ql-disabled::before,
#admin-hero-modal .ql-toolbar .ql-redo.ql-disabled::before {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Toolbar button icon default colors */
#admin-hero-modal .ql-toolbar.ql-snow .ql-formats button .ql-stroke {
  stroke: #666666 !important;
  fill: none !important;
}

#admin-hero-modal .ql-toolbar.ql-snow .ql-formats button .ql-fill {
  fill: #666666 !important;
}

/* Hover + active state for editor buttons */
#admin-hero-modal
  .ql-toolbar.ql-snow
  .ql-formats
  button:not(.ql-undo):not(.ql-redo):hover
  .ql-stroke,
#admin-hero-modal
  .ql-toolbar.ql-snow
  .ql-formats
  button:not(.ql-uno):not(.ql-redo).ql-active
  .ql-stroke {
  stroke: #56ff00 !important;
}

#admin-hero-modal
  .ql-toolbar.ql-snow
  .ql-formats
  button:not(.ql-undo):not(.ql-redo):hover
  .ql-fill,
#admin-hero-modal
  .ql-toolbar.ql-snow
  .ql-formats
  button:not(.ql-undo):not(.ql-redo).ql-active
  .ql-fill {
  fill: #56ff00 !important;
}

/* Prevent hover fill on stroke-based icons like bold/underline/link */
#admin-hero-modal .ql-toolbar.ql-snow .ql-bold:hover .ql-stroke,
#admin-hero-modal .ql-toolbar.ql-snow .ql-underline:hover .ql-stroke,
#admin-hero-modal .ql-toolbar.ql-snow .ql-link:hover .ql-stroke,
#admin-hero-modal .ql-toolbar.ql-snow .ql-bold.ql-active .ql-stroke,
#admin-hero-modal .ql-toolbar.ql-snow .ql-under line.ql-active .ql-stroke,
#admin-hero-modal .ql-toolbar.ql-snow .ql-link.ql-active .ql-stroke {
  fill: none !important;
}

/* Push the undo/redo group to the right */
#admin-hero-modal .ql-toolbar.ql-snow .ql-formats:last-child {
  margin-left: auto !important;
}

/* Autosave Icon in Overlay */
#admin-hero-overlay .autosave-icon {
  display: block;
  margin: 0 auto 5px;
  font-size: 28px;
  color: #56ff00;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Manual Save Icon in Overlay */
#admin-hero-overlay .save-icon {
  display: block;
  margin: 0 auto 5px;
  font-size: 28px;
  color: #56ff00;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Footer bar under the Save button */
#admin-hero-modal .admin-hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

/* Left side: user name */
#admin-hero-modal .admin-hero-footer .admin-hero-title {
  font-size: 12px;
  color: #ccc;
}

/* Right side: timestamp */
#admin-hero-modal .admin-hero-footer #admin-hero-timestamp {
  font-size: 12px;
  color: #888;
  text-align: right;
  margin: 0;
}

/* License Links */
#admin-hero-modal .enter-license-link {
  text-align: center;
  padding: 10px 0 0 0;
  cursor: pointer;
}

#admin-hero-modal .manage-license-link {
  text-align: center;
  padding: 0 0 10px 0;
  cursor: pointer;
}

/* License Links */
#admin-hero-modal .manage-license-link a,
#admin-hero-modal .enter-license-link a {
  color: #50992b !important;
  text-decoration: none;
  font-size: 14px !important;
}

#admin-hero-modal .manage-license-link a:hover,
#admin-hero-modal .enter-license-link a:hover {
  color: #56ff00 !important;
  text-decoration: none;
}

#admin-hero-modal hr {
  display: block;
  width: 100%;
  height: 1px;
  border: 0;
  border-top: 1px solid #444;
  margin: 0;
  padding: 0;
}

/* Scrollbar for Info Panel */
#admin-hero-modal ::-webkit-scrollbar {
  width: 0.5em !important;
  background-color: transparent !important;
}

#admin-hero-modal ::-webkit-scrollbar-track {
  background-color: transparent !important;
}

#admin-hero-modal ::-webkit-scrollbar-thumb {
  background-color: #888888 !important;
  border-radius: 2px !important;
  cursor: pointer !important;
}

#admin-hero-modal ::-webkit-scrollbar-thumb:hover {
  background-color: #aaaaaa !important;
  cursor: pointer !important;
}

/* copy button styling */
#admin-hero-modal .admin-hero-copy-btn,
#admin-hero-modal .admin-hero-link-btn {
  background: none;
  border: none;
  margin-left: 0.5em;
  cursor: pointer;
  font-size: 1em;
  color: #aaaaaa;
  padding: 0;
}
#admin-hero-modal .admin-hero-copy-btn:hover,
#admin-hero-modal .admin-hero-link-btn:hover {
  color: #56ff00;
}
#admin-hero-modal .admin-hero-copy-btn:focus,
#admin-hero-modal .admin-hero-link-btn:focus {
  outline: none;
  box-shadow: none;
}
#admin-hero-modal .admin-hero-copy-btn .fas.fa-check {
  color: #56ff00;
}

#admin-hero-modal #admin-hero-default-panel-select {
  display: block !important;
  margin-left: 10px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

/* link button styling */
/* wrap inputs + buttons 
.admin-hero-info-input-wrap {
  display: inline-flex;
  align-items: center;
}*/
/* copy & link buttons 
.admin-hero-copy-btn,
.admin-hero-link-btn {
  background: none;
  border: none;
  margin-left: 0.5em;
  padding: 0;
  cursor: pointer;
  font-size: 1em;
  color: inherit;
}
.admin-hero-link-btn {
  text-decoration: none;
}*/
/* hover states 
.admin-hero-copy-btn:hover i,
.admin-hero-link-btn:hover i {
  color: #56ff00;
}*/
/* ensure the icon sits nicely 
.admin-hero-copy-btn i,
.admin-hero-link-btn i {
  width: 1em;
  height: 1em;
}*/

/*********************/
/* Responsive Design */
/*********************/
@media (max-width: 781px) {
  #admin-hero-modal {
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    border-radius: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  #admin-hero-modal #admin-hero-reset-modal {
    display: none !important;
  }

  #wp-admin-bar-top-secondary #wp-admin-bar-admin-hero {
    order: -1 !important;
  }

  #wpadminbar #wp-admin-bar-admin-hero {
    display: block !important;
  }

  #wp-admin-bar-admin-hero a {
    font-size: 24px !important;
    line-height: 1.9em !important;
    color: white;
    background: none;
    display: inline-block !important;
  }

  #wp-admin-bar-admin-hero a i {
    font-size: 16px;
  }

  #wp-admin-bar-admin-hero a:hover {
    color: #56ff00;
    background: rgba(255, 255, 255, 0.1);
  }

  #admin-hero-modal #admin-hero-editor {
    height: 200px;
    min-height: 150px;
    font-size: 14px;
    line-height: 1.5;
  }

  #admin-hero-modal #admin-hero-editor .ql-editor {
    font-size: 14px;
    line-height: 1.5;
  }

  #admin-hero-floating-button {
    padding: 10px;
  }
}
