﻿


/* Form Component Left Panel CSS Start */

/* Category title spacing */
.field-icon-group + .field-icon-group {
    margin-top: 10px;
}

.field-icon-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Each field icon card */
.field-icon {
    width: 100%;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 5px;
    cursor: grab;
    transition: all 0.2s ease-in-out;
    text-align: center;
    box-sizing: border-box;
}

.field-icon:hover {
    background: #eef6ff;
    border-color: #007bff;
    transform: translateY(-2px);
}

/* Icon Styling */
.icon-single-line,
.icon-multi-line,
.field-icon i,
.icon-number,
.icon-decimal,
.icon-formula {
    margin: 0 auto 6px auto;
    min-width: 28px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Field Label */
.field-label {
    font-size: 10px;
    color: #333;
    font-style: normal;
    text-align: center;
    margin: 0;
}

/* Adjust special icons for TextBox and TextArea */
.icon-single-line div,
.icon-multi-line div {
    border: 2px solid currentColor;
    border-radius: 3px;
    width: 24px;
    height: 14px;
}

.icon-multi-line div {
    height: 18px;
}

/* Adjust special icons for Number */
.icon-number, .icon-decimal, .icon-formula {
    color: #8e44ad;
    font-weight: bold;
    font-size: 1rem;
}

/* Common Icon Sizing */
.icon-size {
    font-size: 15px !important;
}

.text-button-color {
    color: #9041f7 !important;
}
.text-card-color {
    color: #FF6C2D !important;
}
.text-basic-info-color {
    color: #fc4c4d !important;
}

.text-date-color {
    color: #ff9526 !important;
}

.text-choice-color {
    color: #f84dd3;
}
/* Form Component Left Panel CSS End */






/* Form Canvas CSS Start */

.form-field-wrapper {
    position: relative;
}

/* Resize handle hidden by default */
.resize-handle {
    width: 24px; /* enough for line + arrow */
    height: 92px;
    position: absolute;
    top: 0;
    right: -15px; /* adjust as needed */
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    opacity: 0; /* hidden initially */
    transition: opacity 0.2s ease-in-out;
}

/* Show handle on hover of the parent */
.form-field-wrapper:hover .resize-handle {
    opacity: 1;
}

/* Vertical line */
.vertical-line {
    width: 5px;
    height: 92px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 1px;
}

/* Font Awesome arrow */
.resize-arrow-icon {
    color: rgba(0, 0, 0, 0.7);
    font-size: 16px;
    pointer-events: none;
    user-select: none;
}

.width-indicator-topfield {
    position: absolute;
    top: 9px !important;
    right: 17px !important;
    font-size: 0.75rem;
}

.width-indicator-nestedfield {
    position: absolute;
    top: 9px !important;
    right: 5px !important;
    font-size: 0.75rem;
}

.form-field-wrapper {
    float: left !important;
}


/* Group Container Css  styles Start */

.group-container-dropzone {
    min-height: 85px !important;
    transition: background-color 0.2s;
}

    .group-container-dropzone.dragover-group {
        background-color: #e6f7ff !important;
        border: 2px dashed #91d5ff !important;
    }

    .group-container-dropzone > .row {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }

.nested-form-field-wrapper .field-actions-group-container {
    position: absolute;
    top: 10px !important;
    right: 8px !important;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nested-form-field-wrapper:hover .field-actions-group-container {
    opacity: 1;
    pointer-events: auto;
}

.field-actions-group-container i {
    font-size: 18px !important;
    margin-left: 6px !important;
    color: #6c757d !important;
    cursor: pointer !important;
    transition: color 0.2s;
}

    .field-actions-group-container i:hover {
        color: #000;
    }

/* Group Container Css  styles End */


/* Button styling */

.field-actions i {
    background: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    cursor: pointer;
    color: #6c757d !important;
    margin-left: 1px;
}

.groupfontsize {
    font-size: 18px;
}

.left-panel-fixed {
    position: sticky;
    top: 0;
    max-height: calc(100vh - 20px); /* full screen height */
    overflow-y: auto;
}

.form-preview-fixed {
    position: sticky;
    top: 0;
    max-height: calc(100vh - 20px); /* full available height */
    overflow-y: auto; /* enables internal scroll */
}

.properties-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    transition: opacity 0.3s ease;
}

.properties-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 600px;
    max-width: 90vw;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

    .properties-sidebar.active {
        transform: translateX(0);
    }

.properties-header {
    background-color: #2c3e50;
    color: white;
    padding: 5px 5px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.properties-title {
    margin: 8px !important;
    font-weight: bold !important;
}

.properties-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.properties-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.properties-footer {
    border-top: 1px solid #eaeaea;
    padding: 5px 5px !important;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


.field-option-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    margin-bottom: 5px;
}



.text-textbox-color {
    color: #007bff !important;
}

/* Form Preview Styles */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    color: #888;
    transition: all 0.3s;
}

    .drop-zone.dragover {
        border-color: #007bff;
        background: #eef6ff;
        color: #007bff;
    }

.form-field {
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    cursor: grab;
    transition: 0.2s;
}

    .form-field:hover {
        background: #f0f8ff;
    }

.field-actions-group {
    position: absolute;
    top: 4px !important;
    right: 29px !important;
    display: none;
    gap: 4px;
}

.form-field:hover .field-actions-group {
    display: flex;
}

.field-actions {
    position: absolute;
    top: 10px;
    right: 8px !important;
    display: none;
    gap: 6px;
}

.form-field:hover .field-actions {
    display: flex;
}

.circle-icon {
    width: 29px !important;
    height: 29px !important;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .circle-icon i {
        font-size: 12px; /* move font-size to the icon itself */
        line-height: 1; /* remove vertical offset */
    }

    .circle-icon .fa-cog {
        transform: translateX(5px) !important;
    }

    .circle-icon:hover {
    }

.delete-button {
    color: white !important;
    background-color: #dc3545 !important;
}

.settings-button {
    color: white !important;
    background-color: #007bff !important;
}



.text-button-color {
    color: #9041f7 !important;
}

.text-listbox-color {
    color: #fe2bf1 !important;
}

.test-timeline-color {
    color: #D20007 !important;
}

/*Form Field Left Panel Css*/
.formfield-leftpanel {
    background-color: #F7A5A5 !important
}


/* ====== Form Canvas View Component Css Start ====== */

/* ====== Form Preview Header ====== */
.form-preview-header {
    color: #fff !important;
    font-weight: 500 !important;
    border-radius: 0.35rem 0.35rem 0 0 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    padding: 0 !important;
    background-color: #4FB7B3 !important;
}

/*  Form Preview Left side (icon + title) */
.header-left {
    padding: 6px 10px !important;
}

/* Form Preview Header icon */
.formheader-icon {
    font-size: 16px !important;
}

/* Form Preview Header title text */
.formheader-title {
    font-size: 15px !important;
    font-weight: bold;
    color: #f4faff !important;
}

/* Form Preview Button */
.preview-btn {
    background-color: #fff !important;
    color: #0d6efd !important;
    font-weight: 500 !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
    margin: 6px 10px !important;
    font-size: 14px !important;
    line-height: 1px !important;
}


/* Hover effect */
/*    .preview-btn:hover {
        background-color: #e9ecef;
    }*/

.formcanvas-section1 {
/*    background-color: #f8f9fa !important;
    color: #000 !important;
    border-color: #ced4da !important;
    cursor: not-allowed;*/
    pointer-events: none;
}

/* Image Upload           */
/* ---------------------- */
.image-upload-preview {
    border: 2px dashed #bbb;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: #666;
    background: #ffff;
    transition: 0.2s;
}
/*
    .image-upload-preview:hover {
        background: #f0f0f0;
    }
*/

/* ---------------------- */
/* Image Gallery          */
/* ---------------------- */
.image-gallery-preview {
    display: flex !important;
    justify-content: space-between !important;
    gap: 5px !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    background: #f9f9f9 !important;
}

.gallery-item {
    flex: 1 !important;
    height: 50px !important;
    background: #e0e0e0 !important;
    border-radius: 8px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    opacity: 0.6 !important;
}


/* File Upload            */
/* ---------------------- */
.file-upload-preview {
    border: 2px dashed #bbb !important;
    border-radius: 10px !important;
    padding: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: #ffff !important;
    color: #666 !important;
    transition: 0.2s !important;
}

/*.file-upload-preview:hover {
    background: #f0f0f0 !important;
}
*/
.file-icon {
    font-size: 24px;
}

.file-text {
    font-size: 14px;
}

/* Timeline               */
/* ---------------------- */

.timeline-container {
    padding: 10px !important;
    font-family: sans-serif;
    max-width: 300px;
}

.timeline-preview {
    display: flex;
    flex-direction: column;
    padding-left: 25px;
    position: relative;
}

    .timeline-preview::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background-color: #333;
    }

/* --- 2. Individual Step Item --- */
.timeline-item {
    position: relative;
    padding: 15px 0;
    padding-left: 15px;
    font-size: 16px;
    color: #555;
}

    /* 3. The Dot */
    .timeline-item .dot {
        position: absolute;
        left: -30px;
        top: 45%;
        transform: translateY(-50%);
        width: 14px;
        height: 14px;
        background: #2b580c;
        border-radius: 50%;
        z-index: 10;
    }


/* List Component         */
/* ---------------------- */
.listbox-preview {
    list-style: none;
    margin: 0;
    padding: 0;
}

.listbox-item {
    height: 18px;
    background: #eaeaea;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Button Component         */
/* ---------------------- */

.form-field-preview-container {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #fff;
/*    width: 1035px !important;*/
}

.field-header {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}

.button-preview-wrapper {
    display: flex;
    justify-content: center;
    padding: 5px 0;
}

.preview-button {
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .preview-button:hover {
        background-color: #0056b3;
        border-color: #0056b3;
    }



/* ====== Form Canvas View Component Css Start ====== */

.forms-preview {
    color: #fff !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    padding: 0 !important;
    background-color: #4FB7B3 !important;
}

.readonly-select {
    pointer-events: none !important; /* Prevents interaction */
    background-color: #ffff !important; /* Matches Bootstrap's disabled look */
    color: #495057 !important; /* Normal text color */
    opacity: 1 !important; /* Prevents dimming like disabled */
    appearance: none !important; /* Removes default arrow */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important; /* Removes dropdown arrow on some browsers */
    cursor: default !important; /* Normal cursor instead of text or pointer */
}
/* Group Container styling */
.group-container {
    background-color: #f9fafb !important; /* soft light grey */
    border-radius: 0.5rem !important; /* smooth corners */
    transition: box-shadow 0.2s ease-in-out !important;
}

.group-container:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

.group-container .form-group label {
    color: #495057;
    font-size: 16px !important;
}

.group-container .form-control {
    border-color: #dee2e6;
    font-size: 0.875rem;
    box-shadow: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.group-container .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
}

.group-container .bg-light {
    background-color: #f1f3f5 !important;
}

.group-container-header {
    background-color: #666 !important; /* dark gray (like bg-dark) */
    color: #ffffff !important; /* white text */
    border-bottom: 2px solid #212529 !important; /* subtle border for separation */
    /*font-size: 0.875rem!important;*/ /* slightly smaller text */
}

.group-container-title {
    background-color: #bbb !important;
}
/* Custom checkbox styling */
.validation-checkbox {
    display: flex;
    align-items: center;
    /*gap: 0.5rem;*/ /* space between checkbox and label */
}

.validation-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #007bff; /* Bootstrap primary blue */
}

.validation-checkbox label {
    margin: 7px;
    font-weight: 500;
    cursor: pointer;
}

.required-asterisk {
    color: #dc3545; /* Bootstrap's 'danger' red */
    margin-left: 2px;
    font-size: 9px !important;
    position: relative;
    top: -7px !important; /* move slightly upward */
}
.custom-checkbox-group,
.custom-radio-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 10px;
    border-radius: 8px;
    pointer-events: none;
/*    background-color: #f8f9fa !important;*/
    border: 1px solid #ced4da !important;
    /*    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);*/
}

.custom-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #343a40;
}

