html, body{
    font-family: Rubik, Arial, sans-serif;
}

:root{

    --theme-default: #7366ff;
    --theme-secondary: #838383;
}

#sidebar-logo{
    margin-bottom:20px;
}

#sidebar-wrapper{
    z-index:1;
    box-shadow:1px 0px 10px rgba(0,0,0, 0.2);
    background:#fff;
    border-right:1px solid #ffffff;
}

#sidebar-content {
    background: #fefefe;
}

#sidebar-content ul{
    margin: 10px;
    padding: 0 0 0 0;
}
#sidebar-content ul ul{
    margin: 0 0 10px 10px;
    padding:0 0 0 0;
    display:none;
}
#sidebar-content li.open ul{display:block;}
#sidebar-content li{
    list-style-type:none;
    position:relative;
    margin:1px 0;
}
#sidebar-content li i{
    position:absolute;
    left:8px;
    top:7px;
    height:20px;
    width:20px;
    font-size:14px;
}
#sidebar-content li li i{
    font-size:12px;
    top:8px;
}

#sidebar-content a{
    display:block;
    padding:2px 4px 2px 30px;
    border-radius:3px;
    cursor:pointer;
    transition:300ms all;
}
#sidebar-content a:hover{
    background:#e7f2ff;
    box-shadow:2px 2px 8px rgba(255, 255, 255, 0.05) inset, -2px -2px 8px rgba(255, 255, 255, 0.15) inset;
}
#sidebar-content li.new-directory,
#sidebar-content li.new-diagram{
    color: #eee;
    font-style: italic;
}
#sidebar-content li.new-directory a,
#sidebar-content li.new-diagram a{
    overflow:hidden;
    white-space:nowrap;
    color:#eee;
}
#sidebar-content li.new-directory a:hover,
#sidebar-content li.new-diagram a:hover{
    background:#fafafa;
    color:#ccc;
}


#sidebar-content a .actions {
    position: absolute;
    top: 3px;
    right: 3px;
    left: auto;
    border-radius: 15px;
    padding: 0px 8px;
    background:white;
}
#sidebar-content a .actions i{
    font-size:12px;
    line-height: 19px;
    height: 16px;
    width: 16px;
    text-align: center;
    top: 0;
    position: static;
    border-radius: 9px;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    left: 0;
    opacity:0.5;
}
#sidebar-content a .actions .rename{
    display:none;
}
#sidebar-content a .actions .remove{
    display:none; color:#e09898;
}
#sidebar-content a:hover>.actions>i.remove,
#sidebar-content a:hover>.actions>i.rename{display:inline-block;}
#sidebar-content a:hover>.actions>i.fa-ellipsis-h{display:none;}











#content-header{
    min-height:50px;
    border-bottom:1px solid #ccc;
}
#document-title{
    padding:10px 0 0 30px;
    font-size:20px;
    min-height: 42px;
    border-radius: 6px;
    display: inline-block;
    max-width: calc(100% - 60px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px dashed transparent;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
#document-title[contenteditable="true"]{
    cursor: text;
}
#document-title[contenteditable="true"]:hover{
    background: #f5f9ff;
    border-color: #9dc9f0;
    box-shadow: inset 0 0 0 1px rgba(77, 141, 196, 0.15);
}
#document-title.is-editing{
    background: #ffffff;
    border-color: #369eff;
    box-shadow: 0 0 0 2px rgba(54, 158, 255, 0.15);
}
#document-title.is-unsaved{
    color: #285887;
    font-style: italic;
}
#document-title[contenteditable="true"]::before{
    content: "Click to edit";
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6d9ec6;
    margin-right: 10px;
    vertical-align: middle;
    opacity: 0;
    transition: opacity 140ms ease;
}
#document-title[contenteditable="true"]:hover::before,
#document-title.is-editing::before{
    opacity: 1;
}
#document-title.saving:after,
#document-title.saved:after{
    content: "Saving changes...";
    font-size: 12px;
    color: #aaa;
    margin-left: 20px;
    font-style: italic;
}

#document-title.saved:after {
    content: "✔ Changes saved";
}




