/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */
 /* converts input to albel */

/* Ensure high specificity */
input.as-label {
    border: none !important;
    background: none !important;
    color: inherit !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: bolder;
    padding: 2px !important;
    margin: 0 !important;
    outline: none !important;
    pointer-events: none !important; /* Make it non-interactive */
    width: auto !important; /* Adjust width as needed */
    display: inline-block !important; /* Ensure it behaves like a label */
    vertical-align: middle !important; /* Align vertically with other elements */
    line-height: normal !important; /* Ensure consistent line height */

}
input.as-dashed-line {
    border: none !important;
    border-bottom: 1px dashed !important; /* Add dashed bottom border */
    background: none !important;
    color: inherit !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: bolder;
    padding: 2px !important;
    margin: 0 !important;
    outline: none !important;
    width: auto !important; /* Adjust width as needed */
    display: inline-block !important; /* Ensure it behaves like a label */
    vertical-align: middle !important; /* Align vertically with other elements */
    line-height: normal !important; /* Ensure consistent line height */
}


/* Custom styles for checkboxes and labels */
/*
.form-check-input[type="checkbox"],
.form-check-input[type="radio"] {
    vertical-align: middle; 
    margin-top: 0.2rem; 
    margin-bottom: 0; 
}
    
*/


.ezwp-field-label{
   /* make bold */
    font-weight: bold;
  
}

.ezwp-tab-content-lhs{
    /*max-height: 500px; *//* Adjust the height as needed */
    overflow-y: auto;
} 
.ezwp-tab-content-rhs {
    max-height: 700px; /* Adjust the height as needed */
    overflow-y: auto;
}

/* form builder menu icon  */
.ezwpform-icons-blue-tint {
    color: rgb(98, 123, 251);
    transition: color 0.3s, text-shadow 0.3s; /* Smooth transition for color and shadow */
}

.ezwpform-icons-blue-tint:hover {
    text-shadow: 0 0 10px rgba(0, 0, 255, 0.7); /* Glow effect */
}

.ezwpform-icons-blue-tint:active {
    color: black; /* Change this to your desired active color */
}

/* Email template menu icons - distinct orange/amber tint */
.ezwpform-icons-orange-tint {
    color: #ff8c00; /* Dark orange */
    transition: color 0.3s, text-shadow 0.3s; /* Smooth transition for color and shadow */
}

.ezwpform-icons-orange-tint:hover {
    color: #ffa500; /* Lighter orange on hover */
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.7); /* Orange glow effect */
}

.ezwpform-icons-orange-tint:active {
    color: #d2691e; /* Darker orange when clicked */
}

/* Disabled icon styles */

.ezwpform-disabled-icon {
    color: gray;
    pointer-events: none; /* Prevents click events */
}

.ezwpform-image-preview {
    position: relative;
    display: inline-block;
    width: 200px; /* Adjust the width as needed */
}

.ezwpform-remove-image {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(255, 255, 255, 0.7);
    
    font-weight: bold;
    cursor: pointer;
    padding: 2px 5px;
}

.ezwp-on-drag-leftpaddingForm {
   padding-left: 40px; 
   padding-top: 10px; 
   padding-bottom: 10px; 


    background-color: #e6e6e6; 
    transition: padding 0.2s ease;


}

/* form style properties should be in public css */
.ezwpform-form-container-styles {
    padding: 20px;
   
}

.ezwpfrom-name-val-list {
    border-top: 1px solid #e1dcdc; /* Top border */
    padding: 10px 0; /* Optional: Add some padding for better spacing */
}

.dragging{
    border: 2px dashed rgba(13, 110, 253, 0.7);
    box-shadow: 0 0 8px rgba(13, 110, 253, 0.3);
}


.draggable-item:hover {
    border: 2px dashed rgba(13, 110, 253, 0.5);
}






.ezwp-dropzoneBorder{
    border: 2px dashed #d61818; /* Adjust the color and thickness as needed */
    border-radius: 5px; /* Optional: Add border radius */
    padding: 10px; /* Optional: Add padding for better spacing */
    margin-bottom: 10px; /* Optional: Add margin for better spacing */
}

.card {
  width: 100%;
}

.ezwp-form-highlight-row {
    background-color: #f8d7da  !important; /* Light red */
}

/* Disabled icon styles */
.ezwpform-disabled-icon {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Checkbox and Radio Button Styles make sure they align properly */
.form-check {
  display: flex;
  align-items: center;
}

.form-check-input {
  margin-top: 0; /* Remove default vertical offset */
}

.form-check-label {
  margin-bottom: 0; /* Prevent label from dropping */
  line-height: 1;   /* Optional: tighten vertical spacing */
}

/* Force spectrum color picker to be full width in form style settings */
.sp-replacer.ezwp-spectrum-full-width {
  width: 100% !important;
  min-height: 30px;
}

/* Inline editing styles */
.ezwp-inline-editing {
  transition: all 0.2s ease-in-out;
  position: relative;
  z-index: 1000;
}

.ezwp-inline-editing:focus {
  outline: 2px dashed #007bff !important;
  outline-offset: 2px !important;
  background-color: rgba(0, 123, 255, 0.05) !important;
  cursor: text !important;
}

/* Prevent selection of field container while editing text */
[contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

/* Visual feedback for long-press eligibility */
[fldtype="label"]:hover label,
[fldtype="paragraph"]:hover p,
[fldtype="heading"]:hover h1,
[fldtype="heading"]:hover h2,
[fldtype="heading"]:hover h3,
[fldtype="heading"]:hover h4,
[fldtype="heading"]:hover h5,
[fldtype="heading"]:hover h6,
[fldtype="h1"]:hover h1,
[fldtype="h2"]:hover h2,
[fldtype="h3"]:hover h3,
[fldtype="h4"]:hover h4,
[fldtype="h5"]:hover h5,
[fldtype="h6"]:hover h6 {
  cursor: pointer;
  position: relative;
}

/* Long press hint (optional - subtle hint for users) */
[fldtype="label"]:active label,
[fldtype="paragraph"]:active p,
[fldtype="heading"]:active h1,
[fldtype="heading"]:active h2,
[fldtype="heading"]:active h3,
[fldtype="heading"]:active h4,
[fldtype="heading"]:active h5,
[fldtype="heading"]:active h6,
[fldtype="h1"]:active h1,
[fldtype="h2"]:active h2,
[fldtype="h3"]:active h3,
[fldtype="h4"]:active h4,
[fldtype="h5"]:active h5,
[fldtype="h6"]:active h6 {
  opacity: 0.8;
}

/* Fallback for any spectrum replacers */
.spectrum-replacer {
  width: 100px;
  min-height: 30px;
}

/* Accordion button styles */
.accordion-button {
  font-weight: 600 !important;
  font-style: italic !important;
}

/* Inline editing context menu styles */
.ezwp-inline-context-menu {
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 4px;
  display: flex;
  gap: 2px;
  z-index: 10000;
}

.ezwp-inline-context-menu .format-btn {
  border: 1px solid #ddd;
  background: white;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.ezwp-inline-context-menu .format-btn:hover {
  background: #f0f0f0;
  border-color: #999;
}

.ezwp-inline-context-menu .format-btn:active {
  background: #e0e0e0;
}

.ezwp-inline-context-menu .format-btn.active {
  background: #007bff;
  color: white;
  border-color: #0056b3;
}

.ezwp-inline-context-menu .format-btn.active:hover {
  background: #0056b3;
  border-color: #004085;
}

.ezwp-inline-context-menu .format-btn strong {
  font-weight: bold;
}

.ezwp-inline-context-menu .format-btn em {
  font-style: italic;
}

.ezwp-inline-context-menu .format-btn u {
  text-decoration: underline;
}
