body {
    padding: 0 !important;
    background-color: var(--vscode-sideBar-background) !important;
}

.atlaskit-portal-container {
    --ds-background-neutral-subtle: var(--vscode-dropdown-background);
    --ds-background-neutral-subtle-hovered: var(--vscode-list-hoverBackground);
}

.rovoDevChat * {
    scrollbar-width: auto;
    scrollbar-color: var(--vscode-scrollbarSlider-background) transparent;
}

.rovoDevChat {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    background-color: var(--vscode-sideBar-background);
    font-size: var(--vscode-font-size);
    font-family: var(--vscode-font-family);
    height: 100vh;
    margin: auto;
    max-width: 800px;
}

.rovoDevChat:not(.debugEnabled) .debugOnly {
    display: none !important;
}

#rovoDevLogo > path:first-child {
    fill: #94C748;  /* it was #6A9A23 */
}

.vscode-dark #rovoDevLogo > path:first-child {
    fill: #94C748;
}

#prompt-editor-container * {
    font-size: var(--vscode-font-size) !important;
}

#prompt-editor-container > .monaco-editor {
    outline: none;
}

.rovoDevChat button {
    cursor: pointer;
}

.logical-change-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 8px;
    width: 100%;
    overflow: auto;
}

.logical-change-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.logical-change-header .title {
    font-size: 14px;
    font-weight: bold;
    color: var(--vscode-editor-foreground);
}

.logical-change-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.logical-change-counter {
    display: flex;
    width: 20px;
    height: 20px;
    padding: 4px;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    border: 1px solid var(--vscode-editorWidget-border);
}

.logical-change-counter p {
    margin: 0;
    font-size: 9px;
    color: var(--vscode-input-placeholderForeground);
}

.chevron-button {
    background: transparent;
    border: none;
    cursor: pointer;
    :hover {
        color: var(--vscode-textLink-foreground);
    }
}

.chevron-icon {
    color: var(--vscode-editor-foreground) !important;
}

.file-to-change-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-to-change-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    width: 100%;
}

.lozenge-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.lozenge-container p {
    margin: 0;
    font-size: 14px;
    color: var(--vscode-input-placeholderForeground);
}

.technical-plan-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--vscode-editorWidget-border);
    padding: 12px;
    margin-bottom: 8px;
}

.file-lozenge {
    display: flex;
    padding: 2px 4px;
    align-items: center;
    gap: 4px;
    border-radius: 3px;
    border: 1px solid var(--vscode-editorWidget-border);
}

.file-lozenge:hover {
    background-color: var(--vscode-list-hoverBackground);
    cursor: pointer;
}

.file-lozenge .file-path {
    font-size: 14px;
    color: var(--vscode-editor-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-lozenge.file-lozenge-disabled {
    opacity: 0.7;
}

.file-lozenge.file-lozenge-disabled:hover {
    background-color: transparent;
    cursor: not-allowed;
}

.rovoDevChat pre > code {
    text-wrap: wrap;
    overflow-wrap: break-word;
}

.code-changes-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    width: 100%;
}

.code-snippet {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tool-call-item-base,
.tool-return-item-base {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
}

.tool-call-item,
.tool-return-item {
    padding: 4px 6px;
    background-color: inherit;
    color: var(--vscode-editor-foreground);
    width: fit-content;
    border-radius: 4px;
    margin-bottom: 8px;
}

.tool-return-item {
    border: 1px solid var(--vscode-editorWidget-border);
}

.tool-return-item:hover {
    color: var(--vscode-editor-foreground)
}

.tool-return-item code {
    white-space: pre-wrap;
    word-break: break-all;
}

.tool-call-item span {
    color: var(--vscode-input-placeholderForeground)
}

.tool-return-file-path:hover {
    background-color: var(--vscode-list-hoverBackground);
    cursor: pointer;
}

.tool-return-path {
    color: var(--vscode-input-placeholderForeground);
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

.tool-return-bash-command {
    pre {
        margin: 0;
        background: none;
        code {
            padding: 0 4px;
        }
    }
}

.code-plan-button-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}
  
.code-plan-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--vscode-editorWidget-border);
    border-radius: 6px;
    max-width: 400px;
    background-color: inherit;
    padding: 6px 12px;
}

