/* Add any custom styles here */

/* Sticky Save Bar Styles */
.sticky-save-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #dc3545;
    /* Bootstrap danger color for attention */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030;
    /* Above most Bootstrap components */
    transition: transform 0.3s ease-in-out;
}

.sticky-save-bar.d-none {
    transform: translateY(100%);
}

.sticky-save-bar:not(.d-none) {
    transform: translateY(0);
}

/* Add bottom padding to body when sticky bar is visible to prevent content overlap */
body.sticky-save-bar-visible {
    padding-bottom: 80px;
}

/* https://bootswatch.com/sandstone/ */

/* Custom dark purple button style for Search Insights */
.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-purple:hover {
    color: #fff;
    background-color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-purple:focus,
.btn-outline-purple.focus {
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.5);
}

.btn-outline-purple.disabled,
.btn-outline-purple:disabled {
    color: #6f42c1;
    background-color: transparent;
}

.btn-outline-purple:not(:disabled):not(.disabled):active,
.btn-outline-purple:not(:disabled):not(.disabled).active {
    color: #fff;
    background-color: #6f42c1;
    border-color: #6f42c1;
}


html,
body {
    height: 100%;
}

body {
    background-color: #f8f9fa;
}

.card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Navbar gradient - dark blue to lighter blue */
.bg-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
}

.air-logo {
    width: 200px;
    margin: 0px 20px;
}

.air-registration-form {
    width: 600px;
    max-width: 95vw;
}

.air-link {
    color: #557496 !important;
}


.accordion-button:not(.collapsed) {
    margin-left: 0;
    margin-right: 0;
    border-left: 0;
    border-right: 0;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-item {
    border-left: 0;
    border-right: 0;
}

.accordion-header {
    margin-left: -1px;
    margin-right: -1px;
}

.fixed-width-badge {
    display: inline-block;
    width: 155px;
    text-align: center;
    margin-right: 20px;
    margin-left: 10px;
}

.air-insights-question {
    margin-right: 10px;
}

.insights-label {
    width: 160px;
    padding-top: 2px;
    padding-bottom: 5px;
}

.collapsing {
    transition: height 0.2s ease !important;
}

.collapse.show {
    transition: height 0.2s ease !important;
}


.google-sign-in-button {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTcuNiA5LjJsLS4xLTEuOEg5djMuNGg0LjhDMTMuNiAxMiAxMyAxMyAxMiAxMy42djIuMmgzYTguOCA4LjggMCAwIDAgMi42LTYuNnoiIGZpbGw9IiM0Mjg1RjQiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik05IDE4YzIuNCAwIDQuNS0uOCA2LTIuMmwtMy0yLjJhNS40IDUuNCAwIDAgMS04LTIuOUgxVjEzYTkgOSAwIDAgMCA4IDV6IiBmaWxsPSIjMzRBODUzIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNCAxMC43YTUuNCA1LjQgMCAwIDEgMC0zLjRWNUgxYTkgOSAwIDAgMCAwIDhsMy0yLjN6IiBmaWxsPSIjRkJCQzA1IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNOSAzLjZjMS4zIDAgMi41LjQgMy40IDEuM0wxNSAyLjNBOSA5IDAgMCAwIDEgNWwzIDIuNGE1LjQgNS40IDAgMCAxIDUtMy43eiIgZmlsbD0iI0VBNDMzNSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTAgMGgxOHYxOEgweiIvPjwvZz48L3N2Zz4=);
    background-repeat: no-repeat;
    background-position: 12px 11px;
}

.microsoft-sign-in-button {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21'%3E%3Ctitle%3EMS-SymbolLockup%3C/title%3E%3Crect x='1' y='1' width='9' height='9' fill='%23f25022'/%3E%3Crect x='1' y='11' width='9' height='9' fill='%2300a4ef'/%3E%3Crect x='11' y='1' width='9' height='9' fill='%237fba00'/%3E%3Crect x='11' y='11' width='9' height='9' fill='%23ffb900'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px 11px;
}

