/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 */


.other h2 {
    font-size: 18px;
    color: #444;
    margin-bottom: 7px;
}

.other a {
    color: #777;
    text-decoration: underline;
    font-size: 14px;
}

.other ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.App {
    font-family: sans-serif;
    text-align: center;
}

h1 {
    font-size: 18px;
}

h2 {
    font-size: 18px;
}

h3 {
    font-size: 18px;
}

.ltr {
    text-align: left;
}

.rtl {
    text-align: right;
}

.editor-container {
    border: 1px solid #DDD;
    color: #000;
    position: relative;
    line-height: 20px;
    /*font-weight: 400;*/
    text-align: left;

}

.editor-inner {
    background: #fff;
    position: relative;
    border-top: 1px solid #AAA;
}

.editor-input {
    resize: none;
    overflow: auto;
    font-size: 14px;
    caret-color: rgb(5, 5, 5);
    position: relative;
    tab-size: 1;
    outline: 0;
    padding: 8px 8px;
    caret-color: #444;
    height: 350px;
    resize: vertical;
}

.editor-placeholder {
    color: #999;
    overflow: hidden;
    position: absolute;
    text-overflow: ellipsis;
    top: 7px;
    left: 8px;
    font-size: 15px;
    user-select: none;
    display: inline-block;
    pointer-events: none;
}

.editor-text-bold {
    font-weight: bold;
}

.editor-text-italic {
    font-style: italic;
}

.editor-text-underline {
    text-decoration: underline;
}

.editor-text-strikethrough {
    text-decoration: line-through;
}

.editor-text-underlineStrikethrough {
    text-decoration: underline line-through;
}

.editor-text-code {
    background-color: rgb(240, 242, 245);
    padding: 1px 0.25rem;
    font-family: Menlo, Consolas, Monaco, monospace;
    font-size: 94%;
}

.editor-link {
    color: rgb(33, 111, 219);
    text-decoration: underline;
    cursor: pointer;
}

.editor-link:hover {
    text-decoration: underline;
}

.tree-view-output {
    display: block;
    background: #222;
    color: #fff;
    padding: 5px;
    font-size: 12px;
    white-space: pre-wrap;
    margin: 1px auto 10px auto;
    max-height: 250px;
    position: relative;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: auto;
    line-height: 14px;
}

.editor-code {
    background-color: rgb(240, 242, 245);
    font-family: Menlo, Consolas, Monaco, monospace;
    display: block;
    padding: 8px 8px 8px 52px;
    line-height: 1.53;
    font-size: 13px;
    margin: 0;
    margin-top: 8px;
    margin-bottom: 8px;
    tab-size: 2;
    /* white-space: pre; */
    overflow-x: auto;
    position: relative;
}

.editor-code:before {
    content: attr(data-gutter);
    position: absolute;
    background-color: #eee;
    left: 0;
    top: 0;
    border-right: 1px solid #ccc;
    padding: 8px;
    color: #777;
    white-space: pre-wrap;
    text-align: right;
    min-width: 25px;
}

.editor-code:after {
    content: attr(data-highlight-language);
    top: 0;
    right: 3px;
    padding: 3px;
    font-size: 10px;
    text-transform: uppercase;
    position: absolute;
    color: rgba(0, 0, 0, 0.5);
}

.editor-tokenComment {
    color: slategray;
}

.editor-tokenPunctuation {
    color: #999;
}

.editor-tokenProperty {
    color: #905;
}

.editor-tokenSelector {
    color: #690;
}

.editor-tokenOperator {
    color: #9a6e3a;
}

.editor-tokenAttr {
    color: #07a;
}

.editor-tokenVariable {
    color: #e90;
}

.editor-tokenFunction {
    color: #dd4a68;
}

.editor-paragraph {
    margin: 0;
    margin-bottom: 0px;
    position: relative;
}

.lexical-email .editor-paragraph {
    margin: 0;
    margin-bottom: 0px;
    position: relative;
}

.editor-paragraph:last-child {
    margin-bottom: 0;
}

.editor-heading-h1 {
    font-size: 20px;
    color: rgb(5, 5, 5);
    font-weight: 400;
    margin: 0;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 0;
}

.editor-heading-h2 {
    font-size: 15px;
    color: rgb(101, 103, 107);
    font-weight: 700;
    margin: 0;
    margin-top: 10px;
    padding: 0;
    text-transform: uppercase;
}

.editor-quote {
    margin: 0;
    margin-left: 20px;
    font-size: 15px;
    color: rgb(101, 103, 107);
    border-left-color: rgb(206, 208, 212);
    border-left-width: 4px;
    border-left-style: solid;
    padding-left: 16px;
}

.editor-list-ol {
    padding: 0;
    margin: 0;
    margin-left: 16px;
}

.editor-list-ul {
    padding: 0;
    margin: 0;
    margin-left: 16px;
}

.editor-listitem {
    margin: 4px 26px 4px 32px;
}

.editor-nested-listitem {
    list-style-type: none;
}

pre::-webkit-scrollbar {
    background: transparent;
    width: 10px;
}

pre::-webkit-scrollbar-thumb {
    background: #999;
}

.debug-timetravel-panel {
    overflow: hidden;
    padding: 0 0 10px 0;
    margin: auto;
    display: flex;
}