.custom-option input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.dropdown-icon {
    width: 45px!important;
    height: 20px!important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    border: 1px solid #ccc;
    transition: all 0.2s ease-in-out;
}


.add-icon {
    color: #198754;
    border-color: #198754;
}

.remove-icon {
    color: #dc3545; /* bootstrap danger */
    border-color: #dc3545;
}
.preview-dropdown {
    width: 100%;
    height: 42px; /* same as textbox */
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    pointer-events:none;
    font-size: 14px;
    appearance: none; /* removes default browser style */
    -webkit-appearance: none;
    -moz-appearance: none;
}
.preview-checkbox, .preview-radio {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 10px;
    border-radius: 8px;
    pointer-events: none;
    background-color: #ffff !important;
    border: 1px solid #ced4da !important;
}



/* --- NEW/UPDATED List Box Styles --- */
.list-container {
border: 1px solid #dee2e6;
    border-radius: .25rem;
    padding: 10px;
    background-color: #fff;
    overflow: hidden;
}

.list-box-item {
border: 1px solid #e9ecef;
    border-radius: .25rem;
    padding: 10px;
    background-color: #f8f9fa;
    position: relative;
    height: 100%;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.component-header {
    font-weight: 600;
    color: #333;  
}

.list-box-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.action-btn {
    border: none;
    background-color: #8a8b8a !important;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 13px!important;
    opacity:0;
    pointer-events:none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.list-box-item:hover .action-btn {
    opacity: 1;
    pointer-events: auto;
}


.add-btn {
    background-color: #28a745;
}

.remove-btn {
    background-color: #dc3545;
}

.edit-content .update-icon {
    opacity: 1;
    margin-right: 4px;
}

#inlineEditorModal .note-modal .modal-body {
    padding: 6px 10px;
}

#inlineEditorModal .note-modal .form-group {
    margin-bottom: 6px;
}

