body {
    background-color: #fcfcfc;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    padding-bottom: 0px; /* Adjust the padding as needed */
    min-height: 100vh; /* Ensure the body takes at least the full height of the viewport */
    display: flex; /* Use flexbox to align content */
    flex-direction: column; /* Arrange children in a column */
    margin: 0; /* Remove default margin */
    height: 100%;
    width: 100%;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 16px 16px;
}


.footer-1 {

    text-align:center;
    padding: 25px 0px 1px 0px;
}
  .footer-copy-right {
    font-size: 13px; 
    margin-top: 7px
  }

.main-content {
	
    padding: 5px !important;
  
}
/* Media query for mobile devices */
@media (max-width: 768px) {
    .header-container {
        position: sticky;  /* Sticky header on mobile */
        top: 0;            /* Stick to the top */
    }
}

/* Media query for larger screens (desktop) */
@media (min-width: 769px) {
    .header-container {
        position: fixed;  /* Fixed header on desktop, will hide on scroll */
        top: 0;
    }
}


.container {
    flex: 1; /* This makes the main content area flexible */
}

.scrollbar {
    width: 100%;
    max-height: 200px;
    overflow: auto;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(255, 255, 255, 0.3);
}


/* Bootstrap Modal Scrollbar Styling */
.modal-body {
    overflow-y: auto;
    max-height: 70vh;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.modal-body::-webkit-scrollbar {
    width: 12px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.5);
}


.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f8f8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.top-bar .btn {
    margin-left: 10px;
}

.header-container {
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    position: sticky;  /* Make it sticky */
    top: 0;            /* Stick to the top of the viewport */
    z-index: 1000;     /* Ensure it's above other elements */
    width: 100%;       /* Ensure it takes the full width of the screen */
}



/* Profile image preview style */


.profile-picture-container {
    display: flex;
    flex-direction: column; /* Stack label and image vertically */
    align-items: center; /* Center items horizontally */
    margin-top: 10px;
    position: relative; /* To position the spinner inside */
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid #DEE2E6;
    object-fit: cover;
    cursor: pointer;
    margin-bottom: 20px;
}

#edit-icon {
    position: absolute;
    top: 5px;
    right: 6px;
    color: #333;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    padding: 4px;
    font-size: 12px;
    backdrop-filter: blur(5px);
}

#loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 255, 0.2); /* Light blue background with transparency */
    border-top: 3px solid blue; /* Solid blue spinner color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 10;
}

/* Spinner animation */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.file-format-error {
    color: red;
    display: none;
    margin-top: 5px;
}


/* Endof Profile image preview style */

.page-break {
    width: 100%;
    height: 2px;
    background-color: #ccc;
    margin: 60px 0;
}

.header-image {
    max-width: 120px;
}

.bold-username {
    font-weight: bold !important;
}

.smaller-button-logout {
    width: 200px;
    margin: 20px auto 0 auto;
    display: block;
    padding: 5px 10px;
    font-size: 0.8rem;
}

.card {
    margin-bottom: 20px;
}

.card-header h2 {
    margin-bottom: 0;
}

.btn-block {
    margin-top: 10px;
}

.banner {
    width: 100%;
    text-align: center;
    background-color: #f4f4f9;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.banner-logo {
    max-width: 200px;
    height: auto;
}


.iframe-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    height: 1000px;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}



.text-muted {
    --bs-text-opacity: 1;
    color: var(--bs-secondary-color) !important;
    margin: 10px;
}


.predefined-templates-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.template-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
}

.template-thumbnail {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.template-option input[type="radio"] {
    margin-right: 10px;
}


.bg-light {
    --bs-bg-opacity: 1;
    background-color: rgb(255 255 255) !important;
}



/* Apply Cairo font to Date Range Picker Input */
#date-range-picker {
    font-family: 'Cairo', sans-serif; /* Apply Cairo font */
}

/* Apply Cairo font to Date Range Picker Dropdown */
.daterangepicker .drp-buttons {
    font-family: 'Cairo', sans-serif; /* Apply Cairo font */
}

/* Apply Cairo font to Calendar and Range Items */
.daterangepicker .calendar-table,
.daterangepicker .ranges li,
.daterangepicker .drp-calendar .calendar-table th,
.daterangepicker .drp-calendar .calendar-table td {
    font-family: 'Cairo', sans-serif; /* Apply Cairo font */
}


/* Styling for the collapsible section */
#statsContent {
    display: none;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#statsContent.active {
    display: block;
    max-height: 1000px; /* Adjust based on content height */
}

/* Style the header and chevron icon for consistent width and clickable area */
#toggleStats {
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Rotate the chevron icon when the content is expanded */
#chevronIcon.rotate {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Container styling to ensure proper alignment */
.user-link-container {
    direction: rtl; /* Ensure right-to-left text direction */
    margin-top: 20px;
}

/* Wrapper to control the overall width */
.user-link-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 350px; /* Limit the width */
    margin: 0 auto; /* Center the wrapper */
}

/* Input field styling */
.user-link-input {
    border-radius: 50px; /* Fully rounded corners */
    border: 1px solid #ddd; /* Subtle border */
    padding: 10px 20px; /* Add padding */
    text-align: center; /* Center text */
    width: 100%; /* Full width for the input */
    height: 40px; /* Set the height to match the button */
    line-height: 40px; /* Ensure text is vertically centered */
}

/* Copy button styling */
.user-link-copy-btn {
    border-radius: 50px; /* Fully rounded corners */
    padding: 0 20px; /* Adjust padding to match input height */
    font-size: 14px;
    background-color: #212529; /* Button color */
    color: white; /* Text color */
    cursor: pointer; /* Pointer cursor on hover */
    border: none; /* Remove default border */
    margin-left: 10px; /* Space between input and button */
    height: 40px; /* Set the height to match the input */
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center text vertically */
    justify-content: center; /* Center text horizontally */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

/* Button hover effect */
.user-link-copy-btn:hover {
    background-color: #505050; /* Slightly lighter color on hover */
}

/* Button active effect (when clicked) */
.user-link-copy-btn:active {
    background-color: #1a1a1a; /* Even darker color when the button is pressed */
}

/* Ensure button and input fit properly in RTL layout */
.input-group {
    display: flex;
    flex-direction: row-reverse;
}

/* Custom Popup Notification */
.copy-notification {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    color: black; /* Black text color */
    padding: 20px 30px; /* Increased padding for a larger box */
    border-radius: 10px; /* Square with slightly rounded corners */
    font-size: 16px; /* Increased font size for better readability */
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Prevent clicks when hidden */
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
    z-index: 10000;
    backdrop-filter: blur(1px); /* Blurred background */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1); /* Soft shadow for better visibility */
    max-width: 90%; /* Ensure it doesn’t get too wide on large screens */
    width: auto; /* Let the width adjust based on content */
    text-align: center; /* Center the text */
}

/* Show the notification */
.copy-notification.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out;
}


.chart-container {
    width: 100%;
    height: 400px;  /* Set a fixed height */
    position: relative;
}

.blurred-chart canvas {
    filter: blur(4px); /* Apply blur only to the canvas (chart) */
}

