/* Custom styles for the survey builder */ #question-types, #survey-area { border: 1px solid #dee2e6; border-radius: 0.25rem; padding: 1rem; margin-bottom: 1rem; } #question-types { background-color: #f8f9fa; position: sticky; top: 10px; /* Adjust this value to control the sticky position from the top */ z-index: 100; /* Ensure it stays above other content if needed */ } #upload-btn-hf { background-color: orange; /* Set background color to orange */ color: white; /* Optionally, change text color for better contrast */ border-color: orange; /* Set the border color to orange */ outline: none; /* Remove default outline */ } #upload-btn-hf:focus { outline: 2px solid orange; /* Add custom outline on focus */ box-shadow: 0 0 5px orange; /* Optional: Add a glowing effect on focus */ } .Choice-question { background-color: #ffffff; border: 1px solid #ced4da; border-radius: 0.25rem; padding: 0.75rem; margin-bottom: 0.5rem; cursor: move; display: flex; align-items: center; /* Aligns items vertically within the container */ text-align: left; /* Ensures the text inside is left-aligned */ position: relative; /* For proper tooltip positioning */ } .Choice-question span { flex-grow: 1; /* Ensures the text takes available space */ text-align: left; /* Explicitly aligns the text to the left */ } .info-icon { display: inline-block; width: 18px; height: 18px; border: 1px solid #000; border-radius: 50%; text-align: center; font-size: 14px; font-weight: bold; line-height: 18px; cursor: pointer; position: relative; margin-left: auto; /* Pushes the icon to the right */ } .info-icon:hover::after { content: attr(data-tooltip); position: absolute; top: -30px; left: 100%; /* Position tooltip to the right of the icon */ margin-left: 10px; /* Small gap from the icon */ background: #333; color: #fff; padding: 5px 10px; border-radius: 5px; white-space: nowrap; font-size: 12px; z-index: 10; } .modal-backdrop { display: none; } .question { background-color: #ffffff; border: 1px solid #ced4da; border-radius: 0.25rem; padding: 0.75rem; margin-bottom: 0.5rem; } .Choice-question.dragging { opacity: 0.5; } .question.dragging { opacity: 0.5; } .question input { margin-bottom: 10px; width: 100%; } .Choice-question::before { content: '⋮'; margin-right: 0.5rem; color: #6c757d; } .Choice-question input { margin-bottom: 10px; width: 100%; } .input-group { display: flex; align-items: center; } .input-group .form-control { margin-right: 10px; } .input-group2 { display: inline-flex; align-items: center; width: 200px; /* Set a specific width for the label input */ margin-right: 10px; /* Space between input and checkbox */ float: left; border: none; } .input-group2 .form-control-sm { margin-right: 0.5rem; /* Adjusts spacing between input and delete button */ margin-top: 10px; } .input-group2 .btn { height: auto; padding: 0.25rem 0.5rem; /* Small button size, similar to Bootstrap's btn-sm */ } /* Styles for delete buttons */ .btn-danger.btn-sm { float: right; /* Positioning for question delete button */ } .btn-danger.btn-sm { padding: 0.2rem 0.5rem; /* Padding for option delete button */ } /* Ensure the main content area takes up remaining vertical space */ main { display: flex; flex-direction: column; } #survey-area { flex-grow: 1; min-height: 500px; /* Increased for better visibility */ background-color: #ffffff; padding-bottom: 100px; /* Adjust this value for the height of the space you want */ } /* Responsive adjustments */ @media (max-width: 768px) { #question-types { margin-bottom: 1rem; } } .form-check { display: flex; /* Use flexbox for better alignment */ align-items: center; /* Center items vertically */ margin: 0.5rem 0; /* Adjust margin around checkbox */ } .form-check-input { -webkit-appearance: checkbox; /* Force default checkbox styling for WebKit browsers */ -moz-appearance: checkbox; /* Force default checkbox styling for Firefox */ appearance: checkbox; /* Ensure default appearance */ width: 20px; /* Set a smaller width for the checkbox */ height: 20px; /* Set a smaller height for the checkbox */ margin-right: 0.5rem; /* Space between checkbox and label */ } .form-check-label { margin: 0; /* Remove default margins */ margin-left: 10px; /* Add left margin for more room */ white-space: nowrap; /* Prevent text wrapping */ display: inline; /* Ensure label is inline */ } .form-control-sm { width: 100px; /* Set a specific width for the label input */ margin-right: 10px; /* Space between input and checkbox */ float: left; border: 1px solid #ced4da; /* Match the default border color of .form-control */ } .form-check .form-control-sm { vertical-align: middle; /* Ensure all elements are vertically aligned */ margin-bottom: 0; /* Remove any extra margin if applied */ } /* Align the add button properly and add left margin */ .btn-secondary.btn-sm.mb-2 { vertical-align: middle; /* Align with other elements */ margin-left: 10px; /* Space to the left */ margin-top: 11px; margin-bottom: 0; /* Remove extra bottom margin */ align-self: center; /* Ensure the button is centered within the flex container */ } .drag-handle { font-size: 1.25em; margin-right: 10px; cursor: move; } .link-like { all: unset; /* Remove all default button styles */ color: #0d6efd; /* Bootstrap blue */ text-decoration: underline; cursor: pointer; font: inherit; /* Match surrounding text */ vertical-align: baseline; /* Align with text */ } /* Apply the move cursor only to the handle */ .handle { cursor: move; } /* Default cursor for the rest of the component */ .component { cursor: default; } .drag-handle:hover { cursor: move; } .drag-text { font-size: 0.875rem; /* Smaller text size */ color: #6c757d; margin-bottom: 0.4rem; } h4 { font-size: 1.4em; /* Slightly smaller than the default size */ } .logo-crop-wrapper { height: 300px; /* 200px original - 50 top - 50 bottom */ overflow: hidden; display: flex; justify-content: center; align-items: center; } .cropped-logo { height: 400px; object-fit: cover; object-position: center; } /* Clean and small dropdown arrow styling */ .card-header button.dropdown-toggle::after { content: "▸"; /* Right-pointing arrow */ font-size: 0.8rem; /* Smaller arrow */ margin-left: 8px; transition: transform 0.2s ease; vertical-align: middle; } .card-header button.dropdown-toggle:not(.collapsed)::after { transform: rotate(90deg); /* Rotate when open */ } .rotate-icon { transition: transform 0.3s ease; } .collapsed .rotate-icon { transform: rotate(0deg); } .rotate-icon.collapsed { transform: rotate(0deg); } .rotate-icon:not(.collapsed) { transform: rotate(0deg); }