.code-plan-button:hover {
    border: 1px solid var(--vscode-focusBorder);
    cursor: pointer;
}

.code-plan-button span {
    font-size: 14px;
    color: var(--vscode-button-secondaryForeground);
}

/* Messaging styles */
.chat-message {
    max-width: 100%;
    margin-bottom: 8px;
    border-radius: 8px;
    position: relative;
}

.chat-message-container {
    width: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 10px 16px 0 16px;
}

.chat-message-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin-bottom: 8px;
}

.chat-message-action {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--vscode-editor-foreground);
    cursor: pointer;
    border-radius: 2px;
}

.chat-message-action:hover {
    background: var(--vscode-button-secondaryHoverBackground);
}

.chat-message-action.copied svg {
    color: #6a9a23;
}

.message-drawer {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--vscode-editorWidget-border);
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 8px;
}

.message-drawer-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.message-drawer-title {
    display: flex;
    align-items: center;
    gap: 2px;
    span {
        font-size: 13px;
        color: var(--vscode-editor-foreground);
    }
}
.message-drawer-lozenge {
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--vscode-editorWidget-background);
    border: 1px solid var(--vscode-editorWidget-border);
    font-size: 9px;
}

.agent-message {
    align-self: flex-start;
}

.user-message {
    background-color: var(--vscode-editor-selectionBackground);
    align-self: flex-end;
    border-bottom-right-radius: 0px;
    padding: 8px 12px;
    max-width: 100%;
    width: fit-content;
}

.message-content {
    white-space: normal;
    word-break: break-word;
    color: var(--vscode-editor-foreground);
    max-width: 100%;
}

/* Pull Request button styles */
.pull-request-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    gap: 8px;
    background-color: var(--vscode-button-background);
    color: var(--vscode-button-foreground);
    border: 0;
    border-radius: 6px;
}
.pull-request-button:hover {
    background-color: var(--vscode-button-hoverBackground);
    cursor: pointer;
}

/* form styles */
.form-container {
    display: flex;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 8px;
    border: 1px solid var(--vscode-editorWidget-border);
    flex: 1 0 0;
}

.form-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.form-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    align-self: stretch;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    align-self: stretch;
}

.form-field label {
    font-size: 11px;
    color: var(--vscode-editor-foreground);
}

.form-field input[type="text"], .form-field textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--vscode-input-border);
    border-radius: 4px;
    background-color: var(--vscode-input-background);
    color: var(--vscode-input-foreground);
}

.form-field input[type="text"]:focus, .form-field textarea:focus {
    outline: var(--vscode-focusBorder) solid 1px;
}

.form-field-checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.form-field-checkbox input[type="checkbox"] {
    background-color: var(--vscode-checkbox-background);
    color: var(--vscode-checkbox-foreground);
    border: 1px solid var(--vscode-checkbox-border);
    cursor: pointer;
}

.form-field-checkbox input[type="checkbox"]:focus {
    outline: var(--vscode-checkbox-selectBorder) solid 1px;
    background-color: var(--vscode-checkbox-selectBackground);
}


.form-select {
    width: 100%;
    border: 1px solid var(--vscode-dropdown-border);
    border-radius: 4px;
    background-color: var(--vscode-dropdown-background);
    color: var(--vscode-dropdown-foreground);
}

.form-select:focus {
    outline: var(--vscode-focusBorder) solid 1px;
}

.form-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.form-cancel-button,
.form-submit-button {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.form-cancel-button {
    background-color: inherit;
    color: var(--vscode-button-secondaryForeground);
}

.form-cancel-button:hover {
    background-color: var(--vscode-button-secondaryHoverBackground);
}

.form-submit-button {
    background-color: var(--vscode-button-background);
    color: var(--vscode-button-foreground);
}

.form-submit-button:hover {
    background-color: var(--vscode-button-hoverBackground);
}

.pull-request-chat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/* Updated Files styles */
.modified-files-list {
    width: 100%;
    height: 100%;
    display: block;
    overflow-y: auto;
    max-height: 100px;
    padding: 4px 0px;
    border-top: 1px solid var(--vscode-panel-border);
}
.modified-file-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 2px 12px;
    width: 100%;
}