.sign-in-button {

    /*width: 210px; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    border-width: 1px !important;
    border-color: #CCCCCC !important;
    border-style: solid !important;

    cursor: pointer;
    transition: background-color .3s, box-shadow .3s;

    padding: 12px 16px 12px 42px;
    border: none;
    border-radius: 3px;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);

    color: #333333;
    font-size: 14px;
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;

    background-color: white;
}

.google-sign-in-button:hover {
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .25);
}

.google-sign-in-button:active {
    background-color: #eeeeee;
}

.google-sign-in-button:active {
    outline: none;
    box-shadow:
        0 -1px 0 rgba(0, 0, 0, .04),
        0 2px 4px rgba(0, 0, 0, .25),
        0 0 0 3px #c8dafc;
}

.google-sign-in-button:disabled {
    filter: grayscale(100%);
    background-color: #ebebeb;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);
    cursor: not-allowed;
}

/* Insights Filters */

.DateRangePickerInput__withBorder {
    border-radius: 4px !important;
    border: 1px solid #ccc !important;
}

#date-range-picker .DateRangePickerInput {
    width: 100%;
}

#date-range-picker .DateInput {
    width: 35%;
}

#date-range-picker .DateInput_input {
    width: 100%;
}

.DateInput {
    border-radius: 6px !important;
}

.DateInput_input {
    font-size: 16px !important;
    font-weight: 400 !important;
    padding: 4px 11px 4px !important;
    border-radius: 6px !important;
}


.Select-placeholder {
    color: #484848 !important;
}


/* Insights UI tabs */


.nav-tabs .nav-link {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}

.nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    border-top: 3px solid #5a7a9d;
    /* Add a colored top border */
    font-weight: bold;
    /* Make the text bold */
}

/* Webcrawl tabs wrapper */
.webcrawl-tabs-wrapper {
    position: relative;
}

/* Webcrawl form section spacing */
.webcrawl-tabs-wrapper .tab-pane>.row {
    margin-bottom: 0.5rem !important;
}

.webcrawl-tabs-wrapper .tab-pane>.row+.row {
    margin-top: 2rem;
}

.webcrawl-tabs-wrapper .tab-pane>.row:first-child {
    margin-top: 0;
}

/* Field Mapping Accordion Styles */
#field-mappings-accordion .accordion-item {
    position: relative;
}

#field-mappings-accordion .accordion-header {
    position: relative;
}

#field-mappings-accordion .accordion-button {
    padding-right: 110px;
}

#field-mappings-accordion .accordion-button::after {
    position: absolute;
    right: 60px;
}

#field-mappings-accordion .field-name-display {
    font-weight: 600;
    color: #495057;
}

#field-mappings-accordion .accordion-button:not(.collapsed) .field-name-display {
    color: #0d6efd;
}

#field-mappings-accordion .remove-field-mapping {
    opacity: 0.6;
    transition: opacity 0.2s;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

#field-mappings-accordion .accordion-item:hover .remove-field-mapping {
    opacity: 1;
}

.conversation-history {
    padding-top: 2px;
}

/* CodeMirror Styling */

.CodeMirror {
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
    font-size: 16px;
    line-height: 1.6;
    padding: 12px;
    background-color: #ffffff;
    color: #333333;
    height: auto !important;
    border-style: solid;
    border-color: #DDDDF9;
    border-width: 1px;
}

.CodeMirror-lines {
    padding: 8px 0;
}

.cm-substitution {
    color: #557496;
    font-weight: 600;
}

/* Modal Styling */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    border: none;
    border-radius: 0;
}

.modal-footer {
    border: none;
    border-radius: 0;
}

.modal-body {
    padding-top: 0;
    padding-bottom: 0;
}

.modal-backdrop.show {
    opacity: 0.6;
}




/* Footer styles */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e7e7e7;
    z-index: 1000;
}

/* You can customize these colors to match your site theme */
.footer a:hover {
    color: #325d88 !important;
    text-decoration: underline !important;
}


.green-button {
    --bs-btn-color: #2b8531;
    --bs-btn-border-color: #2b8531;
    --bs-btn-hover-bg: #2b8531;
    --bs-btn-hover-color: white;
}

.orange-button {
    --bs-btn-color: #fe860d;
    /* Bootstrap orange */
    --bs-btn-border-color: #fe860d;
    --bs-btn-hover-bg: #fe860d;
    --bs-btn-hover-color: white;
}

.red-button {
    --bs-btn-color: #dc3545;
    /* Bootstrap danger */
    --bs-btn-border-color: #dc3545;
    --bs-btn-hover-bg: #dc3545;
    --bs-btn-hover-color: white;
}

.customer_logo {
    display: block;
    width: auto;
    max-width: 250px;
    max-height: 80px;
    height: auto;
}





/* Custom tooltip styles */

.info-icon {
    cursor: pointer;
    font-size: 0.7em;
    vertical-align: middle;
}

.tooltip {
    /* Customize the tooltip container */
    font-family: 'Your-Preferred-Font', sans-serif;
    opacity: 1 !important;
}

.tooltip-inner {
    /* Customize the tooltip content area */
    background-color: #f5ec8a;
    /* Light background */
    color: #1e1e1e;
    /* Dark text */
    border: 1px solid #dee2e6;
    /* Light border */
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 0.75rem 1rem;
    max-width: 300px;
    text-align: left;
    text-transform: none !important;
    /* Prevent text from being capitalised */
    font-size: larger;
}


/* Customize the tooltip arrow */
.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
    border-top-color: #dee2e6;
}

.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before {
    border-right-color: #dee2e6;
}

.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
    border-bottom-color: #dee2e6;
}

.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before {
    border-left-color: #dee2e6;
}


/* SVG Preview */
#svg-preview {
    /* border: 1px solid #ccc; */
    background-color: white;
    padding: 10px;
    margin-bottom: 15px;
    min-height: 50px;
    width: 100%;
    /* Constrain container width */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    /* Include padding/border in element's total width/height */
    padding: 20px;
}

#svg-preview svg {
    /* Make SVG fill container and scale proportionally */
    max-width: 100px;
    height: auto;
}

.CodeMirror {
    border: 1px solid #ccc;
    /* Add border to CodeMirror */
    height: auto;
    /* Ensure CodeMirror takes necessary height */
}

/* Styles for custom danger switch */
.custom-switch-danger .form-check-input:checked {
    background-color: #dc3545;
    /* Bootstrap's danger color */
    border-color: #dc3545;
}

/* Remove default border from unchecked Bootstrap switches and handle focus */
.form-switch .form-check-input {
    border-color: transparent;
}

.form-switch .form-check-input:focus {
    outline: none;
    box-shadow: none;
}

/* Ensure checked danger switch re-applies its border */
/* This selector assumes 'custom-switch-danger' is on the .form-switch wrapper */
.form-switch.custom-switch-danger .form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
    /* This brings back the border for the checked danger state */
}

.test-service {
    background-color: #f0f0f0 !important;
}

.white-background {
    background-color: #fff !important;
}

/* Drag handle styling */
.drag-handle {
    cursor: grab;
}

.list-item.dragging {
    opacity: 0.6;
}

/* Ensure range input track is visible even on light backgrounds */
.search-boost-range {
    -webkit-appearance: none;
    appearance: none;
}

.search-boost-range::-webkit-slider-runnable-track {
    background-color: #b5b8bd;
    /* darker so it pops on light bg */
    height: 0.4rem;
    border-radius: 0.3rem;
    border: 1px solid #8e9399;
}

.search-boost-range::-moz-range-track {
    background-color: #b5b8bd;
    height: 0.4rem;
    border-radius: 0.3rem;
    border: 1px solid #8e9399;
}

.search-boost-range::-ms-track {
    background-color: transparent;
    height: 0.4rem;
    border-color: transparent;
    color: transparent;
    /* hides the awkward ms-track color */
}

