/* Ensure #appMain has a positioning context */
#appMain {
  position: relative;
}

/* Initial styles for #appMain */
.flowPage #appMain {
  transition: padding 0.1s ease; /* Add transition for padding */
}

/* Styles for #appMain when the right panel is open */
#appMain.right-panel-open {
  padding-left: 96px;
  padding-right: 456px;
}

/* Right panel visible state */
.right-panel.open {
  transform: translateX(0); /* Slide the panel into view */
  transition: transform 0.3s ease;
}

/* Right panel hidden state */
.right-panel.closing {
  transform: translateX(100%); /* Slide the panel out of view */
  transition: transform 0.3s ease;
}

/* Transition for the sidebar toggle button if needed */
.sidebar-toggle {
  transition: /* properties to animate */ 0.3s ease;
  /* Add styles for collapsed and expanded states if necessary */
}

/* Right panel header */
.right-panel-header {
  background-color: #ffffff; /* Adjust as needed */
  border-bottom: 1px solid #EAECF0; /* Optional border */
  padding: 0; /* Remove default padding if necessary */
  height: 72px;
}

/* Action buttons container */
.right-panel-action-buttons {
  display: flex;
  align-items: center;
  padding: 16px; /* Adjust padding as needed */
}

/* Grouping the first six action buttons */
.action-buttons-group {
  display: flex;
  align-items: center;
}

/* Style for the action buttons */
.icon-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.action-buttons-group .icon-button:focus,
.action-buttons-group .icon-button:active {
  outline: none;
}

/* Spacing between the first six buttons */
.action-buttons-group .icon-button + .icon-button {
  margin-left: 24px;
}

.action-buttons-group .icon-button:hover > svg path {
  stroke: #101828; /* Change the fill color on hover */
}

.action-buttons-group .icon-button.saved:hover > svg path,
.action-buttons-group .icon-button[data-action="delete"]:hover > svg path {
  /* stroke: #D92D20;  */
}
/* Style for the close button */
.close-button {
  margin-left: auto; /* Pushes the close button to the rightmost */
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid #d0d5dd;
}

/* Icon sizing */
.icon-button svg {
  width: 24px; /* Adjust the size as needed */
  height: 24px;
}

/* Optional: Hover effect for buttons */
.icon-button:hover {
  opacity: 0.8; /* Example hover effect */
}

/* Right panel footer container */
.right-panel-footer-container {
  display: flex;
  padding: 16px;
  gap: 8px; /* Gap between buttons */
}

/* Ensure the buttons occupy the full width */
.right-panel-footer-container .send-button, .right-panel-footer-container button {
  flex: 1; /* Makes buttons take equal width */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px 12px 16px;
  height: 48px;
  color: #fff; /* Button text color */
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}
.right-panel-footer-container button.cancel-changes{
    color: #1D2939;
}
/* Style the icons within the buttons */
.right-panel-footer-container .send-button img {
  width: 20px; /* Adjust as needed */
  height: 20px;
  margin-right: 8px; /* Space between icon and text */
}

/* Style for the right panel footer */
.right-panel-footer {
  background-color: #ffffff; /* Adjust as needed */
  border-top: 1px solid #EAECF0; /* Optional border */
}

.right-panel-body {
  background: #fff;
  overflow-y: scroll;
  overflow-x: hidden;
}

.right-panel-body-content {
  padding: 8px;
}

.right-panel-body-content h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 32px;
  margin-bottom: 16px;
  padding: 8px;
}


.right-panel-action-header {
    display: flex;
    align-items: center;
    padding: 16px;
  }
  
  .right-panel-action-header .header-title {
    font-size: 20px;
    font-weight: bold;
  }
  
  .right-panel-action-header .close-button {
    margin-left: auto;
  }

  
  /* Visible Indicator for Drag Handle on Hover */
  .right-panel .drag-handle:hover {
    /* background-color: rgba(0, 0, 0, 0.1);  */
  }
  
  /* Adjust Right Panel Positioning */
  #right-panel-container {
    position: fixed; /* Fix to viewport */
    top: 0;
    right: 0;
    height: 100%;
    z-index: 1000; /* Ensure it's above other content */
    padding-top: 93px;
  }
  
  .right-panel {
    position: relative; /* Changed from absolute to relative */
    width: 440px; /* Initial width */
    max-width: 1000px; /* Maximum width */
    min-width: 300px; /* Minimum width */
    height: 100%;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #EAECF0;
    overflow: visible;
    transition: width 0.2s ease; /* Smooth transition for width changes */
    box-shadow: none;
  }
  
  /* Adjust #appMain when right panel is open */
  #appMain.right-panel-open {
    padding-left: 96px;
    padding-right: 456px; /* Adjusted dynamically via JavaScript */
    transition: padding 0.2s ease; /* Smooth transition for padding changes */
  }
  

/* Existing styles for .right-panel .drag-handle */
.right-panel .drag-handle {
  position: absolute;
  left: 0;
  top: 0;
  margin-left: -10px;
  width: 20px; 
  height: 100%;
  z-index: 1001; 
  cursor: ew-resize;
  align-content: center;

}

/* Style for the SVG icon */
.right-panel .drag-handle svg {
  pointer-events: none;
}

.right-panel-body-content .text{
  font-size: 14px;
  line-height: 24px;
}