.forum-header {
    background-color: var(--bs-blue);
    padding: 1rem;
    margin-bottom: 1rem;
    color: #ffff;
    padding-right: 3rem;
    padding-left: 3rem;
}

.forum-header .nav-link {
    color: #ffff !important;
}

.forum-header .nav-link.active {
    color: var(--bs-primary) !important;
    font-weight: bold !important;
}

/*PROFILE*/
.stats {
    background: #f2f5f8 !important;
    color: #000 !important;
}
.stats .text {
    font-size: 10px !important;
    color: #a1aab9;
}
.stats .number {
    font-weight: 400;
}

.profile-head {
    transform: translateY(5rem);
}

.cover {
    background-image: url(https://images.unsplash.com/photo-1530305408560-82d13781b33a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1352&q=80);
    background-size: cover;
    background-repeat: no-repeat;
}

.notification li {
    border-bottom: 1px solid #ddd; /* Warna dan ketebalan garis */
    padding: 10px 0; /* Spasi atas dan bawah */
    padding: 0.5rem;
}

.notification li:last-child {
    border-bottom: none; /* Hilangkan garis bawah pada item terakhir */
}

.btn-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #007bff; /* Warna tombol */
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Efek bayangan */
}

/* Styling tambahan untuk ul dan li */
.list-scrollable {
    overflow: auto;
    scroll-behavior: smooth; /* Efek scroll mulus */
    padding-bottom: 5px;
}

.list-scrollable::-webkit-scrollbar {
    height: 5px;
}

.list-scrollable::-webkit-scrollbar-thumb {
    background: #383d4d;
    border-radius: 99em;
    border: 1px solid #1e1f26;
}

.list-scrollable .list-group-item {
    min-width: 20rem;
    text-align: center;
}

/* POST  */
.sticky-head {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    height: fit-content; /* Tinggi elemen disesuaikan konten */
    z-index: 2; /* Memastikan berada di atas elemen lain jika tumpang tindih */
}

.sticky-head:not(.is-stuck) > ul li #notif-forum {
    display: none;
}

.sticky-head.is-stuck > ul li #notif-forum {
    display: block;
}

.sticky-side {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 5rem; /* Jarak dari atas viewport */
    height: fit-content; /* Tinggi elemen disesuaikan konten */
    z-index: 1; /* Memastikan berada di atas elemen lain jika tumpang tindih */
}
.chatbox-container {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 30px;
    padding: 2px;
    background-color: #fff;
}

.chatbox-input {
    flex: 1;
    border: none;
    border-radius: 30px;
    padding: 5px;
    /*          font-size: 16px;*/
    resize: none;
    outline: none;
    height: 30px;
    max-height: 200px;
    overflow-y: hidden;
}

.chatbox-actions {
    display: flex;
    align-items: center;
}

.chatbox-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #333;
    font-size: 15px;
}

.chatbox-btn .fas {
    pointer-events: none;
}

.chatbox-btn.send-btn {
    color: #ef3e33;
}

.chatbox-container:focus-within {
    border-color: #007bff;
}

.modal-content {
    border-radius: 1rem !important;
}

.form-post {
    border: none;
    border-radius: 0.1rem !important;
    padding: 0 0.3rem;
}

.form-post:focus {
    border: none;
    border-color: transparent !important;
    box-shadow: none;
}

.image-upload-section {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.image-upload-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #007bff;
    font-size: 16px;
}

.image-upload-label i {
    margin-right: 5px;
}

.image-preview-container {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
}

.image-gallery {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}


/* Style dasar */
/* Style dasar */
.parent {
    position: relative;
}

.child {
    position: relative;
/*    padding-left: 5px;*/
}

/* Garis vertikal di sisi kiri */
.child::before {
    content: "";
    position: absolute;
    left: 9px; 
    top: 0;
    bottom: 0;
    width: 2px; /* Ketebalan garis */
    background-color: #ccc; /* Warna garis */
}

/* Garis horizontal di bawah gambar */
.child img {
    position: relative;
    display: block;
    margin-bottom: 10px; /* Jarak antara gambar dan garis */
}

.child img::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px; /* Tempatkan garis tepat di bawah gambar */
    height: 2px; /* Ketebalan garis */
    width: 100%; /* Panjang garis horizontal */
    background-color: #ccc; /* Warna garis */
}

/* Garis horizontal lebih pendek di child */
.child img::after {
    left: 15px; /* Sesuaikan posisi horizontal agar sesuai hierarki */
    width: calc(100% - 15px); /* Panjang garis sesuai hierarki */
}

/* Level hierarki (opsional untuk warna berbeda) */
.child > div .child::before {
    background-color: #aaa; /* Warna berbeda untuk level lebih dalam */
}

.child > div .child > div .child::before {
    background-color: #888;
}

.child > div .child > div .child > div .child::before {
    background-color: #666;
}

.child > div .child > div .child > div .child > div .child::before {
    background-color: #444;
}

.modal-open .sticky-head {
    position: sticky;
}

.modal-open .sticky-side {
    position: sticky;
}

@media (max-width: 768px) {
    img::after {
        width: 70%; /* Sesuaikan panjang garis untuk layar kecil */
    }

    .sticky-side {
        position: static; /* Sticky dinonaktifkan */
        top: auto; /* Reset nilai top */
    }

    #post-pannel{
        position: -webkit-sticky; /* For Safari */
        position: sticky;
        top: 7em;
        height: fit-content; /* Tinggi elemen disesuaikan konten */
        z-index: 3; /* Memastikan berada di atas elemen lain jika tumpang tindih */
    }
}
