/* Fullscreen controls container and buttons */
#fullscreen-controls-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2147483647;
    display: flex;
    flex-direction: row;
    gap: 12px;
    pointer-events: auto !important;
    background: none;
}

#fullscreen-controls-container button {
    position: static !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.95);
    border: 1px solid #ccc;
    margin: 0;
    padding: 0 !important;
    width: 48px;
    height: 48px;
}

#fullscreen-controls-container .neo-btn {
    min-width: 48px;
    min-height: 48px;
}
body {
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            height: 100vh;
        }

        .playground-topnav {
            z-index: 1000;
        }

        .content-wrapper {
            display: flex;
            flex: 1;
            overflow: hidden;
            width: 100%;
        }

        .neo-leftnav--wrapper {
            width: 400px !important;
            min-width: 400px !important;
            max-width: 400px !important;
            height: 100%;
            overflow-y: auto;
            flex-shrink: 0;
            position: relative;
            transition: margin-left 0.3s ease;
        }

        .neo-leftnav__main {
            max-width: 400px !important;
        }

        .main-content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            min-width: 0;
            display: flex;
            flex-direction: column;
        }

        .grid-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 20px;
        }

        .panel {
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 20px;
            transition: background-color 0.3s;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .panel:hover {
            /* background-color: #f5f5f5; */
            background-color: #eeeeff;
        }

        .panel.clicked {
            background-color: #f0f0f0;
        }

        .bottom-panel {
            grid-column: 1 / -1;
        }

        .bottom-panel.clicked {
            background-color: #e6ffe6;
            /* Light green shade */
        }

        /* Add this to your existing CSS */
        .panel-group {
            display: flex;
        }

        .panel-group .panel {
            flex: 1;
            margin: 0;
            /* Remove margin between sub-panels */
        }

        .sub-panel {
            /* Inherit styles from .panel */
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 20px;
            transition: background-color 0.3s;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .panel.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* Media query for small screens */
        @media (max-width: 768px) {
            .grid-container {
                grid-template-columns: 1fr;
            }

            .panel-group {
                flex-direction: column;
            }

            .panel-group .panel {
                margin-bottom: 10px;
            }

            .sub-panel:first-child {
                margin-bottom: 10px;
            }

            /* Hide the slideout menu on small screens */
            .neo-leftnav--wrapper {
                display: none;
            }

            /* Adjust main content to take full width */
            .main-content {
                width: 100%;
            }

            /* Add a menu toggle button for small screens */
            .menu-toggle {
                display: block;
                position: fixed;
                top: 10px;
                left: 10px;
                z-index: 1001;
                background: none;
                border: none;
                font-size: 24px;
                color: #333;
            }
        }

        /* Hide menu toggle on larger screens */
        .menu-toggle {
            display: none;
        }

        .neo-leftnav--wrapper.collapsed {
            margin-left: -400px;
        }

        /* Single toggle button - fixed position, always visible */
        .panel-toggle {
            position: fixed;
            bottom: 20px;
            left: 396px;
            width: 20px;
            height: 40px;
            background: #007ac3;
            border: none;
            border-radius: 0 8px 8px 0;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .panel-toggle:hover {
            background: #005a94;
        }

        .panel-toggle span {
            font-size: 14px;
        }

        /* Accordion custom styles */
        .neo-accordion__content {
            transition: all 0.3s ease;
            overflow: hidden;
        }

        .neo-accordion__content-wrapper {
            padding: 16px;
        }

        .neo-accordion__item--expanded .neo-accordion__header-text {
            font-weight: bold;
        }

        /* Chat/AI message area styles */
        .neo-leftnav__messages {
            flex: 1 1 auto;
            overflow-y: auto;
            padding: 20px 12px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            scrollbar-width: none;
            /* Firefox */
            -ms-overflow-style: none;
            /* IE 10+ */
            border-top: 1px solid #e0e0e0;
            margin-top: 10px;
            min-height: 0;
        }

        .neo-leftnav__messages::-webkit-scrollbar {
            width: 0;
            background: transparent;
        }

        .neo-leftnav__input-container {
            width: 100%;
            padding: 10px;
            box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.03);
            box-sizing: border-box;
        }

        .neo-message {
            display: flex;
            align-items: flex-end;
            gap: 8px;
            font-size: 13px;
            line-height: 1.4;
        }

        .neo-message--ai {
            flex-direction: row;
            justify-content: flex-start;
        }

        .neo-message--human {
            flex-direction: row;
            justify-content: flex-end;
        }

        .neo-message__avatar {
            font-size: 18px;
            color: #007ac3;
            background: #e3f0fa;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .neo-message--human .neo-message__avatar {
            color: #fff;
            background: #007ac3;
        }

        .neo-message__bubble {
            background: #fff;
            border-radius: 12px;
            padding: 8px 14px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
            max-width: 220px;
            word-break: break-word;
            border: 1px solid #e0e0e0;
        }

        .neo-message--ai .neo-message__bubble {
            background: #f0f7ff;
            border-color: #cce3fa;
        }

        .neo-message--human .neo-message__bubble {
            background: #e6f7ff;
            border-color: #b3e0ff;
            text-align: right;
        }

        /* Markdown content styling for AI messages */
        .neo-message--ai .neo-message__bubble h1,
        .neo-message--ai .neo-message__bubble h2,
        .neo-message--ai .neo-message__bubble h3,
        .neo-message--ai .neo-message__bubble h4,
        .neo-message--ai .neo-message__bubble h5,
        .neo-message--ai .neo-message__bubble h6 {
            margin: 0.5em 0 0.3em 0;
            font-weight: 600;
            line-height: 1.3;
        }

        .neo-message--ai .neo-message__bubble h1 { font-size: 1.2em; }
        .neo-message--ai .neo-message__bubble h2 { font-size: 1.1em; }
        .neo-message--ai .neo-message__bubble h3 { font-size: 1.05em; }
        .neo-message--ai .neo-message__bubble h4,
        .neo-message--ai .neo-message__bubble h5,
        .neo-message--ai .neo-message__bubble h6 { font-size: 1em; }

        .neo-message--ai .neo-message__bubble p {
            margin: 0.5em 0;
            line-height: 1.4;
        }

        .neo-message--ai .neo-message__bubble ul,
        .neo-message--ai .neo-message__bubble ol {
            margin: 0.5em 0;
            padding-left: 1.5em;
        }

        .neo-message--ai .neo-message__bubble li {
            margin: 0.2em 0;
        }

        .neo-message--ai .neo-message__bubble code {
            background: rgba(0, 122, 195, 0.1);
            padding: 0.1em 0.3em;
            border-radius: 3px;
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
        }

        .neo-message--ai .neo-message__bubble pre {
            background: rgba(0, 122, 195, 0.1);
            padding: 0.5em;
            border-radius: 5px;
            overflow-x: auto;
            margin: 0.5em 0;
        }

        .neo-message--ai .neo-message__bubble pre code {
            background: none;
            padding: 0;
        }

        .neo-message--ai .neo-message__bubble blockquote {
            border-left: 3px solid #007ac3;
            padding-left: 0.8em;
            margin: 0.5em 0;
            color: #666;
            font-style: italic;
        }

        .neo-message--ai .neo-message__bubble strong {
            font-weight: 600;
        }

        .neo-message--ai .neo-message__bubble em {
            font-style: italic;
        }

        .neo-message--ai .neo-message__bubble a {
            color: #007ac3;
            text-decoration: none;
        }

        .neo-message--ai .neo-message__bubble a:hover {
            text-decoration: underline;
        }

        /* First and last element margin adjustments */
        .neo-message--ai .neo-message__bubble > *:first-child {
            margin-top: 0;
        }

        .neo-message--ai .neo-message__bubble > *:last-child {
            margin-bottom: 0;
        }

        .neo-leftnav__input-row {
            display: flex;
            align-items: flex-end;
            gap: 6px;
            position: relative;
            width: 100%;
            box-sizing: border-box;
        }

        .neo-leftnav__textarea {
            flex: 1 1 auto;
            resize: none;
            border: none;
            /* Remove border - will be on container */
            border-radius: 0;
            padding: 16px 16px 0px 16px;
            /* No bottom padding */
            font-size: 13px;
            min-height: calc(108px - 48px);
            /* Subtract bottom button area */
            max-height: calc(180px - 48px);
            /* Subtract bottom button area */
            background: transparent;
            outline: none;
            line-height: 1.4;
            overflow-y: auto;
            box-sizing: border-box;
        }

        /* Textarea container with border and button area */
        .neo-leftnav__textarea-container {
            position: relative;
            border-radius: 8px;
            border: 1px solid #d0d0d0;
            background: #fff;
            min-height: 108px;
            max-height: 180px;
            display: flex;
            flex-direction: column;
            width: 100%;
            /* Ensure full width */
            flex: 1;
            /* Take all available space */
            box-sizing: border-box;
        }

        /* Bottom button area */
        .neo-leftnav__button-area {
            height: 48px;
            position: relative;
            flex-shrink: 0;
            border-top: 1px solid #f0f0f0;
            background: transparent;
            border-radius: 0 0 8px 8px;
        }

        .neo-leftnav__send-btn {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: #f0f7ff;
            border: none;
            color: #007ac3;
            font-size: 18px;
            padding: 6px 18px;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            transition: background 0.2s, color 0.2s;
            pointer-events: all;
        }

        .neo-leftnav__send-btn:hover {
            color: #fff;
            background: #007ac3;
            border-radius: 12px;
            /* Keep slightly rounded on hover */
            transition: background 0.2s, color 0.2s;
        }

        /* Icon buttons inside button area */
        .neo-leftnav__icon-buttons {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            gap: 8px;
            z-index: 10;
            pointer-events: all;
            background: rgba(255, 255, 255, 0.95);
            padding: 4px 6px;
            border-radius: 6px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .neo-leftnav__icon-btn {
            background: none;
            border: none;
            color: #007ac3;
            font-size: 16px;
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            transition: background 0.2s, color 0.2s;
            pointer-events: all;
        }

        .neo-leftnav__icon-btn:hover {
            background: #e3f0fa;
            color: #005a94;
        }

        /* Modal styles - completely custom implementation */
        .neo-modal {
            display: none;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            z-index: 999999 !important;
            background: rgba(0, 0, 0, 0.5) !important;
        }

        .neo-modal.show {
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
        }

        .neo-modal__background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1;
        }

        .neo-modal__content {
            position: relative !important;
            background: white !important;
            border-radius: 8px !important;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
            min-width: 400px !important;
            max-width: 600px !important;
            width: 90% !important;
            max-height: 90vh !important;
            overflow-y: auto !important;
            z-index: 2 !important;
            margin: 0 !important;
            transform: none !important;
        }

        .neo-modal__header {
            padding: 20px 24px 16px 24px;
            border-bottom: 1px solid #e0e0e0;
        }

        .neo-modal__header h4 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }

        .neo-modal__body {
            padding: 20px 24px;
        }

        .neo-modal__footer {
            padding: 16px 24px 20px 24px;
            border-top: 1px solid #e0e0e0;
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }

        /* Form styles for modal */
        .neo-modal .neo-form {
            margin: 0;
        }

        .neo-modal .neo-form-control {
            margin-bottom: 16px;
        }

        .neo-modal .neo-input-group label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
            color: #333;
        }

        .neo-modal .neo-input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #d0d0d0;
            border-radius: 4px;
            font-size: 14px;
        }

        .neo-modal textarea.neo-input {
            resize: vertical;
            min-height: 100px;
        }

        /* Hidden file input */
        .neo-file-input {
            display: none;
        }

        /* Image thumbnails area */
        .neo-image-thumbnails {
            display: none;
            padding: 8px 12px;
            border-top: 1px solid #e0e0e0;
            background: #f9f9f9;
            overflow-x: auto;
            max-height: 80px;
            margin-bottom: 4px;
            /* Add space between thumbnails and textarea */
        }

        .neo-image-thumbnails.show {
            display: block;
        }

        .neo-thumbnails-grid {
            display: flex;
            gap: 6px;
            align-items: center;
        }

        .neo-thumbnail {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            object-fit: cover;
            cursor: pointer;
            border: 2px solid #d0d0d0;
            transition: border-color 0.2s, transform 0.2s;
            flex-shrink: 0;
        }

        .neo-thumbnail:hover {
            border-color: #007ac3;
            transform: scale(1.05);
        }

        .neo-thumbnail-remove {
            position: relative;
            display: inline-block;
        }

        .neo-thumbnail-remove::after {
            content: '×';
            position: absolute;
            top: -8px;
            right: -8px;
            width: 16px;
            height: 16px;
            background: #ff4444;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            z-index: 5;
        }

        /* Image modal styles */
        .neo-image-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 999999;
            background: rgba(0, 0, 0, 0.8);
            justify-content: center;
            align-items: center;
        }

        .neo-image-modal.show {
            display: flex;
        }

        .neo-image-modal__content {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .neo-image-modal__image {
            max-width: 100%;
            max-height: 80vh;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        }

        .neo-image-modal__close {
            position: absolute;
            top: -40px;
            right: 0;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #333;
        }

        .neo-image-modal__close:hover {
            background: white;
        }

        /* Make sure nav wrapper layout works properly */
        .neo-leftnav--wrapper {
            display: flex;
            flex-direction: column;
        }

        .neo-leftnav {
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
        }

        /* Override Neo CSS for widget to make it full height */
        .neo-widget__content {
            display: flex !important;
            flex-direction: column !important;
            height: 100% !important;
        }

        .neo-widget__body {
            flex: 1 1 auto !important;
            display: flex !important;
            flex-direction: column !important;
        }

        /* Side navigation accordion styles - remove borders and customize */
        .neo-leftnav__accordion-container {
            padding: 0;
            margin: 0;
        }

        .neo-leftnav__accordion-item {
            border: none !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .neo-leftnav__accordion-header {
            border: none !important;
            padding: 0 !important;
            margin: 0 !important;
            background: none !important;
        }

        .neo-leftnav__accordion-content {
            border: none !important;
            padding: 0 !important;
            margin: 0 !important;
            background: none !important;
        }

        .neo-leftnav__accordion-content .neo-accordion__content-wrapper {
            padding: 0 !important;
        }

        /* Ensure side nav buttons maintain their styling */
        .neo-leftnav__accordion-header .neo-leftnav__category {
            width: 100%;
            text-align: left;
            border: none !important;
            margin: 0 !important;
        }

        /* Hide the accordion content by default */
        .neo-leftnav__accordion-content {
            display: none !important;
        }

        /* Show accordion content when expanded */
        .neo-accordion__item--expanded .neo-leftnav__accordion-content {
            display: block !important;
        }

        /* HTML Generation Indicator Styles */
        .html-generation-indicator {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 0;
            color: #007ac3;
            font-size: 12px;
        }

        .generation-text {
            color: #666;
            font-style: italic;
        }

        .html-generation-complete {
            display: flex;
            align-items: center;
            padding: 8px 0;
            color: #28a745;
            font-size: 12px;
            font-weight: 500;
        }

        .html-generation-complete .neo-icon-check-circle {
            font-size: 14px;
        }

        .html-generation-error {
            display: flex;
            align-items: center;
            padding: 8px 0;
            color: #dc3545;
            font-size: 12px;
            font-weight: 500;
        }

        .html-generation-error .neo-icon-alert-circle {
            font-size: 14px;
        }

        /* Message bubble generation status */
        .generation-status {
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid #e0e0e0;
        }

        .neo-message__bubble .html-generation-indicator,
        .neo-message__bubble .html-generation-complete {
            padding: 4px 0;
            margin: 0;
        }

        /* Ensure neo-spinner is visible */
        .neo-spinner {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }

        /* Custom shimmer styles for iframe loading */
        .neo-shimmer {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 4px;
        }

        .neo-shimmer__rectangle.sm {
            height: 16px;
            width: 70%;
        }

        .neo-shimmer__rectangle.md {
            height: 16px;
            width: 90%;
        }

        .neo-shimmer__rectangle.lg {
            height: 16px;
            width: 100%;
        }

        @keyframes shimmer {
            0% {
                background-position: -200% 0;
            }

            100% {
                background-position: 200% 0;
            }
        }

        /* Website Generation Overlay Styles */
        .iframe-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(2px);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        .overlay-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 20px;
            max-width: 400px;
            width: 100%;
            padding: 20px;
        }

        .shimmer-container {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .control-panel {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .control-panel__section h4 {
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--panel-border-color);
            color: var(--widget-heading-font-color);
        }

        .control-panel__footer {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 16px;
            padding-top: 24px;
            border-top: 1px solid var(--panel-border-color);
        }

        /* Wrapper for slider/dial and its value display */
        .control-with-value {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .control-value {
            font-family: 'Roboto Mono', monospace;
            color: var(--input-hint-color);
            font-size: 14px;
            min-width: 45px;
            text-align: right;
        }

        /* --- Custom Slider Styles --- */
        .neo-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 4px;
            background: var(--input-disabled-bg);
            outline: none;
            border-radius: 4px;
            opacity: 0.9;
            transition: opacity .2s;
        }

        .neo-slider:hover {
            opacity: 1;
        }

        /* Slider Thumb (the circle handle) */
        .neo-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            background: var(--button-color-primary);
            cursor: pointer;
            border-radius: 50%;
            border: 2px solid var(--global-background);
            box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
            margin-top: -7px;
            /* Center thumb on track */
        }

        .neo-slider::-moz-range-thumb {
            width: 18px;
            height: 18px;
            background: var(--button-color-primary);
            cursor: pointer;
            border-radius: 50%;
            border: 2px solid var(--global-background);
            box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
        }

        .neo-slider:focus-visible {
            outline: 2px auto var(--global-outline-color);
            outline-offset: 4px;
        }

        /* --- Custom Dial Styles --- */
        .neo-dial {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .neo-dial__input {
            text-align: center;
            width: 60px;
            font-family: 'Roboto Mono', monospace;
            -moz-appearance: textfield;
            /* Firefox */
        }

        .neo-dial__input::-webkit-outer-spin-button,
        .neo-dial__input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        /* --- Widget Header Controls --- */
        .neo-widget__header-center {
            display: flex;
            align-items: center;
            gap: 16px;
            flex: 1;
            justify-content: center;
        }

        .widget-header-switch {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .widget-header-switch .neo-switch {
            margin: 0;
        }

        .widget-header-switch .neo-form-control {
            margin: 0;
            direction: rtl;
        }

        /* Select button toggle state */
        .neo-btn-select {
            transition: all 0.2s ease;
        }

        .neo-btn-select.selected {
            background-color: var(--button-color-primary) !important;
            color: var(--global-background) !important;
            border-color: var(--button-color-primary) !important;
            box-shadow: 0 0 0 2px rgba(0, 122, 195, 0.2);
        }

        .neo-btn-select.selected:hover {
            background-color: var(--button-color-primary-hover, #005a8b) !important;
        }

        /* Code mode visual indicators */
        .neo-widget__header.code-mode {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-bottom: 2px solid #007bff;
        }

        .neo-widget__header.code-mode .neo-widget__header-left p::after {
            content: " (Code Editor)";
            font-size: 0.8em;
            color: #007bff;
            font-weight: 600;
        }

        /* Smooth transitions for mode switching */
        .neo-widget__header {
            transition: background 0.3s ease, border-bottom 0.3s ease;
        }

        /* Focus indicator for code editor */
        #code-editor-container.focused {
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
        }

        .site-drop {
            min-height: 35px !important;
                transform: translateY(1px);
                   border-bottom: 1px solid rgb(0 0 0) !important;
        }

        .v-divider {
display: inline-block;
    width: 1px;
    height: 35px;
    background-color: #15568B;
    margin: 0 8px;
    vertical-align: middle;
}

/* ========================================
   FULLSCREEN IFRAME STYLES
   ======================================== */

/* Fullscreen container for iframe */
#fullscreen-iframe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: none;
}

/* Exit button styling in fullscreen mode */
#fullscreen-exit-btn {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 10000 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #ccc !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
}

#fullscreen-exit-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-1px);
}