.debug-timetravel-panel-slider {
    padding: 0;
    flex: 8;
}

.debug-timetravel-panel-button {
    padding: 0;
    border: 0;
    background: none;
    flex: 1;
    color: #fff;
    font-size: 12px;
}

.debug-timetravel-panel-button:hover {
    text-decoration: underline;
}

.debug-timetravel-button {
    border: 0;
    padding: 0;
    font-size: 12px;
    top: 10px;
    right: 15px;
    position: absolute;
    background: none;
    color: #fff;
}

.debug-timetravel-button:hover {
    text-decoration: underline;
}

.editor-container .toolbar {
    display: flex;
    margin-bottom: 1px;
    background: #fff;
    padding: 4px !important;
    vertical-align: middle;
    border: 0 !important;
}

.toolbar button.toolbar-item {
    border: 0;
    display: flex;
    background: none;
    /*border-radius: 10px;*/
    padding: 3px 6px 3px 6px;
    cursor: pointer;
    vertical-align: middle;
}

.toolbar button.toolbar-item:disabled {
    cursor: not-allowed;
}

.toolbar button.toolbar-item.spaced {
    margin-right: 2px;
}

.toolbar button.toolbar-item i.format {
    background-size: contain;
    display: inline-block;
    height: 20px;
    width: 16px;
    margin-top: 0px;
    display: flex;
    opacity: 0.6;
}

.toolbar button.toolbar-item:disabled i.format {
    opacity: 0.2;
}

.toolbar button.toolbar-item.active {
    background-color: #dae4f9;
}

.toolbar button.toolbar-item.active i {
    opacity: 1;
}

.toolbar .toolbar-item:hover:not([disabled]) {
    background-color: #eee;
}

.toolbar .divider {
    width: 1px;
    background-color: #eee;
    margin: 0 4px;
}

.font-size-menu-item {
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 3px;
}

.font-size-menu-item:hover {
    background-color: #f0f0f0;
}

.toolbar .toolbar-item .text {
    display: flex;
    line-height: 20px;
    width: 200px;
    vertical-align: middle;
    font-size: 14px;
    color: #777;
    text-overflow: ellipsis;
    width: 70px;
    overflow: hidden;
    height: 20px;
    text-align: left;
}

.toolbar .toolbar-item .icon {
    display: flex;
    width: 20px;
    height: 20px;
    user-select: none;
    margin-right: 8px;
    line-height: 16px;
    background-size: contain;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-container {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    width: 400px;
    max-width: 90%;
}

.modal-title {
    margin-top: 0;
}

.modal-form-group {
    margin-bottom: 15px;
}

.modal-label {
    display: block;
    margin-bottom: 5px;
}

.modal-input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.modal-checkbox {
    margin-right: 8px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-button-cancel {
    padding: 8px 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.modal-button-submit {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Dropdown styles */
.editor-input .dropdown-container {
    position: relative;
}

.editor-input .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.font-size-dropdown {
    width: 150px;
}

.color-picker-dropdown {
    width: 200px;
}

.dropdown-section-title {
    margin-bottom: 8px;
}

.dropdown-item-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.editor-input .dropdown-item {
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.1s ease;
    line-height: 1;
}

.dropdown-item:hover {
    /*background-color: #f0f0f0;*/
}

.color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.color-swatch {
    width: 24px;
    height: 24px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: transform 0.1s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.transparent-swatch {
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
                      linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
    background-size: 6px 6px;
    background-position: 0 0, 3px 3px;
}

.toolbar-select {
    margin-top: 2px;
}

/* Removed custom undo/redo styles as we're now using Phosphor icons */

i.bold {
    background-image: url(lexical/type-bold.svg);
}

i.italic {
    background-image: url(lexical/type-italic.svg);
}

i.underline {
    background-image: url(lexical/type-underline.svg);
}

i.strikethrough {
    background-image: url(lexical/type-striketrought.svg);
}

i.left-align {
    background-image: url(lexical/text-left.svg);
}

i.center-align {
    background-image: url(lexical/text-center.svg);
}

i.right-align {
    background-image: url(lexical/text-right.svg);
}

i.justify-align {
    background-image: url(lexical/justify.svg);
}

.mention .fa, .mention .far {
    font-size: 12px;
}

.mention {
    padding: 2px 4px;
    background-color: #e4ecff;
    border-radius: 3px;
    margin: 0 3px;
}

.mention-table {
    background-color: #fff3b9
}

.mention-file {
    background-color: #e4ecff;
    cursor: pointer;
}

.mention-code {
    background-color: #e4ffec
}

.mention-training-data {
    background-color: #ffddec
}

/* Table styles */
.editor-inner table {
    border-collapse: collapse;
    border: 1px solid #ddd;
    margin: 15px 0;
    table-layout: fixed;
}

.editor-inner td, .editor-inner th {
    border: 1px solid #ddd;
    padding: 8px;
    min-width: 75px;
    vertical-align: top;
    position: relative;
    cursor: default;
}

.editor-inner  th {
    background-color: #F8F8F8;
}

.mention-lookup {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    z-index: 1000;
}

.mention-lookup ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mention-lookup li {
    padding: 8px;
    cursor: pointer;
}

.mention-lookup li:hover {
    background-color: #eee;
}