.overlay-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #a0a0a0;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.7); /* Light background to make text stand out */
    padding: 10px;
    border-radius: 5px;
    z-index: 10;
    pointer-events: none; /* Make sure the message doesn't block clicks */
}



.tooltip-icon {
    display: inline-block;
    margin-left: 6px;
    position: relative;
    cursor: pointer;
    padding-right: 10px;
}

.tooltip-icon i {
    font-size: 0.6em; /* Adjust icon size */
    color: #555;
}

.custom-tooltip {
    display: none;
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    top: -10px;
    left: 30px;
    width: 180px;
    z-index: 10;
    opacity: 100;
    font-size: 0.85em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tooltip-icon:hover .custom-tooltip {
    display: block;
}

.custom-tooltip p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.custom-tooltip .tooltip-image {
    margin-top: 5px;
    width: 100%;
    border-radius: 4px;
}



/* GIPHY - START */


/* Modal Background */
.giphy-modal-window-1 {
    position: fixed;
    z-index: 1000; /* On top of other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.giphy-modal-content-wrapper-1 {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%; /* Adjust width as needed */
    max-width: 600px; /* Max width for larger screens */
    position: relative;
    max-height: 80vh; /* Limit the modal height to 80% of the viewport height */
    overflow-y: auto; /* Enable vertical scrolling */
    margin: auto;
    scrollbar-width: none; /* For Firefox */
}

.giphy-modal-content-wrapper-1::-webkit-scrollbar {
    display: none; /* Hide the scroll bar for WebKit browsers */
}




/* Close Button */
.giphy-close-button-1 {
    cursor: pointer;
    font-size: 24px;
    color: #333;
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Input and Button Styles */
.giphy-search-input-1 {
    width: 100%; /* Full width */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px; /* Space below the input */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.giphy-search-button-1 {
    width: 100%; /* Full width */
    padding: 10px;
    background-color: #007bff; /* Primary button color */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Button Hover Effect */
.giphy-search-button-1:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

/* Results Container */
.giphy-results-container-1 {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between results */
}

/* Individual Result Image */
.giphy-results-container-1 img {
    width: 100px; /* Set a fixed size for GIFs */
    height: auto; /* Maintain aspect ratio */
    border-radius: 4px;
    cursor: pointer;
}

/* No Results Message */
.giphy-no-results-message-1 {
    margin-top: 15px;
    text-align: center;
    font-size: 14px; /* Adjust font size as needed */
    color: #666; /* Lighter color for no results message */
}

.pagination {
    direction: rtl; /* Set direction to RTL */
    text-align: right; /* Align text to the right */
}
.page-item {
    margin: 0 2px; /* Space between pagination items */
}

.pagination-container {
    position: sticky;
    bottom: 0;
    background-color: white; /* Match the modal background */
    padding-top: 10px; /* Space above the pagination */
}

.pagination-button {
    background-color: #007bff; /* Bootstrap primary color */
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
}

.pagination-button:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

.pagination-button:disabled {
    background-color: #cccccc; /* Disabled state */
    cursor: not-allowed;
}

.pagination .page-link {
    color: #212529 !important;
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    margin: 0 2px;
}

.pagination .page-link:hover {
    color: #212529 !important;
    background-color: #e9ecef !important;
    border-color: #dee2e6 !important;
}

.pagination .page-item.active .page-link {
    color: #ffffff !important;
    background-color: #212529 !important;
    border-color: #212529 !important;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d !important;
    background-color: #ffffff !important;
    border-color: #dee2e6 !important;
}


.giphy-modal-close-button-1 {
    cursor: pointer;
    font-size: 24px; /* Increase font size for visibility */
    color: #333; /* Set text color */
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px; /* Set width for circular shape */
    height: 40px; /* Set height for circular shape */
    border-radius: 50%; /* Makes it circular */
    background-color: #f0f0f0; /* Light background color for the circle */
    display: flex; /* Center the icon */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: Add shadow for depth */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.giphy-modal-content-wrapper-1 h2 {
    text-align: center; /* Center the text horizontally */
    margin-bottom: 20px; /* Optional: Add some space below the heading */
}

.giphy-modal-close-button-1:hover {
    background-color: #d0d0d0; /* Change background color on hover */
}


.page-item:first-child .page-link {
    border-top-right-radius: var(--bs-pagination-border-radius); /* Change to right */
    border-bottom-right-radius: var(--bs-pagination-border-radius); /* Change to right */
}

.page-item:last-child .page-link {
    border-top-left-radius: var(--bs-pagination-border-radius); /* Change to left */
    border-bottom-left-radius: var(--bs-pagination-border-radius); /* Change to left */
}



.page-item:not(:first-child) .page-link {
    border-radius: 5px !important;
}


/* GIPHY - END */


@media (min-width: 768px) {
    .container, .container-md, .container-sm {
        max-width: 1300px;
    }
    
    
        label, textarea {
        font-size: 14px;
        padding: 8px;
        margin-bottom: 1px;
    }
    
}


@media (max-width: 768px) {
    .btn-block, .btn {
        font-size: 12px;
        padding: 8px;
    }

    label, textarea {
        font-size: 14px;
        padding: 8px;
        margin-bottom: 1px;
    }


    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .card-header a {
        font-size: 0.9em;
    }

    .link-item label, .icon-item label {
        display: block;
        margin-bottom: 5px;
    }

    .banner-logo {
        max-width: 150px;
    }

    h2 {
        font-size: 1.5rem;
        text-align: center;
    }


    .top-bar {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 20px;
        background-color: #f8f8f8;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .top-bar .btn {
        margin: 5px;
    }

    .editor-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0 auto;
    }

    .editor {
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 10px;
        display: block;
    }

.save-button-container {
    position: static; /* or remove this property */
    margin: 20px 0; /* Adjust margin to space it correctly if needed */
    width: 100%; /* Optional: make the button take full width */
}


.save-button-container .btn {
    width: auto; /* Auto width for the button */
    margin: 0 auto; /* Center the button */
}
       
}

@media (min-width: 769px) {
    .save-button-container {
        bottom: 20px;
        right: 20px;
    }

    .save-button-container .btn {
        width: auto;
    }
        
}


/* HTML editor styling START */

/* Make the entire Quill toolbar right-to-left */
.ql-toolbar.ql-snow {
  direction: rtl;
}
/* Align the toolbar formats to the right */
.ql-toolbar.ql-snow .ql-formats {
  float: none;
  margin-right: auto;
  margin-left: 0;
}

/* Editor text: inherit global font, right-aligned, RTL */
#icon-modal-quill .ql-editor,
#link-modal-quill .ql-editor,
.sub-link-quill .ql-editor {
  font-family: inherit !important;
  text-align: right !important;
  direction: rtl !important;
}

/* Tooltip in RTL, shift slightly left (desktop default) */
.ql-tooltip.ql-editing[data-mode="link"] {
  direction: rtl;
  text-align: right;
  transform: translateX(-20px); 
  transform-origin: right top;
}

/* On mobile (<= 768px), scale tooltip down */
@media (max-width: 768px) {
  .ql-tooltip.ql-editing[data-mode="link"] {
    transform: scale(0.9) translateX(-20px);
  }
}

/* Also make the tooltip’s input/buttons RTL */
.ql-tooltip.ql-editing[data-mode="link"] input,
.ql-tooltip.ql-editing[data-mode="link"] .ql-action,
.ql-tooltip.ql-editing[data-mode="link"] .ql-remove {
  direction: rtl;
  text-align: right;
}


/* Only Quill editors use "Cairo" */
#icon-modal-quill .ql-editor,
#link-modal-quill .ql-editor,
.sub-link-quill .ql-editor {
  font-family: 'Cairo', sans-serif !important;
}

/* Constrain images in Quill editors */
.ql-editor img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    margin: 5px 0;
}

/* Ensure container doesn't overflow */
.ql-container {
    overflow: hidden;
}

.ql-editor {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Center the tooltip for both mobile and desktop */
.ql-snow .ql-tooltip {
    position: absolute !important; /* Position it absolutely */
    left: 50% !important; /* Center horizontally */
    transform: translateX(-50%) !important; /* Move it back by 50% of its own width */
    top: 10px !important; /* Optional: Adjust the vertical positioning */
    z-index: 9999; /* Make sure it displays on top */
}

/* Adjust for mobile devices */
@media (max-width: 768px) {
  .ql-snow .ql-tooltip {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 10px !important; /* Optional: Adjust the vertical positioning */
  }
}

/* Optional: Adjust for larger screens */
@media (min-width: 769px) {
  .ql-snow .ql-tooltip {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 10px !important; /* Optional: Adjust the vertical positioning */
  }
}


/* Make the list itself RTL */
.ql-editor[dir="rtl"] ol,
.ql-editor[dir="rtl"] ul {
  direction: rtl !important;
  text-align: right !important;
  list-style-position: outside !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force each <li> to shift text left so bullet stays right */
.ql-editor[dir="rtl"] li {
  direction: rtl !important;
  text-align: right !important;
  /* Add extra right padding so bullet has space */
  padding-right: 2em !important;
  /* Then do a negative text-indent to pull the text left */
  text-indent: -1.5em !important;
}

/* Make the text editor RTL */
#text-modal-quill .ql-editor {
  font-family: 'Cairo', sans-serif !important;
  text-align: right !important;
  direction: rtl !important;
}

/* Ensure proper RTL formatting for the text editor */
#text-modal-quill .ql-container {
  direction: rtl !important;
}

/* Also uncomment this line in your existing CSS */
#icon-modal-quill .ql-editor,
#link-modal-quill .ql-editor,
#text-modal-quill .ql-editor,
.sub-link-quill .ql-editor {
  font-family: inherit !important;
  text-align: right !important;
  direction: rtl !important;  /* Uncomment this line */
}

/* Fix list alignment in text editor */
#text-modal-quill .ql-editor ol,
#text-modal-quill .ql-editor ul {
  padding-right: 1.5em !important;
  padding-left: 0 !important;
}

/* Override the default direction for text-modal-quill */
#text-modal-quill {
  direction: rtl !important;
}



/* Improve the toolbar START */
/* Base toolbar styling */
.ql-toolbar.ql-snow {
  padding: 8px !important;
  background: #f8f9fa !important;
  border: 1px solid #ddd !important;
  
}

/* Larger buttons */
.ql-toolbar.ql-snow button {
  width: 36px !important;
  height: 36px !important;
  padding: 6px !important;
  margin: 0 2px !important;
}

/* Tablet (577px to 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .ql-picker-options {
        margin: 0 -90px !important;
    }
}

/* Small Desktop (769px to 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .ql-picker-options {
        margin: 0 -80px !important;
    }
}

/* Large Desktop (993px and up) */
@media (min-width: 993px) {
    .ql-picker-options {
        margin: 0 -80px !important;
    }
}

.ql-snow .ql-color-picker .ql-picker-item {
	height: 20px !important;
}

/* Larger icons */
.ql-toolbar.ql-snow button svg {
  width: 22px !important; 
  height: 22px !important;
}

/* Simple hover effect */
.ql-toolbar.ql-snow button:hover,
.ql-toolbar.ql-snow .ql-picker-label:hover {
  background-color: #f0f0f0 !important;
}

/* Active button state */
.ql-toolbar.ql-snow button.ql-active,
.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {
  background-color: #e6f2ff !important;
}

/* Adjust pickers */
.ql-toolbar.ql-snow .ql-picker {
  height: 36px !important;
}

.ql-toolbar.ql-snow .ql-picker-label {

  display: flex !important;
  align-items: center !important;
	
}

/* Better spacing */
.ql-toolbar.ql-snow .ql-formats {
  margin-right: 8px !important;
  margin-bottom: 5px !important;
	
}

/* Editor appearance */
.ql-editor {
  min-height: 180px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.ql-snow .ql-color-picker .ql-picker-label, .ql-snow .ql-icon-picker .ql-picker-label {
    padding: 2px 0px !important;
}



/* Improve the toolbar END */

/* HTML editor styling END */


/* elebration styling START */

#celebrationOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* Removed the grey background, now transparent */
  background: transparent;

  /* High z-index so it's above everything else */
  z-index: 999999999;

  /* No interaction with underlying elements */
  pointer-events: none;

  transition: opacity 0.5s;  /* Fade out a bit faster now */
  opacity: 1;
  display: block;
}

/* elebration styling END */


/* on boarding styling START ( For mobile only ) */

		@media (max-width: 576px) {
		  #onboardingTooltip {
			max-width: 90%;
			left: 50% !important;
			transform: translateX(-30%) !important;
		  }
		  #onboardingTooltipArrow {
			left: 90% !important;
			transform: translateX(-50%) !important;
		  }
		}