/* Body modifications when in fullscreen */
body.iframe-fullscreen {
    overflow: hidden !important;
}

/* Ensure iframe is properly sized in fullscreen */
#fullscreen-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    z-index: 9999;
}

/* Animation for entering/exiting fullscreen */
#fullscreen-iframe-container.entering {
    animation: fadeIn 0.2s ease-out;
}

#fullscreen-iframe-container.exiting {
    animation: fadeOut 0.2s ease-out;
}

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

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

/* Responsive adjustments for fullscreen exit button */
@media (max-width: 768px) {
    #fullscreen-exit-btn {
        top: 10px !important;
        right: 10px !important;
        padding: 8px !important;
    }
}

/* Ensure proper stacking context */
.neo-widget__content {
    position: relative;
}

/* Visual feedback for fullscreen button */
.neo-btn[onclick*="toggleIframeFullscreen"]:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Template Selector Dropdown Styles */
#website-templates-selector {
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    background: white !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
    position: relative !important;
    z-index: 1000 !important;
}


#website-templates-selector:focus {
    outline: 2px solid #007ac3 !important;
    outline-offset: 2px !important;
    border-color: #007ac3 !important;
    z-index: 1001 !important;
}

/* Force dropdown list to have proper borders and positioning */
#website-templates-selector:focus,
#website-templates-selector:active,
#website-templates-selector[size],
#website-templates-selector[multiple] {
    border: 1px solid #007ac3 !important;
    box-shadow: 0 2px 8px rgba(0, 122, 195, 0.2) !important;
}