#document-agent{
    background:#fafafa;
}
#document-agent .agent-messages{
    padding:10px;
}
#document-agent .agent-input{
    background:white;
    border-radius:12px;
    padding:5px;
    box-shadow:0 0 8px rgba(0, 0, 0, 0.2);
    display:flex;
    flex-direction:row;
    outline:none;
    margin:0 10px 10px;
}
#document-agent .agent-input textarea{
    border-color:white;
    flex:1 1 auto;
    padding:5px;
    min-height:40px;
    max-height:300px;
    resize:none;
    overflow-y:hidden;
}
#document-agent .agent-input textarea:focus{
    outline:none;
}
#document-agent .agent-input button{
    background:#0184ff;
    border-radius:8px;
    color:white;
    width:40px;
    height:40px;
    border:0px solid white;
    text-align:center;
    margin-left:2px;
    cursor:pointer;
}
#document-agent .agent-input button:hover{
    background:#1e92ff;

}
#document-agent .agent-input button.btn-secondary{
    background:white;
    color:#8b8b8b;
}
#document-agent .agent-input button.btn-secondary:hover{
    background:#f0f0f0;
    color:#696969;
}



#header-tabs-wrapper{
    position:relative;
    height:110px;
}

#header-tabs{
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    position: absolute;
    bottom: -28px;
    z-index: 10;
}

#header-tabs li{
    list-style-type:none;
    display:inline-block;
    margin:0 -8px 0 0;
    padding:0 0 0 0;
    z-index:1;
    position:relative;
}
#header-tabs li:has(a.active),
#header-tabs li:hover{
    z-index:2;
}
#header-tabs li a{
    background:#77bdff;
    padding:5px 10px;
    border-radius:0 0 15px 5px;
    box-shadow:0 0 5px rgba(0, 0, 0, 0.1) inset;
    cursor:pointer;
    height:30px;
    font-size:14px;
    display:block;
    z-index:1;
}
#header-tabs li a:hover,
#header-tabs li a:active,
#header-tabs li a.active{
    background:#369eff;
}
#header-tabs-content{
    border:2px solid #369eff;
}
#header-tabs-content div{
    height:105px;
    width:100%;
}





.status-message{
    font-size:13px;
    color:#888;
    display:block;
    padding:10px;
}

.status-message.is-thinking{
    position: relative;
    font-weight: 600;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, #9ca3af 0%, #4b5563 45%, #9ca3af 70%, #4b5563 100%);
    background-size: 220% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: bpmn-thinking-shift 2s linear infinite;
}

.status-message.is-thinking::after{
    content: none;
}

@keyframes bpmn-thinking-shift{
    0% { background-position: 220% 0; }
    100% { background-position: 0% 0; }
}

.msg {
    display: block;
    background: #eee;
    margin: 5px 10% 5px 2px;
    border-radius: 3px;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    padding: 7px 10px;
    font-family: arial;
    font-size: 12px;
}

.msg.right-msg {
    margin: 5px 2px 5px 10%;
    background: #bbdef3;
}

.msg.msg-right + .msg.msg-left{
    margin-top:20px;
}

.msg .msg-info {
    display: block;
    margin-bottom: 3px;
}

.msg .msg-info .msg-info-name {
    display: inline-block;
    font-weight: bold;
}

.msg .msg-info .msg-info-time {
    display: inline-block;
    font-size: 10px;
    opacity: 0.5;
    margin-left: 20px;
}

.msg.hidden {
    opacity: 0.5;
    background: #ffcaca;
}

.envelope-wrapper {
    display: block;
    margin-top: 10px;
}

.envelope-wrapper a.toggle-envelope {
    opacity: 0.5; cursor:pointer;
}

.envelope-wrapper pre.envelope {
    overflow: scroll;
    white-space: pre;
    background: #f3f3ce;
    border-radius: 3px;
    padding: 5px;
    border: 1px solid #dddd79;
    max-height: 400px;
    margin-top:0;
    display:none;
}
.envelope-wrapper.show pre.envelope{display:block;}