/* on boarding styling END */


/* Embed realted styling start */

.embed-type-box {
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  padding: 8px;
  transition: background-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
 
  overflow: hidden;     /* Hide any large images or text overflow */
}

.embed-type-box:hover {
  background-color: #f8f9fa;
}

.selected-box {
  border-color: #007bff !important;
  box-shadow: 0 0 0 2px #007bff33;
}

.embed-type-box i,
.embed-type-box img,
.embed-type-box svg {
  width: 32px;
  height: 32px;
  margin-bottom: 5px;
 
}

.embed-type-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #333;
  text-transform: capitalize;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 90%;
  direction: ltr;      /* Forces ellipsis on the right for LTR text */
  text-align: left;    /* Keeps text normally aligned left */
}

.link-icon i.fa-play-circle {
  color: #0D6EFD !important;
}

/* Embed realted styling END */

/* Embed and gallery blur Lock for PRO plan only START */

.free-user {
  filter: blur(0.75px);
  pointer-events: none;
}
.paid-user {
  filter: none;
  pointer-events: auto;
}

.pro-feature-notice {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  font-size: 1rem;
  background-color: #fde9b9c2;
  color: #222; 
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 280px;
  min-width: 240px;
  pointer-events: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 12px rgb(0 0 0 / 11%);
}

.pro-feature-badge {
  position: absolute;
  top: -35px;
  left: -30px;
  transform: rotate(-20deg);
  color: #000;
  font-size: 1.9rem;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: bold;
  pointer-events: none;
}


/* Embed and gallery blur Lock for PRO plan only END */



/* Mobile Dashboard shotcuts boxes START */