.modified-file-item > div {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    margin-right: 8px;
}

.modified-file-item .file-name {
    flex-shrink: 0;
    margin-right: 8px;
}

.modified-file-item .file-path {
    color: var(--vscode-descriptionForeground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 8px;
    display: inline;
}

.modified-file-item:hover {
    background-color: var(--vscode-list-hoverBackground);
}

.modified-file-actions {
    visibility: hidden;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 4px;
    flex-shrink: 0;
}

.modified-file-item:hover .modified-file-actions {
    visibility: visible;
}

.modified-file-action {
    background-color: transparent;
    color: var(--vscode-editor-foreground);
    padding: 0;
    border: 0;
}

.modified-file-action:hover {
    color: var(--vscode-textLink-foreground);
}

.modified-file-action:disabled {
    cursor: not-allowed;
}

.modified-file-item-info {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
}

.deleted-file {
    color: var(--vscode-list-errorForeground);
    text-decoration: line-through;
}

.created-file {
    color: var(--vscode-gitDecoration-untrackedResourceForeground);
}

.updated-files-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    padding-top: 8px;
    border: solid 1px var(--vscode-dropdown-border);
    border-left: none;
    border-right: none;
    border-bottom: none;
    margin-bottom: -16px;
    padding-bottom: 16px;
    border-radius: 16px 16px 0 0;
}

.updated-files-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px;
}

.updated-files-header div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.updated-files-header div span {
    font-weight: bold;
    font-size: 13px;
}

.updated-files-action {
    color: var(--vscode-input-foreground);
    background-color: inherit;
    border: none;
    border-radius: 4px;
    padding: 2px 12px;
}

#bordered-button {
    border: 1px solid var(--vscode-editorWidget-border);
}

.updated-files-action:disabled {
    cursor: not-allowed;
}

.updated-files-action:hover {
    background-color: var(--vscode-button-secondaryHoverBackground);
    color: var(--vscode-button-secondaryForeground)
}

.secondary {
    color: var(--vscode-button-secondaryForeground);
    background-color: var(--vscode-button-secondaryBackground);
    border: 1px solid var(--vscode-button-secondaryBorder);
}
.secondary:hover {
    background-color: var(--vscode-button-secondaryHoverBackground);
}

.primary {
    color: var(--vscode-button-foreground);
    background-color: var(--vscode-button-background);
    border: 1px solid var(--vscode-editorWidget-border);
}
.primary:hover {
    background-color: var(--vscode-button-hoverBackground);
}

/* Input styles */
.input-section-container {
    width: 100%;
    background-color: var(--vscode-sideBar-background);
    padding: 8px 0px 6px 0px;
    border-radius: 12px 12px 0 0;
}

.prompt-container-container {
    padding: 0px 16px;
}

.prompt-container {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    border : 1px solid var(--vscode-input-border);
    border-radius: 16px;
    background-color: var(--vscode-input-background);
    padding: 12px;
}

.monaco-editor {
    color: var(--vscode-input-foreground) !important;
}

.monaco-editor .cursors-layer > .cursor {
    background-color: var(--vscode-editorCursor-foreground) !important;
} 

.monaco-editor .margin {
    background-color: var(--vscode-input-background) !important;
}

.monaco-editor .view-line {
    color: var(--vscode-input-foreground) !important;
}

.monaco-editor .inputarea.ime-input {
    color: var(--vscode-input-foreground) !important;
}

.monaco-editor .monaco-editor-background {
    background-color: var(--vscode-input-background) !important;
}

.prompt-container:focus-within {
    outline: var(--vscode-focusBorder) solid 1px;
}

.prompt-button-primary,
.prompt-button-secondary,
.prompt-button-secondary-open {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    padding: 2px 6px;
    height: 32px;
    width: 32px;
}

.prompt-button-primary {
    color: var(--vscode-button-foreground);
    background-color: var(--vscode-button-background);
}

