.transformations_loader_overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 52, 102, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.transformations_loader_overlay.is-visible {
    display: flex;
}

.transformations_loader_content {
    text-align: center;
    color: #ffffff;
    font-size: 16px;
}

.transformations_loader_spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #7ab8ff;
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: transformations_loader_spin 1s linear infinite;
}

.transformations_loader_text {
    font-weight: 600;
    letter-spacing: .5px;
}

.btn-loading {
    opacity: .8;
    position: relative;
}

.btn-loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.6);
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    animation: transformations_loader_spin .8s linear infinite;
}

@keyframes transformations_loader_spin {
    to {
        transform: rotate(360deg);
    }
}
/**
 * Test Page Version Dropdown Styles
 * Custom dropdown for selecting transformation versions on the test page
 */

.test_version_dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.test_version_dropdown_trigger {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    font-family: inherit;
    min-height: 44px;
}

.test_version_dropdown_trigger:hover {
    border-color: #2196F3;
}

.test_version_dropdown.test_version_dropdown_open .test_version_dropdown_trigger {
    border-color: #2196F3;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.test_version_dropdown_arrow {
    color: #666;
    font-size: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.test_version_dropdown.test_version_dropdown_open .test_version_dropdown_arrow {
    transform: rotate(180deg);
}

.test_version_dropdown_options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #2196F3;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.test_version_dropdown.test_version_dropdown_open .test_version_dropdown_options {
    display: block;
}

.test_version_dropdown_option {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.test_version_dropdown_option:last-child {
    border-bottom: none;
}

.test_version_dropdown_option:hover {
    background: #f5f5f5;
}

.test_version_dropdown_option.test_version_dropdown_option_selected {
    background: #e3f2fd !important;
    font-weight: 500;
    color: #1976d2;
}

.test_version_dropdown_selected_text {
    flex: 1;
    text-align: left;
}

/* Custom scrollbar for options */
.test_version_dropdown_options::-webkit-scrollbar {
    width: 8px;
}

.test_version_dropdown_options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.test_version_dropdown_options::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.test_version_dropdown_options::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Disabled state */
.test_version_dropdown.test_version_dropdown_disabled .test_version_dropdown_trigger {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .test_version_dropdown {
        width: 100%;
    }
    
    .test_version_dropdown_options {
        max-height: 250px;
    }
}


/**
 * File Search Styles
 * Search input for filtering files from connected apps
 */

 .file-search-container {
    position: relative;
    width: 100%;
}

.file-search-input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.file-search-input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.file-search-input::placeholder {
    color: #999;
}



/**
 * Edit Page - Reference Content Management Styles
 * Styles for adding/removing reference labels in edit.html
 * Naming convention: edit_classname_functionality
 */

.edit_reference_item {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex !important;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.edit_reference_item:hover {
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.edit_reference_label {
    flex: 0 0 120px;
}

.edit_reference_label strong {
    color: #666;
    font-size: 14px;
}

.edit_reference_input_wrapper {
    flex: 1;
    min-height: 40px;
}

.edit_reference_input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 40px;
    display: block;
}

.edit_reference_input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.edit_reference_input::placeholder {
    color: #999;
}

.edit_reference_input_error {
    border-color: #d32f2f !important;
    background-color: #ffebee !important;
}

.edit_reference_remove_btn_wrapper {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit_reference_remove_btn {
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.edit_reference_remove_btn:hover {
    background: #b71c1c;
    transform: scale(1.1);
}

.edit_reference_remove_btn:active {
    transform: scale(0.95);
}

.edit_reference_remove_btn i {
    font-size: 14px;
    line-height: 1;
}

#add_reference_btn {
    font-size: 14px;
}

#add_insight_btn {
    margin-bottom: 30px;
}

#stakeholder_insight_container {
    margin-bottom: 30px;
}

/* SEO Details Styles */
.edit_seo_textarea {
    height: 50px !important;
    min-height: 50px !important;
    resize: none;
    overflow-y: auto;
}

.edit_seo_container {
    margin-bottom: 15px;
}

.edit_seo_item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.edit_seo_field {
    margin-bottom: 15px;
}

.edit_seo_field:last-child {
    margin-bottom: 0;
}

.edit_seo_input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    height: 40px;
}