.shortcuts-row {
  margin: 0 auto;
}
.shortcut-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
  padding: 8px;
  font-size: 0.8rem;
  transition: box-shadow 0.2s ease-in-out;
}
.shortcut-box:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.shortcut-box i {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 3px;
}

/* Mobile Dashboard shotcuts boxes END */


/* Change the primary Color for the buttons START */

.btn-primary {
  background-color: #212529 !important;
  border-color: #212529 !important;
  color: #ffffff !important; /* Keep text visible on dark background */
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:disabled:hover,
.btn-primary:disabled:focus {
  background-color: #4D5154 !important; /* Hover/focus color */
  border-color: #4D5154 !important;
  color: #ffffff !important; /* Keep text visible on hover */
}

/* Change the primary Color for the buttons END */



/* Make btn-sucess grey color START */

.btn-success {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    color: #fff !important;
    background-color: #5c636a !important;
    border-color: #565e64 !important;
}

/* Make btn-sucess grey color END */
/* Enhance ui for buttons START */


/* Button grid responsive layout */
.dashboard-action-buttons {
  display: grid;
  gap: 10px;
  width: 100%;
}

/* Large screens: 6 buttons in one row */
@media (min-width: 1290px) {
  .dashboard-action-buttons {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Medium-large screens: 4 buttons per row */
@media (min-width: 967px) and (max-width: 1289px) {
  .dashboard-action-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium screens: 3 buttons per row */
@media (min-width: 576px) and (max-width: 966px) {
  .dashboard-action-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small screens: 2 buttons per row */
@media (max-width: 575px) {
  .dashboard-action-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Extra small screens: 1 button per row */
@media (max-width: 379px) {
  .dashboard-action-buttons {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* Make all buttons the same size */
.dashboard-action-buttons .btn {
  width: 100%;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  direction: ltr;
  align-items: center;
  flex-direction: row-reverse;
}

/* Icon styling - ensure they're always visible */
.dashboard-action-buttons .btn i {
  flex-shrink: 0; /* Prevent icon from shrinking */
  margin-right: 8px;
  width: 18px; /* Fixed width for icons */
  text-align: center;
}

/* More space for text */
.dashboard-action-buttons .btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Enhance ui for buttons END */




#links-container {
  direction: ltr !important; /* Override RTL here */
}


#gallery-items-container {
  min-height: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gallery-item {
  position: relative;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.gallery-item img {
  max-width: 80px;
  max-height: 80px;
  border-radius: 4px;
  object-fit: cover;
}
.gallery-item .remove-btn {
  color: #dc3545;
  cursor: pointer;
}
.gallery-item .drag-handle {
  cursor: grab;
  font-size: 1.1rem;
  color: #777;
}


#icons-toggle-icon {
  transition: transform 0.2s;
}

/* Arrow points left (–90deg) by default (when collapsed) */
button.collapsed #icons-toggle-icon {
  transform: rotate(180deg);
}

/* Arrow points down (0deg) when expanded */
button:not(.collapsed) #icons-toggle-icon {
  transform: rotate(0deg);
}
#icons-toggle-icon {
  color: #000 !important;
}


/* Filter Style in icon select model START */
#filterCapsules {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}


.filter-group-name {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1rem;
}

.filter-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    display: inline-block;
    padding: 5px 12px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

 .filter-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-btn:hover {
background-color: #007bff;
color: white;
}

/* Filter Style in icon select model END */


/* Style Selection Options START  */
.style-option-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px;
}
.style-radio-input {
  display: none;
}
.style-option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.style-option-image {
  width: 120px;
  height: 80px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s;
  margin-bottom: 8px;
  padding: 10px;
}
.style-radio-input:checked + .style-option-label .style-option-image {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}
.style-option-text {
  font-size: 13px;
  color: #333;
}
.multilinks-pro-badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff2828, #ff427f);
  color: white;
  font-size: 0.5rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(255, 66, 127, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.disabled-option {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}
.disabled-option .style-option-image {
  filter: grayscale(100%);
}
.sub-links-count {
  font-size: 0.85em;
}
.multilinks-pro-notice-overlay {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  font-size: 1rem;
  background-color: #fde9b9c2;
  color: #222;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  max-width: 280px;
  pointer-events: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 12px rgb(0 0 0 / 11%);
}
/* Style Selection Options END  */



/* Element Cards - Bootstrap Styling with specified color */
.element-card {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.375rem;
  padding: 2.2rem 1rem;
  text-align: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.element-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  background-color: #f8f9fa;
}

.element-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #212529;
}

.element-title {
  font-weight: 500;
  font-size: 1rem;
  color: #212529;
}

/* Modal Bootstrap styling */
#moreElementsModal .modal-content {
  border: 0;
  border-radius: 0.375rem;
}

#moreElementsModal .modal-header {
  border-bottom: 1px solid #dee2e6;
  padding: 1rem;
}

#moreElementsModal .modal-body {
  padding: 1rem;
}

#moreElementsModal .modal-title {
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.5;
}

#moreElementsModal .row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}
.has-pro-badge {
  position: relative; /* Needed for badge positioning */
}

/* Custom larger modal for desktop */
@media (min-width: 992px) {
  #moreElementsModal .modal-dialog {
    max-width: 850px;
    margin: 1.75rem auto;
  }
  
  #moreElementsModal .element-card {
    min-height: 150px;
  }
  
  #moreElementsModal .element-icon {
    font-size: 2.5rem;
  }
  
  #moreElementsModal .element-title {
    font-size: 1.2rem;
  }
  #moreElementsModal .row {
	padding: 40px;
}
}

/* Styles for the image upload button - larger size */
.btn.btn-outline-secondary.image-button {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-width: 1px;
    padding: 0;
    font-size: 30px; /* Larger icon */
    line-height: 1;
    box-sizing: border-box;
    overflow: hidden;
    border-color: #e6e6e6;
    margin-bottom: 15px;
}
.btn.btn-outline-secondary.image-button i {
    max-width: 100%;
    max-height: 100%;
}

/* Make image preview match button size */
#link-modal-image-preview {
    width: 80px !important;
    height: 80px !important;
    border-radius: 8px !important; /* Slightly larger border radius for the bigger size */
}
/* Pro feature styling - updated for RTL and positioning */
.pro-feature-card, .extension-not-installed {
  position: relative;
  cursor: not-allowed;
}

.pro-feature-card::before, .extension-not-installed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(248, 249, 250, 0.6);
  z-index: 1;
  border-radius: 0.375rem;
  pointer-events: none; /* Allow clicks to pass through */
}

.pro-badge, .extension-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, #ff2828, #ff427f);
  color: white;
  font-size: 0.5rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(255, 66, 127, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.extension-badge {
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* styling for the serach bar for the currency when adding a product START */

/* Fix RTL text alignment in Select2 */
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
  padding-right: 8px;
  padding-left: 20px;
  text-align: right;
}

.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  left: 1px;
  right: auto;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 24px;
  font-weight: normal;
  font-family: inherit;
}

/* Fix checkbox label alignment */
.form-check {
  text-align: right;
  padding-left: 0;
  padding-right: 1.5em;
}

.form-check .form-check-input {
  float: right;
  margin-right: -1.5em;
  margin-left: 0;
}

.select2-container .select2-selection--single {
    height: 37px !important;
}