.search-boost-range::-ms-fill-lower,
.search-boost-range::-ms-fill-upper {
    background-color: #b5b8bd;
    border: 1px solid #8e9399;
    border-radius: 0.3rem;
}

.search-boost-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    background-color: #0d6efd;
    border: 2px solid #0d6efd;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: -4px;
    /* centers the thumb on the 0.4rem track */
}

.search-boost-range::-moz-range-thumb {
    background-color: #0d6efd;
    border: 2px solid #0d6efd;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.search-boost-range::-ms-thumb {
    background-color: #0d6efd;
    border: 2px solid #0d6efd;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: 0;
}

.search-boost-range:focus {
    outline: none;
}

/* Service card improvements */
.service-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    align-self: flex-start;
    /* Prevents cards from stretching to match tallest card */
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
    border-color: #0d6efd;
}

/* Professional accordion styling */
.accordion-button {
    font-size: 0.9rem;
    padding: 1rem 1.25rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0;
    font-weight: 500;
    transition: all 0.15s ease;
    color: #495057;
}

.accordion-button:not(.collapsed) {
    color: #0d6efd;
    background-color: #f8f9fb;
    border-color: #e2e8f0;
    box-shadow: none;
}

.accordion-button:focus {
    z-index: 3;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.accordion-button:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.accordion-body {
    padding: 1.25rem;
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
}

.accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.accordion-item:first-of-type .accordion-button {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.accordion-item:last-of-type .accordion-button.collapsed {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* Enhanced button styling */
.quick-action-btn {
    font-weight: 500;
    border-width: 2px;
    transition: all 0.2s ease-in-out;
    font-size: 0.85rem;
    letter-spacing: 0.025em;
    min-height: 48px;
    /* Ensure consistent button height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Improved button consistency */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}

/* Status indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-active {
    background-color: #28a745;
}

.status-inactive {
    background-color: #6c757d;
}

.status-error {
    background-color: #dc3545;
}

/* Search input styling */
#serviceSearch {
    border-radius: 0.375rem;
    border: 2px solid #dee2e6;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#serviceSearch:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Service status overview styling */
.service-status-overview {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

/* Improved service card layout */
.service-item {
    transition: opacity 0.3s ease-in-out;
}

.service-item.d-none {
    opacity: 0;
}

/* Better spacing for accordion sections */
.accordion-item+.accordion-item {
    margin-top: -1px;
}

/* Hover effect for accordion buttons */
.accordion-button:hover {
    background-color: #e9ecef;
}

/* Improved button spacing in accordion */
.accordion-body .row+.row {
    margin-top: 0.5rem;
}

/* Modern minimal buttons for accordion */
.btn-pastel-blue {
    color: #374151;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    font-weight: 500;
    min-height: 50px;
    /* Reduced height for more compact layout */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    text-align: left;
    width: 100%;
}

.btn-pastel-blue i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: #6b7280;
    min-width: 20px;
}

.btn-pastel-blue:hover {
    color: #1e40af;
    background-color: #eff6ff;
    border-color: #bfdbfe;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.btn-pastel-blue:focus {
    color: #111827;
    background-color: #f3f4f6;
    border-color: #3b82f6;
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.btn-pastel-blue:active {
    color: #111827;
    background-color: #e5e7eb;
    border-color: #d1d5db;
    transform: none;
}

/* Card body improvements */
.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    background-color: #fafbfc;
    border-top: 1px solid #e9ecef !important;
}

/* Service grid improvements */
.row.row-cols-1.row-cols-md-3 {
    row-gap: 2rem;
    align-items: flex-start;
    /* Prevents equal height stretching */
}

/* Logo container improvements */
.customer_logo {
    /* No filter applied - clean logo display */
}

/* Service URL truncation */
.service-url {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Focus states for accessibility */
.btn:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.accordion-button:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Loading states */
.btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Search input enhancements */
.input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

/* Tutorial Video Button - Consistent style for help videos across the app */
/* Color matches the right side of the navbar gradient (lighter blue) */
.btn-tutorial {
    color: #fff;
    background: linear-gradient(135deg, #0f3460 0%, #1a5090 100%);
    border: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(15, 52, 96, 0.4);
}

.btn-tutorial:hover {
    color: #fff;
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(15, 52, 96, 0.5);
}

.btn-tutorial:focus {
    color: #fff;
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    box-shadow: 0 2px 4px rgba(15, 52, 96, 0.4);
}

.btn-tutorial:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(15, 52, 96, 0.4);
}

.btn-tutorial i {
    font-size: 1.1em;
}

/* Function list styling for Agent Prompts */
#agent-prompts-container .function-row {
    background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: all 0.15s ease;
}

#agent-prompts-container .function-row:hover {
    background: #fff;
    border-color: #c5d1de;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#agent-prompts-container .function-row .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.1em;
    flex-shrink: 0;
}

#agent-prompts-container .function-row .fw-medium {
    color: #1a5090;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

#agent-prompts-container .function-row .text-muted {
    display: block;
    margin-top: 4px;
    color: #5a6a7e;
    line-height: 1.5;
}

#agent-prompts-container .function-row .text-secondary {
    display: block;
    background: #f1f3f5;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 10px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.78rem;
    color: #495057;
    line-height: 1.6;
}