/* Ensure dropdown options maintain border styling */
#website-templates-selector option {
    padding: 8px !important;
    background: white !important;
    color: #333 !important;
}

#website-templates-selector option:last-child {
    border-bottom: 1px solid black !important;
}

/* Custom URL option styling */
#website-templates-selector option[value="CUSTOM_URL"] {
    color: #007ac3 !important;
    font-weight: normal !important;
    background: white !important;
    border-bottom: 1px solid #1a1f27 !important;
}

#website-templates-selector option[value="UPLOAD_SCREENSHOT"] {
    color: #007ac3 !important;
    font-weight: normal !important;
    background: white !important;
}

/* Separator option styling */
#website-templates-selector option:disabled {
    color: #999 !important;
    background: #f8f9fa !important;
}

/* Override any parent styles that might interfere */
.neo-widget__header-right #website-templates-selector {
    position: relative !important;
    z-index: 1000 !important;
}

/* Ensure the form control doesn't interfere */
.neo-widget__header-right .neo-form-control {
    position: relative !important;
    z-index: 1000 !important;
}

.create-doc-footer {
    border-top: none !important;
}

.create-doc-header {
    border: none !important;

}

/* Bot Avatar Gallery Layout Constraints */
/* Ensure the avatar gallery container doesn't expand and affect other layout elements */
.bot-avatar-gallery-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Additional constraints for the gallery itself */
.bot-avatar-gallery {
    flex-shrink: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 555px !important;
    box-sizing: border-box !important;
}

/* Ensure the form control containing the bot avatar gallery doesn't expand */
.neo-form-control:has(.bot-avatar-gallery) {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Also constrain the control panel itself to prevent expansion */
.control-panel__content {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Ensure the left navigation doesn't expand */
.neo-leftnav--wrapper {
    flex-shrink: 0 !important;
    min-width: 400px !important;
    max-width: 400px !important;
}

/* Fix for element selector button - ensure icon is visible when selected */
button[style*="background-color: rgb(0, 51, 102)"] span[class*="neo-icon"],
button[style*="background-color:#003366"] span[class*="neo-icon"] {
    color: #2E9FDB !important; /* Bright yellow for maximum visibility */
}


.CodeMirror-gutters {
    display: none !important;
}

.CodeMirror-line {
    margin-left: 30px !important;
}