.prompt-button-primary:hover {
    background-color: var(--vscode-button-hoverBackground);
}

.prompt-button-primary:disabled,
.prompt-button-secondary:disabled {
    cursor: not-allowed;
}

.prompt-button-primary:disabled {
    background-color: var(--vscode-sideBar-background);
    color: var(--vscode-disabledForeground);
}

.prompt-button-secondary {
    color: var(--vscode-input-foreground);
    background-color: var(--vscode-input-background);
}

.prompt-button-secondary:hover {
    color: var(--vscode-button-secondaryForeground);
    background-color: var(--vscode-button-secondaryHoverBackground);
}

.prompt-button-secondary-open {
    color: var(--vscode-inputOption-activeForeground);
    background-color: var(--vscode-inputOption-activeBackground);
    border: 1px solid var(--vscode-focusBorder);
}

.prompt-settings-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    background-color: var(--vscode-sideBar-background);
    border-radius: 8px;
    padding: 8px;
}

.prompt-settings-action {
    --ds-icon-inverse: var(--vscode-sideBar-background);
}

.prompt-settings-logo {
    display: flex;
    padding-top: 4px;
}

.deep-plan-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--vscode-focusBorder);
    height: 32px;
    padding: 2px 6px;
    border-radius: 16px;
    background-color: var(--vscode-inputOption-activeBackground);
    color: var(--vscode-inputOption-activeForeground);
    cursor: pointer;
}

.ai-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 4px;
    text-align: center;
    font-size: 11px;
    color: var(--vscode-descriptionForeground);
    margin-top: 8px;
    opacity: 0.7;
}

/* High contrast theme overrides */

.vscode-high-contrast .user-message {
    border: 1px solid var(--vscode-contrastBorder);
    background-color: var(--vscode-editor-background);
    color: var(--vscode-editor-foreground);
}

.vscode-high-contrast code {
    border: 1px solid var(--vscode-contrastBorder);
    background-color: var(--vscode-editor-background);
}

.vscode-high-contrast-light code {
    border: 1px solid var(--vscode-contrastBorder);
    background-color: var(--vscode-editor-background);
}

.vscode-high-contrast .form-cancel-button,
.vscode-high-contrast .form-submit-button {
    border: 2px solid var(--vscode-contrastBorder);
}

.vscode-light .form-cancel-button {
    color: var(--vscode-foreground);
}

.vscode-light .form-cancel-button:hover {
    color: var(--vscode-button-secondaryForeground);
}

.vscode-high-contrast .form-cancel-button:hover,
.vscode-high-contrast .form-submit-button:hover {
    border: 2px solid var(--vscode-focusBorder);
}

.vscode-high-contrast .updated-files-action,
.vscode-high-contrast #bordered-button {
    border: 2px solid var(--vscode-contrastBorder);
}

.vscode-high-contrast .updated-files-action:hover,
.vscode-high-contrast #bordered-button:hover
 {
    border: 2px solid var(--vscode-focusBorder);
}

.vscode-high-contrast .updated-files-action:disabled,
.vscode-high-contrast #bordered-button:disabled {
    border: 2px solid var(--vscode-disabledForeground);
    opacity: 0.5;
}

.vscode-high-contrast .prompt-button-primary,
.vscode-high-contrast .prompt-button-secondary,
.vscode-high-contrast .prompt-button-secondary-open {
    border: 2px solid var(--vscode-contrastBorder);
}
.vscode-high-contrast .prompt-button-primary:hover,
.vscode-high-contrast .prompt-button-secondary:hover,
.vscode-high-contrast .prompt-button-secondary-open:hover {
    border: 2px solid var(--vscode-focusBorder);
}

.vscode-high-contrast .code-plan-button {
    border: 2px solid var(--vscode-contrastBorder);
}
.vscode-high-contrast .code-plan-button:hover {
    border: 2px solid var(--vscode-focusBorder);
}

.vscode-high-contrast .deep-plan-indicator {
    border: 2px solid var(--vscode-contrastBorder);
}
.vscode-high-contrast .deep-plan-indicator:hover {
    border: 2px solid var(--vscode-focusBorder);
}