textarea {
    margin: 5px 0px;
}









#progress-container {
    width: -webkit-fill-available;
    height: 25px;
}

.fe-loader-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 55, 53, 0); /* Loader container background color */
    padding: 0px;
    border-radius: 5px;
}

#progress-container progress::-webkit-progress-bar {
    background-color: rgb(159, 220, 186); /* Background of the progress bar */
}

#progress-container progress {
    width: -webkit-fill-available;
    height: 5px;
    background-color: white; /* Progress bar background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

#progress-container progress::-webkit-progress-value {
    background-color: rgb(94, 255, 102); /* Progress value color */
}

#progress-container progress::-moz-progress-bar {
    background-color: rgb(132, 37, 126); /* Progress value color (for Firefox) */
}
progress{
    width: 100%;
}






input[type="range"] {
    -webkit-appearance: none; /* Removes default appearance */
    width: 100%; /* Full width of the container */
    height: 6px; /* Height of the slider track */
    background: #ffffff; /* Light background for the track */
    border-radius: 5px; /* Rounded corners for the track */
    outline: none; /* Removes the focus outline */
    border: 1px solid #ababab; /* Subtle border around the track */
    transition: background 0.3s ease; /* Smooth transition for track color */
    padding: 12px;
  }
  
  /* Webkit browsers (Chrome, Safari) */
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; /* Size of the thumb */
    height: 18px;
    margin-top: -6px;
    background: #7fc795; /* Green color for the thumb */
    border-radius: 50%; /* Round thumb */
    cursor: pointer; /* Hand cursor when hovering */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    transition: background 0.3s ease; /* Smooth color change */
  }
  
  input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: #a8b0ad; /* Greenish track background */
    border-radius: 5px;
  }
  
  /* Firefox */
  input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    margin-top: -6px;
    background: #7fc795;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  input[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: #a8b0ad;
    border-radius: 5px;
  }
  
  /* Edge/IE */
  input[type="range"]::-ms-thumb {
    width: 18px;
    height: 18px;
    margin-top: -6px;
    background: #7fc795;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  input[type="range"]::-ms-track {
    width: 100%;
    height: 6px;
    background: transparent;
    border-color: transparent;
    color: transparent;
  }
  










  /* Character Counter Styles */
.char-counter-container {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: start;
    margin-top: -12px;
    margin-bottom: 10px;
}

.char-counter-circle {
    width: 30px;
    height: 30px;
    position: relative;
}

.char-counter-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid #b3b3b3;
}
.modal-content.dark .char-counter-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid #404040;
}


 .char-counter-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background-color: #ffffff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content.dark .char-counter-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background-color: #000000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.char-counter-text {
    font-weight: bold;
    font-size: 10px;
}






/* Common Styles for Inputs, Textareas, and Selects */
.fe-field,
.fe-select,
.fe-textarea,
.fe-tag-textbox {
    font-family: 'Albert Sans', sans-serif;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    line-height: 20px;
    border-radius: 4px;
    outline: none;
    color: #000000;
    /* border: 2px solid #c8c8c8;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.10);
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.10);
     */
    /* box-shadow: none;
    -webkit-box-shadow: none; */
    border: 1px solid silver;
    -webkit-box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.12), 0 1px rgba(255, 255, 255, .8);

    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-content.dark .fe-field,
.modal-content.dark .fe-select,
.modal-content.dark .fe-textarea,
.modal-content.dark .fe-tag-textbox {
    font-family: 'Albert Sans', sans-serif;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    line-height: 20px;
    border-radius: 6px;
    outline: none;
    color: #ffffff;
    background: linear-gradient(to bottom, #000000 0%, #0b0b0b 100%);
    border: 1px solid rgba(191, 191, 191, 0.075);
    -webkit-box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.875), inset -2px -2px 4px rgba(75, 75, 77, 0.2), 0 0 1px #131314;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.875), inset -2px -2px 4px rgba(75, 75, 77, 0.2), 0 0 1px #131314;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fe-field {
    height: 40px;
    margin: 1px 0px 2px 0px;
}
.fe-tag-input {    
    margin: 0px 0px 2px 0px;
}
.fe-tag-textbox {
    margin: 0px 0px;
}
.fe-textarea{
    margin: 2px 0px -5px 0px;
}
.fe-select {
    margin: 2px 0px 2px 0px;
}
label.fe-switch {
    margin: 2px 0px 0px 0px;
}


