


.forum-message {
    margin-bottom: 12px;
}

.level-0 {
    margin-left: 0;
}

.level-1 {
    margin-left: 25px;
    border-left: 2px solid #e5e5e5;
    padding-left: 12px;
}

.level-2 {
    margin-left: 45px;
    border-left: 2px solid #e5e5e5;
    padding-left: 12px;
}

.level-3 {
    margin-left: 65px;
    border-left: 2px solid #e5e5e5;
    padding-left: 12px;
}

.level-4 {
    margin-left: 85px;
    border-left: 2px solid #e5e5e5;
    padding-left: 12px;
}

/* --- Forum thread cards --- */

.thread-card {
  border-left: 4px solid #0d6efd;
  transition: all 0.15s ease;
}

.thread-card:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
}

.thread-card h5 a {
  text-decoration: none;
  color: #212529;
  font-weight: 600;
}

.thread-card h5 a:hover {
  color: #0d6efd;
}

.thread-card .badge {
  font-size: 0.75rem;
}

.thread-card .text-muted {
  font-size: 0.85rem;
}

.ql-editor {
  font-size: 14px;
  line-height: 1.5;
}

.ql-editor p {
  margin-bottom: 6px;
}

blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 10px;
    color: #555;
    margin: 8px 0;
}

.forum-message img {

  max-width: 120px;
  max-height: 64px;

  border-radius: 6px;

  margin-top: 6px;

  cursor: pointer;

  box-shadow: 0 1px 4px rgba(0,0,0,0.15);

  transition: transform 0.15s ease;

}

.forum-message img:hover{
  transform: scale(1.03);
}

.forum-message {
  position: relative;
  margin-left: 20px;
}

.forum-message::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e1e4e8;
}

.forum-message.level-0::before {
  display: none;
}

/* horizontal connector */
.forum-message::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 18px;
  width: 14px;
  height: 2px;
  background: #e1e4e8;
}

.forum-message .card {
  border-radius: 8px;
  border: 1px solid #e6e9ef;
  background: #ffffff;
}

.forum-message.level-1 .card { background: #fafbfc; }
.forum-message.level-2 .card { background: #f7f8fa; }
.forum-message.level-3 .card { background: #f4f6f8; }

.forum-avatar{
  width:28px;
  height:28px;
  border-radius:50%;
  background:#0d6efd;
  color:white;
  font-size:14px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.vote-box{
  float:left;
  width:40px;
  margin-right:10px;
}

.vote-btn{
  border:none;
  background:none;
  font-size:18px;
  cursor:pointer;
}

.vote-count{
  font-weight:bold;
  font-size:14px;
}

.forum-message{
  display:flex;
  align-items:flex-start;
}

.forum-body{
  flex:1;
}

.vote-box{
  width:40px;
  text-align:center;
  margin-right:10px;
}

.forum-message.pinned {
  border-left:4px solid #ffc107;
  background:#fffdf3;
}

#reportsTable td{
  vertical-align: middle;
}