.edit_seo_input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.edit_seo_solution_item,
.edit_seo_stakeholder_item {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.edit_seo_solution_item:hover,
.edit_seo_stakeholder_item:hover {
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.edit_seo_remove_btn_wrapper {
    position: absolute;
    top: 15px;
    right: 15px;
}

.edit_seo_remove_btn {
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.edit_seo_remove_btn:hover {
    background: #b71c1c;
    transform: scale(1.1);
}

.edit_seo_remove_btn:active {
    transform: scale(0.95);
}

.edit_seo_remove_btn i {
    font-size: 14px;
    line-height: 1;
}

/**
 * Edit Page - Insights Builder
 */

.insights_container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.insight_item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fcfcfc;
}

.insight_item_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
}

.insight_item_header_left {
    display: flex;
    align-items: center;
    flex: 1;
}

.insight_item_header_right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.insight_title {
    color: #333;
    font-size: 15px;
}

.insight_view_prompt_btn {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.insight_view_prompt_btn:hover {
    background: #1565c0;
}

.insight_view_prompt_btn i {
    font-size: 14px;
}

.insight_remove_btn {
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.insight_fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Collapsible insight styles */
.insight_item.collapsed .insight_fields {
    display: none;
}

.insight_collapse_btn {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.insight_collapse_btn:hover {
    background: #1565c0;
}

.insight_collapse_btn i {
    transition: transform 0.2s;
}

.insight_item.collapsed .insight_collapse_btn i {
    transform: rotate(-90deg);
}

.insight_field label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.insight_field_input,
.insight_field_textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.insight_field_textarea {
    min-height: 80px;
    resize: vertical;
}

.insight_field_seo_summary {
    min-height: 50px !important;
    height: 50px !important;
    resize: vertical;
    overflow-y: auto;
}


.edit_system_prompt_textarea {
    height: 48px !important;
    min-height: 48px !important;
    resize: none;
    overflow-y: auto;
}

.insight_data_type_config {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.insight_data_type_description {
    margin-top: 8px;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    font-style: italic;
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
}

.insight_data_type_field {
    margin-bottom: 12px;
}

.insight_data_type_field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.insight_data_type_input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.insight_data_type_input_textarea {
    width: 100%;
    height: 80px !important;
    min-height: 80px !important;
    resize: vertical;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.insight_dynamic_column_group {
    display: grid !important;
    grid-template-columns: 2fr 1.5fr 6.5fr !important;
    column-gap: 16px;
    row-gap: 0;
    margin-bottom: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.insight_dynamic_column_group .insight_data_type_field {
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.insight_dynamic_column_group .insight_data_type_field label {
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 5px;
}

.insight_dynamic_column_group .insight_data_type_field input,
.insight_dynamic_column_group .insight_data_type_field .insight_data_type_input {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box !important;
    max-width: 100%;
    margin: 0;
}

.insight_dynamic_column_group .insight_data_type_field:not(:last-child) {
    margin-right: 0;
}

.insight_paired_field_group {
    display: grid;
    grid-template-columns: 3fr 7fr;
    column-gap: 16px;
    margin-bottom: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.insight_paired_field_group .insight_data_type_field {
    margin-bottom: 0;
}

/**
 * View Page Styles
 */

.view_actions_buttons {
    display: flex;
    gap: 10px;
}

/**
 * Test Page - Reference Content Section Styles
 * Styles for the reference content section in test.html
 */

.test_description_reference_content {
    margin: 5px 0 10px 0;
    font-size: 14px;
}

/**
 * Test Page - Meta Parameters Styles
 * Styles for LLM model parameters during testing
 * Naming convention: test_meta_parameter_classname
 */

.test_meta_parameter_field {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.test_meta_parameter_field:hover {
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.test_meta_parameter_field_label {
    flex: 1;
}

.test_meta_parameter_field_label label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.test_meta_parameter_field_label strong {
    color: #2196F3;
    font-size: 14px;
}

.test_meta_parameter_suffix {
    font-size: 12px;
    color: #999;
    font-weight: normal;
    margin-left: 5px;
}

.test_meta_parameter_description {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.test_meta_parameter_hint {
    margin: 3px 0 0 0;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.test_meta_parameter_field_input {
    flex: 0 0 180px;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.test_meta_parameter_input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 40px;
}

.test_meta_parameter_input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.test_meta_parameter_input::placeholder {
    color: #999;
}

.test_meta_parameter_checkbox_wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
}

.test_meta_parameter_checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.test_meta_parameter_checkbox_label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

/* Mobile responsive for Meta parameters */
@media (max-width: 768px) {
    .test_meta_parameter_field {
        flex-direction: column;
        gap: 10px;
    }
    
    .test_meta_parameter_field_input {
        flex: 0 0 auto;
        width: 100%;
    }
}

/**
 * Test Page Styles
 * Styles for transformation testing page (test.html)
 */

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Page reload overlay animation */
#page_reload_overlay {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Split Pane Styles */
#split_container {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    overflow-x: hidden;
}

/* Ensure content wraps and doesn't overflow */
#left_panel *,
#right_panel * {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

#left_panel pre,
#right_panel pre {
    overflow-x: auto;
    max-width: 100%;
}

/* Ensure form elements don't overflow */
#left_panel textarea,
#left_panel input[type="text"],
#left_panel select {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix textarea height and resize */
#left_panel textarea {
    min-height: 200px !important;
    resize: vertical !important;
    display: block !important;
}

#reference_text {
    min-height: 200px !important;
    resize: vertical !important;
    display: block !important;
}

/* Ensure textarea resize handle is visible */
textarea {
    overflow: auto !important;
}

/* Fix for all textareas in form fields */
.form ._field textarea {
    display: block !important;
}

/* Specific fix for resizable textareas - highest specificity */
.form ._field ._value textarea.resizable-textarea,
textarea.resizable-textarea,
#reference_text {
    display: block !important;
    resize: vertical !important;
    overflow: auto !important;
    -webkit-appearance: textfield !important;
    appearance: textfield !important;
}

/* Override global flex display on all textareas */
div._value textarea {
    display: block !important;
}

/* Scrollbar styles for panels */
#left_panel::-webkit-scrollbar,
#right_panel::-webkit-scrollbar {
    width: 8px;
}

#left_panel::-webkit-scrollbar-track,
#right_panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#left_panel::-webkit-scrollbar-thumb,
#right_panel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#left_panel::-webkit-scrollbar-thumb:hover,
#right_panel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Version selector */
#version_selector:hover {
    border-color: #999 !important;
}

#version_selector:focus {
    outline: none;
    border-color: #2196F3 !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Input mode cards */
.input-mode-card {
    transition: all 0.3s ease;
}

.input-mode-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.input-mode-card.active {
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Parameter mode cards */
.param-mode-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Parameter items */
.parameter_item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #f9f9f9;
}

.parameter_item:hover {
    border-color: #bbb !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* App items */
.app_item:hover {
    background: #f5f5f5;
}

.app_item.active {
    background: #e3f2fd;
}

.app_item img {
    width: 24px !important;
    height: 24px !important;
}

.app_item i.fa-fw {
    font-size: 24px;
}

/* File items */
.file_item {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file_item:hover {
    background: #f9f9f9;
}

.file_item.selected {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.file_item input[type="radio"] {
    width: 18px;
    height: 18px;
}

/* Selected file chips */
.selected_file_chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e3f2fd;
    padding: 8px 12px;
    border-radius: 16px;
    margin: 4px;
    font-size: 13px;
}

.selected_file_chip .remove_btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin: 0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    #split_container {
        flex-direction: column !important;
        min-height: calc(100vh - 150px);
        max-width: 100vw !important;
    }
    
    #left_panel {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #ddd;
        max-height: none;
    }
    
    #divider {
        display: none !important;
    }
    
    #right_panel {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 400px;
    }
    
    .input-mode-card {
        padding: 15px !important;
    }
    
    .input-mode-card h4 {
        font-size: 14px !important;
    }
    
    .input-mode-card p {
        font-size: 12px !important;
    }
    
    #version_selector {
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .input-mode-container {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    #mode_card_text,
    #mode_card_files {
        margin-bottom: 0 !important;
    }
}

/**
 * Edit Page - Section Organization Styles
 * Highly visible section headings that act as navigation landmarks
 * Naming convention: edit_section_component
 */

.edit_section {
    margin-bottom: 40px;
    margin-top: 30px;
}

.edit_section:first-child {
    margin-top: 0;
}

.edit_section_heading {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    padding: 16px 20px;
    margin: 0 0 20px 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.25);
    letter-spacing: 0.5px;
    text-transform: none;
    border-left: 5px solid #0d47a1;
    position: relative;
}

.edit_section_heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #0d47a1;
    border-radius: 6px 0 0 6px;
}

.edit_section_content {
    display: flex;
    flex-direction: column;
    gap: 0;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Ensure proper spacing between sections */
.edit_section + .edit_section {
    margin-top: 35px;
}

/* Edit Page - Description Text Styles */
.edit_description_text {
    padding-top: 2px;
    padding-bottom: 5px;
    font-size: 14px;
}

/* Edit Page - References Container Wrapper */
.edit_references_container_wrapper {
    margin-bottom: 15px;
}

/* Utils Page Styles */
.transformations_utils_container {
    max-width: 800px;
    margin: 0;
}

.transformations_utils_section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.transformations_utils_section_heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.transformations_utils_section_content {
    padding: 10px 0;
}

.transformations_utils_description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.transformations_utils_sheet_link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
    margin-bottom: 20px;
}

.transformations_utils_sheet_link:hover {
    text-decoration: underline;
}

.transformations_sync_audience_button,
.transformations_sync_categories_button {
    min-width: 150px;
    position: relative;
}

.transformations_sync_audience_button i,
.transformations_sync_categories_button i {
    margin-right: 8px;
}

.transformations_sync_audience_button:disabled,
.transformations_sync_categories_button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.transformations_sync_audience_button_loading,
.transformations_sync_categories_button_loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.transformations_sync_audience_button i.fa-spin,
.transformations_sync_categories_button i.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Result message container */
.transformations_sync_audience_result,
.transformations_sync_categories_result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    display: none;
    animation: transformations_sync_audience_fadeIn 0.3s ease-in;
}