.select2-container--default .select2-selection--single {
    border: 1px solid #dee2e6 !important;
}

.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
    padding: 3px !important;
}

#trial-notification {
    display: none; /* Hidden by default */
}
	
/* Product Carousel Card styling START */

.carousel-product-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  background-color: #f9f9f9;
}

.carousel-product-item .drag-handle {
  cursor: grab;
  margin-left: 10px;
  color: #aaa;
}

.carousel-product-item .product-img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  margin-left: 10px;
}

.carousel-product-item .product-info {
  flex-grow: 1;
}

.carousel-product-item .product-name {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.carousel-product-item .product-price {
  font-size: 0.8rem;
  color: #666;
}

.carousel-product-item .action-buttons {
  display: flex;
  gap: 5px;
}

.carousel-product-item .btn-edit,
.carousel-product-item .btn-remove {
  font-size: 0.8rem;
  padding: 2px 5px;
}

  .product-fields-header {
	cursor: pointer;
	padding: 10px 15px;
	background-color: #f8f9fa;
	border-radius: 5px;
	margin-bottom: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
  }
  .product-fields-header:hover {
	background-color: #e9ecef;
  }
  .product-fields-content {
	transition: max-height 0.3s ease-out;
	overflow: hidden;
  }
  .product-fields-content.collapsed {
	max-height: 0;
	padding: 0;
	margin: 0;
	border: none;
  }


/* Fix large space under the delete save button on product model */
.product-fields-content.collapsed {
  max-height: 0;
  padding: 0;
  margin: 0;
  border: none;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  display: none; /* Completely hide when collapsed */
  transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}

/* Ensure the modal footer doesn't have extra space */
#productEditModal .modal-footer {
  margin-top: 0;
  padding-top: 10px;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
  .product-fields-content.collapsed {
	position: absolute; /* Take out of the flow when collapsed */
	pointer-events: none;
  }
  
  #productEditModal .modal-body {
	padding-bottom: 0; /* Reduce padding at bottom */
  }
}
					
/* Product Carousel Card styling END */
	
	
/* Demo Swiper at top of dashboard styling START */

/* Contained Demo Swiper */
.demo-swiper-container {
	width: 100%;
	position: relative;
	overflow: hidden;
}


.demo-swiper {
	width: 100%;
	padding-bottom: 30px !important;
}

.demo-card {
	text-align: center;
	padding: 12px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 7px rgba(0,0,0,0.1);
	height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.demo-img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #f0f0f0;
	margin-bottom: 8px;
}

.demo-card h6 {
	margin: 0 0 4px;
	font-weight: bold;
	font-size: 14px;
}
.demo-card p {
	font-size: 12px;
	margin-bottom: 10px;
	color: #666;
	flex-grow: 1;
	line-height: 1.3;
}

.demo-card .btn {
	width: 100%;
	margin-top: auto;
}

.swiper-pagination-bullet-active {
	background-color: #007bff;
}

.demo-swiper .swiper-pagination {
  bottom: -5px !important;
}
/* Center Title and Description */
.card-title, .card-subtitle {
  text-align: center;
}
/* Demo Swiper at top of dashboard styling END */

/* Making the الأدوات الإحترافية button Shiny START */

#more-elements-button,
#more-elements-button-top {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: auto !important;
  min-width: fit-content !important;
  white-space: nowrap !important;
  padding: 0.375rem 0.75rem !important;
}
#more-elements-button::before,
#more-elements-button-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine-slide 1.5s cubic-bezier(0.76, -0.05, 0.4, 0.9) infinite;
  opacity: 0;
  pointer-events: none;
}