#inlineEditorModal .note-modal .note-form-label {
    font-size: 12px;
    margin-bottom: 2px;
}

#inlineEditorModal .note-modal input.form-control {
    height: 30px;
    font-size: 13px;
    padding: 4px 8px;
}

#inlineEditorModal .note-editor,
#inlineEditorModal .note-editor .note-editing-area {
    margin-bottom: 0;
    padding-bottom: 0;
}

#inline-editor {
    height: 250px;
}
.editor-wrapper {
    position: relative;
}

.editor-message {
    position: absolute;
    bottom: 15px;
    left: 10px;
    font-size: 12px;
}

.editor-count {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 12px;
}
.builder-label {
    display: inline-block;
}

.builder-label.required::after {
    content: "*";
    color: red;
}
.preview-label.required::after 
{
    content:"*";
    color: red;
}
.validation-radio {
    display: flex;
    align-items: center;
}

.validation-radio  input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #007bff;
}

.validation-radio label {
    margin: 7px;
    font-weight: 500;
    cursor: pointer;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 1px solid #778585!important;
}
.select2-container--default .select2-selection--multiple {
    height: 34px!important;
    border: 1px solid #ced4da!important;
    border-radius: 4px!important;
}

    /* Align text & chips vertically */
    /*.select2-container--default*/
    .select2-selection--multiple
    .select2-selection__rendered {
        display: flex!important;
        align-items: center!important;
        height: 28px!important;
    }

    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
        margin-top: 0;
        margin-bottom: 0;
        height: 23px;
        line-height: 14px;
          background-color: #01a9ac;
        border: 1px solid #01a9ac;
         padding: 5px 15px; 
         color: #fff
    }
.rating-preview i {
    font-size: 1.25rem;
    margin-right: 4px;
}

        .rating-preview .empty {
            color: #ddd;
        }
.star-rating-box {
    display: flex; /* use flex so it fills column and aligns items */
    align-items: center; /* vertical center stars and text */
    justify-content: flex-start; /* stars + text stay on left */
    border: 1px solid #ccc;
    padding: 1px 5px;
    border-radius: 5px;
    background-color: #fff;
    height:30px;
    width: 100%; /* always fill column width */
    box-sizing: border-box; /* include padding/border in width */
}

.star-rating-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.star {
    font-size: 1.5rem;
    color: #d3d3d3;
    cursor: pointer;
    user-select: none;
}

.star.filled {
    color: #ffc107;
}

.rating-text {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    white-space: nowrap; /* prevent text from wrapping */
}
.text-linkgroup-color {
    color: #24a68a !important;
}
.text-faq-color {
    color: #c2187a !important;
}