/* Hover Styles */
.fe-field:hover,
.fe-select:hover,
.fe-tag-textbox:hover {
    border-color: #808080;
}

/* Focus Styles */
.fe-field:focus,
.fe-select:focus,
.fe-textarea:focus,
.fe-tag-textbox:focus {
    /* border-color: #0099ff; */
    /* box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.0);
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.0);
    border: 2px solid #ffffff00; */
    border: 1px solid silver;
    -webkit-box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 5px rgba(255, 255, 255, 0.263), 0 1px rgba(255, 255, 255, .8);
}

/* Disabled Styles */
.fe-field:disabled,
.fe-select:disabled,
.fe-tag-textbox:disabled {
    background-color: #f5f5f5 !important;
    border-color: #dcdcdc !important;
    cursor: not-allowed;
    -webkit-box-shadow: none;
    box-shadow: none;
}

/* Autofill Styles - make them look the same as regular fields */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    background-color: #ffffff !important; /* White background like other fields */
    color: #000000 !important; /* Text color */
    
    /* border-color: #c8c8c8 !important;
    -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.10);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.10); */
    border: 1px solid silver;
    -webkit-box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, .8);
}

.modal-content.dark input:-webkit-autofill,
.modal-content.dark textarea:-webkit-autofill,
.modal-content.dark select:-webkit-autofill {
    background-color: #000000 !important;
    -webkit-box-shadow: 0 0 0 30px #000000 inset !important;
    -webkit-text-fill-color: #ffffff !important;
}



/* Autofill Disabled State */
input:-webkit-autofill:disabled,
textarea:-webkit-autofill:disabled,
select:-webkit-autofill:disabled {
    background-color: #f5f5f5 !important;
    -webkit-box-shadow: 0 0 0px 1000px #f5f5f5 inset !important;
    box-shadow: 0 0 0px 1000px #f5f5f5 inset !important;
    border-color: #dcdcdc !important;
    color: #9c9c9c !important; /* Disabled text color */
}

.fe-split { 
    width: 100%;
    gap: 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
    align-items: center;
}

/* Error Message */
.fe-error-message {
    font-size: 11px;
    color: #e27b7b;
    overflow: hidden;
    text-align: right;
}
.modal-content.dark .fe-error-message {
    font-size: 11px;
    color: #d56161;
    overflow: hidden;
    text-align: right;
}

/* Form Field Block */
.fe-formfield-block {
    margin-bottom: 0px;
}

/* Label */
.fe-label {
    font-family: 'Albert Sans', sans-serif;
    font-size: 14px;
    color: #6b6b6b;
    margin: 0px 0px 5px 0px;
    padding-left: 0;
    cursor: default;
}
.modal-content.dark .fe-label {
    font-family: 'Albert Sans', sans-serif;
    font-size: 14px;
    color: #d1d1d1;
    margin: 0px 0px 5px 0px;
    padding-left: 0;
    cursor: default;
}

/* Tag List */
.fe-tag-list {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    flex-wrap: wrap;
    margin: 4px 0px;
    gap: 4px;
}

/* Individual Tag */
.fe-tag {
    background-color: #f9f9f9; /* Slightly off-white for better contrast */
    border-radius: 35px; /* Smooth rounded corners */
    padding: 6px 8px 6px 12px; /* Balanced padding */
    margin: 2px 0;
    border: 1px solid #d1d1d1; /* Subtle border */
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 13px; /* Slightly larger font for readability */
    color: #333834;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12); /* Drop shadow for depth */
}


/* Tag Remove Button */
.fe-tag-remove {
    cursor: pointer;
    margin-left: 5px;
    background-color: #e4e4e4;
    border-radius: 25px;
    width: 17px;
    height: 17px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 9px;
    font-weight: bold;
    color: #8d8d8d;
}

/* Ensure the parent container is relatively positioned */
.fe-tag-field {
    position: relative;
}