@keyframes shine-slide {
  0% {
    left: -100%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
/* Making the الأدوات الإحترافية button Shiny END */


/* Limit reached model  START */
/* Default Desktop Styles */
.upgrade-modal-content {
    border: none; 
    border-radius: 15px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.upgrade-modal-header {
    background: #343a40; 
    padding: 1.5rem; 
    text-align: center;
}

.upgrade-modal-title {
    color: white; 
    font-weight: 600; 
    margin: 0;
}

.upgrade-modal-body {
    padding: 2rem; 
    text-align: center;
}

.upgrade-modal-description {
    color: #6c757d; 
    margin-bottom: 2rem; 
    line-height: 1.6; 
    text-align: center;
}

.upgrade-price-section {
    margin-bottom: 2rem;
}

.upgrade-price {
    font-size: 2rem; 
    font-weight: bold; 
    color: #343a40; 
    margin-bottom: 0.5rem;
}

.upgrade-price-label {
    color: #6c757d;
}

.upgrade-features-container {
    text-align: right; 
    margin-bottom: 2rem; 
    background: #f8f9fa; 
    padding: 1.5rem; 
    border-radius: 10px;
}

.upgrade-feature-item {
    margin-bottom: 1rem; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

.upgrade-feature-text {
    color: #343a40; 
    font-weight: 500;
}

.upgrade-feature-check {
    color: #28a745; 
    font-size: 1.2rem;
}

.upgrade-btn-primary {
    border-radius: 8px; 
    font-weight: 600;
}

.upgrade-btn-secondary {
    border-radius: 8px;
}

/* Mobile Optimizations - Only for screens 768px and below */
@media (max-width: 768px) {
    .upgrade-modal-content {
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .upgrade-modal-header {
        padding: 1rem;
    }
    
    .upgrade-modal-title {
        font-size: 1.1rem;
    }
    
    .upgrade-modal-body {
        padding: 1rem;
    }
    
    .upgrade-modal-description {
        margin-bottom: 1rem;
        line-height: 1.4;
        font-size: 0.9rem;
    }
    
    .upgrade-price-section {
        margin-bottom: 1rem;
    }
    
    .upgrade-price {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }
    
    .upgrade-price-label {
        font-size: 0.8rem;
    }
    
    .upgrade-features-container {
        margin-bottom: 1rem;
        padding: 1rem;
        display: flex;
        flex-direction: column;
    }

    .upgrade-feature-item {
        margin-bottom: 0.5rem;
        padding: 0.3rem;
        font-size: 0.85rem;
    }
    
    .upgrade-feature-check {
        font-size: 1rem;
    }
    
    .upgrade-btn-primary {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .upgrade-btn-secondary {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Shorter feature text for mobile */
    .mobile-short-text {
        display: inline;
    }
    
    .desktop-text {
        display: none;
    }
}

/* Hide mobile short text on desktop */
@media (min-width: 769px) {
    .mobile-short-text {
        display: none;
    }
    
    .desktop-text {
        display: inline;
    }
}

/* Limit reached model  END */


/* NAV BAR START  */
  .navbar-fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 900;
    }
    .navbar .nav-link {
        padding: 10px 15px;
        border-left: 1px solid #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff;
        font-size: 20px;
        height: 40px;
        width: 55px;
        transition: all 0.3s ease;
        position: relative;
    }
    .navbar .nav-item:last-child .nav-link {
        border-right: none;
    }
    .navbar .nav-link:hover {
        background-color: #f9f9f9;
    }
	
	/* NAV BAR END  */
	
/* Notifications Bell START */
.notification-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background-color: rgb(255 0 0);
        color: white;
        border-radius: 50%;
        font-size: 12px;
        min-width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }
	

.notification-dropdown {
        width: 320px;
        max-height: 420px;
        border: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        position: absolute !important;
        right: -105px !important;
        left: auto !important;
        transform: none !important;
        top: 100% !important;
        border-radius: 8px;
        overflow: hidden;
        background: #ffffff;
        margin-top: 5px;
    }
    
    .notification-dropdown.show {
        display: block !important;
    }
    
    .dropdown-header {
        padding: 16px 18px;
        background: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
        font-weight: 600;
        font-size: 15px;
        color: #495057;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-header button {
        color: #6c757d !important;
        font-size: 12px;
        font-weight: 500;
        text-decoration: none;
        padding: 4px 8px;
        border-radius: 4px;
        background: transparent;
        border: none;
        transition: all 0.2s ease;
    }
    
    .dropdown-header button:hover {
        background: #e9ecef;
        color: #495057 !important;
    }
    
    .notification-list {
        max-height: 350px;
        overflow-y: auto;
    }
    
    .notification-list::-webkit-scrollbar {
        width: 3px;
    }
    
    .notification-list::-webkit-scrollbar-thumb {
        background: #dee2e6;
        border-radius: 3px;
    }
    
.notification-item {
        padding: 14px 18px;
        border-bottom: 1px solid #f1f3f4;
        cursor: pointer;
        transition: background-color 0.2s ease;
        position: relative;
        direction: rtl;
        text-align: right;
    }
    
    .notification-item:last-child {
        border-bottom: none;
    }
    
    .notification-item:hover {
        background-color: #f8f9fa;
    }
    
    .notification-item.unread {
        background-color: #e3f2fd;
        border-right: 3px solid #2196f3;
        border-left: none;
    }
    
    .notification-item.unread::after {
        content: '';
        position: absolute;
        top: 16px;
        left: 16px;
        width: 6px;
        height: 6px;
        background: #2196f3;
        border-radius: 50%;
    }
    
    .notification-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 4px;
        color: #212529;
        line-height: 1.4;
        text-align: right;
    }
    
    .notification-message {
        font-size: 13px;
        margin-bottom: 6px;
        color: #6c757d;
        line-height: 1.4;
        text-align: right;
    }
    
    .notification-date {
        font-size: 11px;
        color: #adb5bd;
        font-weight: 500;
        text-align: right;
    }
	
    
.notification-list .text-center {
        padding: 30px 18px;
        color: #adb5bd;
        direction: rtl;
        text-align: center;
    }
	
	@keyframes bellRing {
    0%, 95% { transform: rotate(0deg); }
    5% { transform: rotate(10deg); }
    10% { transform: rotate(-8deg); }
    15% { transform: rotate(8deg); }
    20% { transform: rotate(-6deg); }
    25% { transform: rotate(6deg); }
    30% { transform: rotate(-4deg); }
    35% { transform: rotate(4deg); }
    40% { transform: rotate(-2deg); }
    45% { transform: rotate(2deg); }
    50% { transform: rotate(0deg); }
}

.fas.fa-bell.has-notifications {
    animation: bellRing 2.5s infinite;
    transform-origin: 50% 4px;
}

/* Notifications Bell END */

/* QR CODE Model START */
.qrm-modal-content {
    border-radius: 10px;
    border: none;
    overflow: hidden;
}

.qrm-header {
    background: #f8f9fa;
    color: #212529;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.qrm-header .qrm-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #212529;
}
.qrm-header .btn-close {
    margin: 0;
    padding: 0.5rem;
}

.qrm-body {
    padding: 24px;
    background: white;
}

.qrm-qr-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.qrm-qr-container img {
    max-width: 280px;
    border-radius: 4px;
}

.qrm-download-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}
.qrm-size-select {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #212529;
}
.qrm-select-label {
    font-size: 14px;
    color: #495057;
    margin-bottom: 8px;
    font-weight: 500;
	text-align: right;
}
.qrm-download-btn {
    background: #212529;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.qrm-spinner {
    color: #212529;
}
/* QR CODE Model END */


/* Share Model START */

.shm-modal-content {
    border-radius: 12px;
    border: none;
}

.shm-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.shm-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.shm-body {
    padding: 24px;
    text-align: center;
}

.shm-profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
}

.shm-share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.shm-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #212529;
}

.shm-share-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    color: #212529;
}

.shm-share-icon {
    font-size: 32px;
}

