html {
    scroll-padding-top: 120px;
}

#inline-reply,
.sticky-offset {
    scroll-margin-top: 120px;
}

.oda-forum {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 75px;
}

.ql-editor {
    min-height: 200px;
    padding: 1em !important;
}


.oda-forum-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #ccc;
}

.oda-forum-post-footer {
    padding: .25em 1rem .25em 2em;
}

#editor-container-inline,
#editor-container {
    border-radius: 5px;
}

/* top right and top left border-radius */
.ql-toolbar {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.ql-editor {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.oda-forum-header h1 {
    margin: 0;
}

.oda-forum-footer .pagination {
    margin-top: 18px;
}

.oda-forum-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
}

.oda-forum-topics {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.oda-forum-topic {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 5px;
    margin-bottom: 0;
    z-index:2;
}

.oda-forum-topic-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #ccc;
}

.oda-forum-topic-header h2 {
    margin: 0;
}

.oda-forum-topic-meta {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.oda-forum-topic-meta-item {
    margin-left: 1rem;
}

.oda-forum-topic-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-bottom: 1px solid #ccc;
}

.oda-forum-topic-post {
    display: flex;
    flex-direction: column;
    width: 100%;
  
}
.oda-forum-topic.tree-level-0, .oda-forum-topic.tree-level-0 .oda-forum-topic-post-inner  {
    margin-bottom:0px !important;
}
.oda-forum-topic-post-inner {
    margin-top:18px;
    margin-bottom:18px;
    border: 1px solid #ccc;
      margin-bottom:8px;
      position:relative;
    z-index: 2;
    background-color:#fff;
}
.oda-forum-topic-post-header .text-xs {
    font-size:14px;
}
.oda-forum-topic-post-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem .5rem;
}

.oda-forum-topic-post-header-avatar {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.oda-forum-topic-post-header-avatar img {
    width: 50px;
    display: inline-block;
    margin-right: 14px;

}

.oda-forum-topic-post-body blockquote {
    border-left: 5px solid #3f8edd;
    background-color: #ccc;
    padding-left: 1.5rem;
    margin-left: 0;
    margin-right: 0;
}

.oda-forum-topic-post-body blockquote blockquote {
    border-left: 5px solid #ccc;
    background-color: #fefefe;
    padding-left: 1.5rem;
    margin-left: 0;
    margin-right: 0;

}
/* Position toggle button outside the post */
.oda-forum-post-footer {
    position: relative;
}

.toggle-thread {
    position: absolute;
    left: -10px;
    bottom: -11px;
    display: inline-block;
    margin-right: 0px;
    z-index:5;
}

.toggle-thread:hover {
    text-decoration:none;
}

.toggle-thread i {
    border-radius: 100%;
    border:1px solid #28a745;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    text-decoration: none;
    background-color: #fff;
    position: relative;
}

.oda-forum-topic {
    position: relative;
}

/* Vertical line connecting parent toggle to children */
.thread-children {
    position: relative;
    padding-left: 40px; /* Space for the line */
}

/* Draw line from parent's toggle button down through children */
.thread-children::before {
    content: '';
    position: absolute;
    left: 30px; /* Align with toggle button center */
    top: 0px; /* Start from parent's footer area */
    width: 2px;
    background-color: #ccc;
    z-index:1;
}

.thread-children.level-1 > .thread-children::before {
    left:6%;
}

.thread-children.level-1::before {
    left: 30px !important;
}

.thread-children.level-2::before {
    left: 55px !important;
}

.thread-children.level-3::before {
    left: 80px !important;
}

.thread-children.level-4::before {
    left: 105px !important;
}

.thread-children.level-5::before {
    left: 117px !important;
}

/* Horizontal connector from line to each child post with curved corner */
.thread-line {
    position: absolute;
    top: 54px;
    left: -10px;
    width: 30px;
    height: 20px; /* Height for the vertical part of the curve */
    border-left: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    border-bottom-left-radius: 8px; /* Creates the curve */
    background-color: transparent;
    z-index:2;
}




.tree-level-2 .thread-line {
    width: 88px;
}

.tree-level-3 .thread-line {
     width: 88px;
     left:15px;
}

.tree-level-4 .thread-line {
     width: 88px;
     left: 40px;
}

.tree-level-5 .thread-line {
     width: 88px;
     left: 65px;
    }
.tree-level-6 .thread-line {
     width: 88px;
    left: 77px;
    }

    .thread-children-overflow .thread-line {
     height: 88px;
     width: 2px;
     left: 164px;
    top: -8px;
    }
.oda-forum-topic-header {
    position: relative;
}

.tree-level-1, .tree-level-2, .tree-level-3, .tree-level-4, .tree-level-5 {
    padding-left: 25px; /* Make space for the line */
}