/* Keep parameter types inline with parameter names */
#agent-prompts-container .function-row .text-secondary .text-muted {
    display: inline;
    margin-top: 0;
    color: #6b7280;
}

/* Visual indicator for checked state */
#agent-prompts-container .function-row:has(input:checked) {
    border-left: 4px solid #15803d;
    background: linear-gradient(to right, #dcfce7 0%, #f0fdf4 100%);
}

#agent-prompts-container .function-row:has(input:checked) .fw-medium {
    color: #14532d;
}

#agent-prompts-container .function-row:has(input:checked) .text-muted {
    color: #3f6212;
}

#agent-prompts-container .function-row:has(input:checked) .text-secondary .text-muted {
    color: #4d7c0f;
}

/* Function checkboxes container */
#agent-prompts-container .function-checkboxes {
    padding: 8px 0;
}

/* AI Prompt Review side panel (edit_prompt page) */
.prompt-edit-layout {
    position: relative;
}

.prompt-review-panel {
    width: 0;
    overflow: hidden;
    flex-shrink: 0;
    transition: width 0.3s ease, opacity 0.2s ease;
    opacity: 0;
    border-left: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.prompt-review-panel.prompt-review-panel-visible {
    width: 400px;
    opacity: 1;
    min-width: 320px;
}

.prompt-review-panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.prompt-review-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.prompt-review-content {
    font-size: 0.9rem;
    line-height: 1.6;
}

.prompt-review-content h2 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #1a5090;
}

.prompt-review-content h2:first-child {
    margin-top: 0;
}

.prompt-review-content ul,
.prompt-review-content ol {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.prompt-review-content p {
    margin-bottom: 0.75rem;
}

.prompt-review-content code {
    background: #e9ecef;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
}

/* AI Prompt Review button on sticky save bar */
.btn-ai-review {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-ai-review:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #000;
}

.btn-ai-review:focus {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

/* CodeMirror line highlight for AI Prompt Review (changed/added lines) */
.prompt-review-line-highlight {
    background-color: #fff3cd !important;
    pointer-events: none;
}

/* Mobile navbar improvements */
@media (max-width: 767.98px) {
    .navbar-nav .nav-item.dropdown .btn {
        width: 100%;
        text-align: left;
        margin-bottom: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    /* Account dropdown improvements for mobile */
    #account_dropdown {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        min-width: auto !important;
        margin-top: 0.5rem;
        transform: none !important;
    }

    /* Better spacing for mobile nav items */
    .navbar-nav .nav-item {
        margin-left: 0 !important;
        margin-bottom: 0.25rem;
    }
}