.shm-share-label {
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 576px) {
    .shm-share-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Share Model END */

/* After closing models notifcations message: لا تنسى حفظ الصفحة START */
.save-reminder-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    color: black;
    padding: 24px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    z-index: 10000;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.save-reminder-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
/* After closing models notifcations message: لا تنسى حفظ الصفحة END */


/* Toggle switch display in link items */
.link-item .form-check-input[role="switch"] {
    width: 2.5em;
    height: 1.3em;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
    transition: background-position .15s ease-in-out;
}

.link-item .form-check-input[role="switch"]:checked {
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.link-item .form-check.form-switch {
    padding-left: 0;
    margin-bottom: 0;
}

/* Smaller toggle switch for link items */
.link-item .form-check-input[role="switch"] {
    width: 2.1em;
    height: 1.2em;
    margin-top: 0;
    font-size: 0.875rem;
}

.link-item .form-check.form-switch {
    padding-left: 0;
    margin-bottom: 0;
    min-height: auto;
}

/* Mobile: Always put toggle on second row */
@media (max-width: 767px) {
  .link-item {
    flex-wrap: wrap;
  }
  
  .link-item .drag-handle {
    order: 1;
  }
  
  .link-item .link-content {
    order: 2;
    flex: 1;
    min-width: 0;
  }
  
  .link-item .link-icon {
    order: 3;
  }
  
.link-item .item-actions-menu {
    order: 4;
    margin-left: 4px;
  }
  
  .link-item .form-check.form-switch {
    order: 5;
    width: 100%;
    margin-top: 15px;
    display: flex;
    justify-content: flex-start;
    margin-left: 0;
  }
}

/* Three-dot actions menu */
.item-actions-menu {
    position: relative;
    margin-left: 8px;
}

.btn-actions-toggle {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px 4px;
	margin-left: -20px;
    font-size: 16px;
    transition: color 0.2s;
}

.btn-actions-toggle:hover {
    color: #000;
}
.actions-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 120px;
    z-index: 1000;
    overflow: hidden;
}

.actions-dropdown.show {
    display: block;
}

.action-item {
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: white;
    text-align: right;
    cursor: pointer;
    font-size: 13px;
    color: #212529;
    transition: background-color 0.2s;
}

.action-item:hover {
    background-color: #f8f9fa;
}

.action-item.action-delete {
    color: #dc3545;
}

.action-item.action-delete:hover {
    background-color: #fee;
}

.action-item i {
    display: none;
}


/* Toggle switch display in icon items */
.icon-item .form-check-input[role="switch"] {
    width: 2.5em;
    height: 1.3em;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
    transition: background-position .15s ease-in-out;
}

.icon-item .form-check-input[role="switch"]:checked {
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.icon-item .form-check.form-switch {
    padding-left: 0;
    margin-bottom: 0;
}

/* Smaller toggle switch for icon items */
.icon-item .form-check-input[role="switch"] {
    width: 2.1em;
    height: 1.2em;
    margin-top: 0;
    font-size: 0.875rem;
}

.icon-item .form-check.form-switch {
    padding-left: 0;
    margin-bottom: 0;
    min-height: auto;
}

/* Mobile: Always put toggle on second row for icons */
@media (max-width: 767px) {
  .icon-item {
    flex-wrap: wrap;
  }
  
  .icon-item .drag-handle {
    order: 1;
  }
  
  .icon-item .icon-content {
    order: 2;
    flex: 1;
    min-width: 0;
  }
  
  .icon-item .icon-icon {
    order: 3;
  }
  
  .icon-item .item-actions-menu {
    order: 4;
    margin-left: 4px;
  }
  
  .icon-item .form-check.form-switch {
    order: 5;
    width: 100%;
    margin-top: 15px;
    display: flex;
    justify-content: flex-start;
    margin-left: 0;
  }
}

/* Affilate in menu  START */
		.affiliate-link {
		display: block;
		text-align: center;
		margin: 20px 15px 0px 15px;
		padding: 8px 10px;
		background: #FFD700;
		color: #000;
		font-weight: 600;
		border-radius: 5px;
		text-decoration: none;
		font-size: 0.9rem;
	}

	.affiliate-link i {
		animation: heartbeat 1s ease-in-out infinite;
	}

	@keyframes heartbeat {
		0%, 100% {
			transform: scale(1);
		}
		25% {
			transform: scale(1.2);
		}
		50% {
			transform: scale(1);
		}
	}
	/* Affilate in menu  END */
	
	
	
  /* Page Break Modal Styles START */

  /* Horizontal Scrolling Carousel - Same as Icon Picker */
  .divider-scroll-container {
      position: relative;
      margin-bottom: 15px;
  }

  .divider-values-wrapper {
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: none;
      -ms-overflow-style: none;
      scroll-behavior: smooth;
      padding: 5px 0;
  }

  .divider-values-wrapper::-webkit-scrollbar {
      display: none;
  }

  /* UPDATED: Grid layout instead of flex for responsive design */
  .divider-values {
      display: grid;
      grid-template-columns: 1fr; /* 1 per row on mobile */
      gap: 20px;
      padding: 10px;
  }

  /* Desktop: 2 per row */
  @media (min-width: 768px) {
      .divider-values {
          grid-template-columns: repeat(2, 1fr); /* 2 per row on desktop */
          gap: 25px;
      }
  }

  .divider-values::after {
      content: '';
      min-width: 30px;
      flex-shrink: 0;
  }

  .divider-scroll-indicator {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 45px;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.3s;
      cursor: pointer;
  }

  .divider-scroll-indicator.left {
      left: 0;
      background: linear-gradient(to left, transparent, rgba(255,255,255,0.98));
  }

  .divider-scroll-indicator.right {
      right: 0;
      background: linear-gradient(to right, transparent, rgba(255,255,255,0.98));
  }

  .divider-scroll-indicator i {
      font-size: 20px;
      color: #202124;
      transition: transform 0.2s;
  }

  .divider-scroll-indicator:hover i {
      transform: scale(1.2);
  }

  .divider-scroll-indicator.show i {
      animation-duration: 1.5s;
      animation-timing-function: ease-in-out;
      animation-iteration-count: infinite;
  }

  .divider-scroll-indicator.left.show i {
      animation-name: bounce-left;
  }

  .divider-scroll-indicator.right.show i {
      animation-name: bounce-right;
  }

  @keyframes bounce-left {
      0%, 100% { transform: translateX(0); }
      50% { transform: translateX(-5px); }
  }

  @keyframes bounce-right {
      0%, 100% { transform: translateX(0); }
      50% { transform: translateX(5px); }
  }

  /* UPDATED: Bigger wrapper for better visibility */
  .page-break-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      width: 100%;
  }

  /* UPDATED: Bigger sizes for better visibility */
  .page-break-option {
      position: relative;
      width: 100%;
      min-height: 120px; /* Bigger on mobile */
      border: 2px solid #dee2e6;
      border-radius: 8px;
      padding: 20px;
      cursor: pointer;
      transition: all 0.3s ease;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #fff;
      box-sizing: border-box;
  }

  /* Desktop: Even bigger */
  @media (min-width: 768px) {
      .page-break-option {
          min-height: 150px;
          padding: 30px;
      }
  }

  .page-break-option:hover {
      border-color: #0d6efd;
      background: #f8f9fa;
      transform: translateY(-2px);
  }

  .page-break-option.selected {
      border-color: #0d6efd;
      border-width: 3px;
      background: #e7f1ff;
      box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
  }

  .page-break-preview {
      color: #333;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  /* UPDATED: Bigger SVG for better visibility */
  .page-break-preview svg {
      max-width: 100%;
      max-height: 80px; /* Bigger on mobile */
      width: auto;
      height: auto;
  }

  /* Desktop: Even bigger SVG */
  @media (min-width: 768px) {
      .page-break-preview svg {
          max-height: 100px;
      }
  }

  .page-break-label {
      font-size: 13px;
      color: #6c757d;
      margin-top: 8px;
      font-weight: 500;
      text-align: center;
  }

  /* Color picker styling */
  .color-input-wrapper {
      max-width: 300px;
  }

  .color-input {
      height: 45px;
      cursor: pointer;
  }

  /* FIX: Coloris z-index to appear above modal */
  #clr-picker {
      z-index: 10000 !important;
  }

  /* NEW: Freepik credit */
  .freepik-credit {
      margin-top: 15px;
      padding: 10px;
      background: #f8f9fa;
      border-radius: 6px;
      text-align: center;
      font-size: 12px;
      color: #6c757d;
  }

  .freepik-credit a {
      color: #0d6efd;
      text-decoration: none;
      font-weight: 500;
  }

  .freepik-credit a:hover {
      text-decoration: underline;
  }

  /* Custom upload section */
  .upload-drop-zone {
      border: 2px dashed #d0d0d0;
      border-radius: 12px;
      padding: 40px 20px;
      background: #fafafa;
      cursor: pointer;
      transition: all 0.3s ease;
  }

  .upload-drop-zone:hover {
      border-color: #007bff;
      background-color: #f0f8ff;
  }

  .upload-drop-zone.drag-over {
      border-color: #007bff;
      background-color: #e7f3ff;
  }

  .upload-icon {
      font-size: 48px;
      color: #b0b0b0;
      margin-bottom: 15px;
  }

  .upload-title {
      color: #495057;
      margin-bottom: 8px;
      font-size: 1.1rem;
  }

  .upload-subtitle {
      font-size: 0.9rem;
      color: #6c757d;
      margin: 0;
  }

  /* NEW: Freepik recommendation in custom upload */
  .freepik-recommendation {
      margin-top: 15px;
      padding: 12px 15px;
      background: #e7f1ff;
      border: 1px solid #b6d4fe;
      border-radius: 6px;
      font-size: 13px;
      color: #084298;
      text-align: center;
  }

  .freepik-recommendation strong {
      font-weight: 600;
      color: #052c65;
  }

  .freepik-recommendation a {
      color: #0d6efd;
      text-decoration: none;
      font-weight: 600;
  }

  .freepik-recommendation a:hover {
      text-decoration: underline;
  }

  .freepik-recommendation i {
      margin-left: 5px;
  }

  .custom-preview-box {
      background: #f8f9fa;
      border-radius: 8px;
      min-height: 150px;
      display: flex;
      align-items: center;
      justify-content: center;
	  margin-top: 10px;
  }

  .custom-divider-img {
      max-width: 100%;
      max-height: 250px;
      border-radius: 8px;
      border: 2px solid #ddd;
      padding: 10px;
      background: white;
      object-fit: contain;
  }

  /* Scheduling */
  .page-break-scheduling-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: background-color 0.2s;
  }

  .page-break-scheduling-header:hover:not(.disabled) {
      background-color: #e9ecef !important;
  }

  .page-break-scheduling-header.disabled {
      cursor: not-allowed !important;
      opacity: 0.7;
  }

  .page-break-scheduling-header i {
      transition: transform 0.2s;
  }

  .page-break-scheduling-content {
      padding: 15px;
      background-color: #ffffff;
      border: 1px solid #e0e0e0;
      border-radius: 5px;
      margin-bottom: 15px;
  }

  /* Page Break Modal Styles END */
  
  
 /* Affilate Ad Modal Styles START */
 /* Image covers entire container - mobile and desktop */