.transformations_sync_audience_result:not(:empty),
.transformations_sync_categories_result:not(:empty) {
    display: block;
}

.transformations_sync_audience_result_loading,
.transformations_sync_categories_result_loading {
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1976d2;
}

.transformations_sync_audience_result_success,
.transformations_sync_categories_result_success {
    background-color: #e8f5e9;
    border: 1px solid #81c784;
    color: #2e7d32;
}

.transformations_sync_audience_result_error,
.transformations_sync_categories_result_error {
    background-color: #ffebee;
    border: 1px solid #ef5350;
    color: #c62828;
}

.transformations_sync_audience_result_message,
.transformations_sync_categories_result_message {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transformations_sync_audience_result_main,
.transformations_sync_categories_result_main {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.transformations_sync_audience_result_main i,
.transformations_sync_categories_result_main i {
    font-size: 16px;
}

.transformations_sync_audience_result_details,
.transformations_sync_categories_result_details {
    font-size: 13px;
    color: #555;
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.transformations_sync_audience_result_details strong,
.transformations_sync_categories_result_details strong {
    color: #333;
    font-weight: 600;
}

/* Edit page category dropdowns */
.edit_categories_container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edit_categories_select {
    width: 100%;
    max-width: 500px;
    min-height: 38px;
    font-size: 14px;
}

.edit_categories_select option:first-child {
    font-style: italic;
    color: #999;
}

.edit_categories_select_placeholder {
    font-style: italic;
    color: #999;
}

.edit_categories_select_placeholder option:not(:first-child) {
    font-style: normal !important;
    color: #000 !important;
}

.edit_categories_select_loading {
    cursor: progress;
    color: #777;
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    background-size: 14px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%23999' d='M10 0a10 10 0 0 1 0 20 1.4 1.4 0 0 1 0-2.8 7.2 7.2 0 1 0 0-14.4A1.4 1.4 0 0 1 10 0z'/%3E%3C/svg%3E");
}

@keyframes transformations_sync_audience_fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Version Audience Multi-Select */
.version_audience_selected {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 30px;
}

.version_audience_tag {
    display: inline-flex;
    align-items: center;
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    gap: 6px;
}

.version_audience_remove {
    cursor: pointer;
    margin-left: 6px;
    font-size: 12px;
}

.version_audience_remove:hover {
    color: #d32f2f;
}

.version_audience_dropdown_wrapper {
    position: relative;
}

.version_audience_add_btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}

.version_audience_add_btn:hover {
    background-color: #e0e0e0;
}

.version_audience_dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 200px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.version_audience_dropdown_option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.version_audience_dropdown_option:last-child {
    border-bottom: none;
}

.version_audience_dropdown_option:hover {
    background-color: #f5f5f5;
}

/* Insight Audience Multi-Select */
.insight_audience_selected {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 30px;
}

.insight_audience_tag {
    display: inline-flex;
    align-items: center;
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    gap: 6px;
}

.insight_audience_remove {
    cursor: pointer;
    margin-left: 6px;
    font-size: 12px;
}

.insight_audience_remove:hover {
    color: #d32f2f;
}

.insight_audience_dropdown_wrapper {
    position: relative;
}

.insight_audience_add_btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}

.insight_audience_add_btn:hover {
    background-color: #e0e0e0;
}

.insight_audience_dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 200px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insight_audience_dropdown_option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.insight_audience_dropdown_option:last-child {
    border-bottom: none;
}

.insight_audience_dropdown_option:hover {
    background-color: #f5f5f5;
}

/* Insight Solutions Styles (similar to Audience) */
.insight_solutions_selected {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 30px;
}

.insight_solutions_tag {
    display: inline-flex;
    align-items: center;
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    gap: 6px;
}

.insight_solutions_remove {
    cursor: pointer;
    margin-left: 6px;
    font-size: 12px;
}

.insight_solutions_remove:hover {
    color: #d32f2f;
}

.insight_solutions_dropdown_wrapper {
    position: relative;
}

.insight_solutions_add_btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}

.insight_solutions_add_btn:hover {
    background-color: #e0e0e0;
}

.insight_solutions_dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 200px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.insight_solutions_dropdown_option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.insight_solutions_dropdown_option:last-child {
    border-bottom: none;
}

.insight_solutions_dropdown_option:hover {
    background-color: #f5f5f5;
}

/**
 * NEW: Readonly Insights Styles
 * Purpose: Visual styling for insights from global collection (non-editable)
 */
.insight_readonly {
    opacity: 0.85;
    background-color: #f5f5f5 !important;
    border-color: #ccc !important;
}

.insight_readonly input,
.insight_readonly textarea,
.insight_readonly select {
    background-color: #e9e9e9 !important;
    cursor: not-allowed !important;
    color: #666 !important;
}

.insight_readonly .insight_audience_selected {
    opacity: 0.8;
    pointer-events: none;
}

/* NEW: Bright blue background for solution tags in published (readonly) insights */
.insight_readonly .insight_solutions_tag {
    background-color: #FFFFFF !important;
}

.insight_readonly_message {
    padding: 10px 12px;
    margin-bottom: 12px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insight_readonly_message i {
    color: #ffc107;
    font-size: 14px;
}

/**
 * NEW: Global Insights Dropdown Container
 * Purpose: Styling for the dropdown that allows selecting insights from global collection
 */
.insight_dropdown_container {
    margin-top: 20px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.insight_dropdown_container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

#global_insights_dropdown {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

#global_insights_dropdown:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Validation Popover */
.insight_validation_popover {
    position: fixed;
    padding: 12px 16px;
    background: #ff6b6b;
    color: #fff;
    font-size: 13px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10001;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.insight_validation_popover.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.insight_validation_popover i {
    margin-right: 6px;
}

/* Prompt Modal */
.insight_prompt_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.insight_prompt_modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.insight_prompt_modal_content {
    position: relative;
    background: white;
    width: 85%;
    max-width: 1200px;
    max-height: 85vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 1;
}

.insight_prompt_modal_header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.insight_prompt_modal_header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.insight_prompt_modal_close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight_prompt_modal_close:hover {
    color: #333;
}

.insight_prompt_modal_body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.insight_prompt_text {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #333;
}

.insight_prompt_display {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.insight_prompt_section {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background: #f9f9f9;
}

.insight_prompt_section_title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.insight_prompt_section_collapsible .insight_prompt_section_title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.insight_prompt_section_collapsible .insight_prompt_section_title:hover {
    color: #0066cc;
}

.insight_prompt_content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    max-height: 500px;
    overflow-y: auto;
    margin: 0;
    outline: none;
    cursor: text;
}

.insight_prompt_content:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.insight_prompt_content[contenteditable="true"] {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}