/* Tag Dropdown */
.fe-tag-dropdown {
    position: absolute;
    top: 100%; /* Position directly below the input field */
    left: 0; /* Align with the left edge of the input */
    background-color: #fff;
    width: 100%; /* Match the width of the input */
    max-height: 150px;  /* Limit the height to prevent large dropdowns */
    overflow-y: auto;  /* Enable scrolling if content exceeds max-height */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 6px 6px;
    padding: 0;
    z-index: 2;
}

.fe-tag-dropdown-item {
    font-family: 'Albert Sans', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.fe-tag-dropdown-item:hover {
    background-color: #f6f7f8;
}



/* Toggle Switch */
.fe-switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 26px;
    margin: 0;
}

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

.fe-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
}

.fe-slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .fe-slider {
    background-color: #7fc795;
}

input:checked + .fe-slider:before {
    transform: translateX(26px);
}

input:focus + .fe-slider {
    box-shadow: 0 0 1px #7fc795;
    -webkit-box-shadow: 0 0 1px #7fc795;
}

.fe-slider.round {
    border-radius: 34px;
}

.fe-slider.round:before {
    border-radius: 50%;
}






/* Button Styles */
.fe-btn-submit {
    background-color: #4CAF82;
    color: #ffffff;
    border-radius: 5px;
    border: 1px solid #000;
    padding: 10px 16px;
    font-weight: 600;
    margin: 15px 0;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
}
.modal-content.dark .fe-btn-submit {
    background-color: #00000000;
    color: #4CAF82;
    border-radius: 5px;
    border: 1px solid #4CAF82;
    padding: 10px 16px;
    font-weight: 600;
    margin: 15px 0;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
}


.fe-btn-submit:hover {
    background-color: #45A072;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.modal-content.dark .fe-btn-submit:hover {
    background-color: #10281c;
    color: #4db782;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


.fe-btn-submit:disabled {
    background-color: #d9d9d9;
    border-top: 2px solid #d9d9d9;
    color: #a0a0a0;
    cursor: not-allowed;
    box-shadow: none;
}
.modal-content.dark .fe-btn-submit:disabled {
    background-color: #272727;
    border: 1px solid #000000;
    color: #515151;
    cursor: not-allowed;
    box-shadow: none;
}






/* Media Upload Container */
.fe-media-upload-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}


.fe-media-dropzone:hover {
    border-color: #aaa;
}

.fe-media-dropzone-hover {
    border-color: #7fc795;
}

/* Media List */
.fe-media-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.fe-media-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.fe-media-file-icon {
    display: inline-block;
    font-size: 12px;
    text-align: center;
    line-height: 80px;
    background-color: #f0f0f0;
    border-radius: 4px;
    padding: 5px;
    color: #555;
}

/* Remove Button for Media Items */
.fe-media-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ed9194;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
}

/* Media Dropzone */
.fe-media-dropzone {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 10px;
}

.fe-media-dropzone.fe-drag-over {
    background-color: #f6f6f6;
    border-color: #0099ff;
}

.fe-media-input {
    display: none; /* Hide the file input */
}

.fe-media-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fe-media-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    margin-right: 10px;
}

.fe-media-thumb {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.fe-media-item .fe-tag-remove {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
}






.mm-container {
    /* border: 1px solid #000000; */
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
    max-height: 383px;
    overflow-y: scroll;
    overflow-x: hidden;
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
    gap: 20px;
    padding: 5px;
}

.mm-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    height: 225px;
}

.mm-item-container {
    width: calc(33.33% - 10px);
    margin: 5px;
    padding: 10px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    aspect-ratio: 1;
    background-image: var(--mm-thumbnail);
}

.mm-add-button {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #3ccf7d;
    color: #ffffff;
    border: none;
    width: 24px;
    height: 24px;
    font-size: 12px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.mm-info-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    background: linear-gradient(0deg, #00000080 ,#0000000e);
    padding: 8px;
}

.mm-item-title {
    font-size: 11px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}
.mm-filter-label{
    font-size: 10px;
}
.mm-item-link a {
    font-size: 12px;
    color: #666;
}
.mm-add-meta1 {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