.affiliate-promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Make image column take full height */
.affiliate-image-column {
    min-height: 250px;
}

@media (min-width: 768px) {
    .affiliate-image-column {
        min-height: 500px;
    }
}

/* Make button smaller on desktop */
@media (min-width: 768px) {
    .affiliate-cta-btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 1.25rem !important;
    }
}
  #affiliatePromoModal .modal-body {
      max-height: 100vh !important;
  }
/* Close button - visible on both mobile and desktop */
.affiliate-close-btn {
    opacity: 1 !important;
    top: 10px;
}

/* Desktop - normal position */
@media (min-width: 768px) {
    .affiliate-close-btn {
        top: 10px;
    }
}

/* Affiliate Modal Responsive Optimizations */
@media (max-width: 767px) {
    #affiliatePromoModal .modal-lg {
        max-width: 95%;
        margin: 1rem auto;
    }

    #affiliatePromoModal h3 {
        font-size: 1.5rem;
    }

    #affiliatePromoModal .p-4 {
        padding: 1.5rem !important;
    }
}

/* Modal entrance animation */
#affiliatePromoModal.show .modal-dialog {
    animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.p-md-5 {
        padding: 1.9rem !important;
    }
  #affiliatePromoModal .justify-content-center {
      justify-content: space-around !important;
  }
  
  /* Affilate Ad Modal Styles END */
  
  
  /**
 * Insert Item Feature Styles
 *
 * This file contains all styles for the insert item feature (+ buttons between items)
 * Isolated for easy maintenance and potential removal if needed
 */

/* Insert divider container */
.insert-item-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 2px 0;
    margin: -10px 0 7px 0;
    opacity: 1;
    transition: opacity 0.2s ease;
    min-height: 0;
}


/* Show divider on hover */
#links-container:hover .insert-item-divider,
.insert-item-divider:hover {
    opacity: 1;
}

/* Insert button */
.insert-item-btn {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    color: #6c757d;
    padding: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
}

.insert-item-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: scale(1.1);
}

.insert-item-btn i {
    font-size: 8px;
}

/* Hover line animation extending from button to left edge */
.insert-item-divider::before {
    content: '';
    position: absolute;
    right: 20px;
    left: 0;
    top: 50%;
    height: 2px;
    background: linear-gradient(to left, #007bff, transparent);
    transform: translateY(-50%) scaleX(0);
    transform-origin: right center;
    transition: transform 0.3s ease;
    z-index: 1;
}

.insert-item-btn:hover ~ .insert-item-divider::before,
.insert-item-divider:has(.insert-item-btn:hover)::before {
    transform: translateY(-50%) scaleX(1);
}

/* Dropdown menu for item types */
.insert-items-dropdown {
    position: absolute;
    top: 180px;
    right: 90px;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-left: 8px;
    max-height: 400px;
    overflow-y: auto;
    direction: rtl;
}

.insert-items-dropdown.show {
    display: block;
}

.insert-dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.insert-dropdown-item:last-child {
    border-bottom: none;
}

.insert-dropdown-item:hover {
    background: #f8f9fa;
}

.insert-dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #495057;
}

.insert-dropdown-item > span:first-of-type {
    font-size: 14px;
    color: #333;
    flex: 1;
}

/* Pro badge for restricted items */
.insert-pro-badge {
    background: linear-gradient(135deg, #ff2828, #ff427f);;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 8px;
    white-space: nowrap;
}

/* Coming soon badge */
.insert-coming-soon {
    background: #6c757d;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 8px;
    white-space: nowrap;
}

.insert-dropdown-item.disabled {
    cursor: not-allowed;
}

.insert-dropdown-item.has-badge {
    justify-content: space-between;
}

/* ========================================
 * ICONS INSERTION STYLES
 * ======================================== */

/* Insert divider container for icons */
.insert-icon-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2px 0;
    margin: -10px 0 7px 0;
    opacity: 1;
    transition: opacity 0.2s ease;
    min-height: 0;
}

/* Show divider on hover */
#icons-container:hover .insert-icon-divider,
.insert-icon-divider:hover {
    opacity: 1;
}

/* Insert button for icons */
.insert-icon-btn {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    color: #6c757d;
    padding: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
}

.insert-icon-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: scale(1.1);
}

.insert-icon-btn i {
    font-size: 8px;
}

/* Hover line animation for icons */
.insert-icon-divider::before {
    content: '';
    position: absolute;
    right: 20px;
    left: 0;
    top: 50%;
    height: 2px;
    background: linear-gradient(to left, #007bff, transparent);
    transform: translateY(-50%) scaleX(0);
    transform-origin: right center;
    transition: transform 0.3s ease;
    z-index: 1;
}

.insert-icon-btn:hover ~ .insert-icon-divider::before,
.insert-icon-divider:has(.insert-icon-btn:hover)::before {
    transform: translateY(-50%) scaleX(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .insert-item-btn,
    .insert-icon-btn {
        width: 28px;
        height: 28px;
    }

    .insert-items-dropdown {
        min-width: 180px;
    }
}

/* ========================================
 * NEW ITEM GLOW ANIMATION
 * ======================================== */

/* Keyframe animation for glow effect */
@keyframes newItemGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
        background-color: rgba(0, 123, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(0, 123, 255, 0.4);
        background-color: rgba(0, 123, 255, 0.15);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
        background-color: transparent;
    }
}

/* Class to apply to newly inserted items */
.new-item-glow {
    animation: newItemGlow 1.5s ease-out;
    border-radius: 8px;
}
/* ── Product image list (multi-image upload) ── */
#product-modal-images-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.product-image-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.product-img-drag-handle {
    cursor: grab;
    color: #aaa;
    font-size: 1rem;
    flex-shrink: 0;
    padding: 4px;
}

.product-image-row img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
    pointer-events: none;
    -webkit-user-drag: none;
}

.product-img-row-label {
    flex: 1;
    font-size: 0.85rem;
    color: #555;
}

.product-image-row .btn-remove-product-image {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    font-size: 11px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
