    .comment-body img {
        max-width: 80%;
        max-height: 600px; 
    }
    .card-body{
        width: 100%;
    }
    
    /* Main Post Content */
    .mainpost-content {
        margin-bottom: 16px;
        padding: 16px;
        border: 1px solid var(--borderpost);
        border-radius: 8px;
        background: var(--cardbody);
        font-size: 15px;
        line-height: 1.6;
    }
    .mainpost-content img {
        max-width: 100%;
        max-height: 600px;
        height: auto;
        display: block;
        margin: 0 auto;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
   
    .mainpost-content iframe,
    .mainpost-content video {
        max-width: 100%;
        display: block;
        margin: 0 auto;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* Fancy expandable button styles */
    .toggle-comment-btn {
        position: relative;
        padding: 6px 14px;
        font-size: 12px;
        font-weight: 600;
        border: 2px solid var(--main-ink);
        background: linear-gradient(135deg, var(--darkmain-ink) 0%, var(--main-ink) 100%);
        color: white;
        border-radius: 50px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
        overflow: hidden;
    }

    .toggle-comment-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
        background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    }

    .toggle-comment-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(13, 110, 253, 0.3);
    }

    .toggle-comment-btn i {
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .toggle-comment-btn.active {
        background: linear-gradient(135deg, #198754 0%, #146c43 100%);
        border-color: #198754;
        box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
    }

    .toggle-comment-btn.active:hover {
        background: linear-gradient(135deg, #146c43 0%, #0f5132 100%);
        box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
    }

    .toggle-comment-btn.active i {
        transform: rotate(180deg);
    }

    .toggle-comment-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .toggle-comment-btn:hover::before {
        width: 300px;
        height: 300px;
    }

    .toggle-comment-btn span {
        position: relative;
        z-index: 1;
    }

    /* Comment form animation */
    .comment-form-container {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    }

    .comment-form-container.show {
        max-height: 1000px;
        opacity: 1;
        margin-top: 20px;
    }


    .reply-form {
        margin-left: 40px;
        display: none;
    }
    .reply-form.active {
        display: block;
    }
    .reply-form-container {
        width: 100%;
        margin-top: 10px;
    }

    #commentForm {
        margin-top: 10px;
    }
    .collapse.show {
        display: block !important;
    }
    .role-badge {
        font-size: 0.60rem;
    }





/* Post List Items - Twitter Style */
.post-item {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid var(--borderpost);
    background: var(--cardbody);
    transition: background-color 0.2s;
}

.post-item:hover {
    background-color: var(--hover);
    transform: none;
}

.post-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
}

.post-content {
    flex: 1;
    min-width: 0;
}

.post-header {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 2px;
}

.post-username {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-color);
}

.post-time {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 400;
}

.post-text {
    margin: 4px 0;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.5;
}

/* Comments - Reddit Style */
.comment-item {
    margin-bottom: 0;
    position: relative;
    background: var(--cardbody);
    border-left: 2px solid transparent;
    padding: 8px 12px;
 
}

.comment-item:hover {
    border-left-color: var(--linkcolor);
}

.comment-item.depth-0 {
    border: none;
    border: 1px dashed var(--main-ink);
    border-radius: 0;
    padding: 12px 16px;
    margin-bottom: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.avatar-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
}

.comment-body {
    margin-left: 40px;
    word-wrap: break-word;
}

.comment-footer {
    margin-left: 40px;
    font-size: 0.9rem;
    color: #6c757d;
    flex-wrap: wrap;
}












    .edit-progress {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        padding: 15px;
        margin-top: 15px;
    }

    .progress-steps {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .progress-step {
        display: flex;
        align-items: center;
        padding: 6px 0;
        color: #6c757d;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

    .progress-step .step-icon {
        display: inline-block;
        width: 20px;
        margin-right: 8px;
        font-weight: bold;
        text-align: center;
    }

    .progress-step.active {
        color: #0d6efd;
        font-weight: 500;
    }

    .progress-step.active .step-icon {
        color: #0d6efd;
        animation: pulse 1s ease-in-out infinite;
    }

    .progress-step.complete {
        color: #198754;
    }

    .progress-step.complete .step-icon {
        color: #198754;
    }

    @keyframes pulse {
        0%, 100% {
            opacity: 1;
            transform: scale(1);
        }
        50% {
            opacity: 0.7;
            transform: scale(1.1);
        }
    }

    .save-edit-btn:disabled {
        cursor: not-allowed;
        opacity: 0.65;
    }

    .save-edit-btn .spinner-border {
        width: 1rem;
        height: 1rem;
        border-width: 0.15em;
        margin-right: 5px;
        vertical-align: middle;
    }

    .cancel-edit-post:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

    .alert-success {
        animation: slideIn 0.3s ease-out;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }